8d921ca7f3
This removes the --turbo flag and solely relies on the filter pattern provided via --turbo-filter when deciding whether to use TurboFan. Note that disabling optimization wholesale can still be done with --no-opt, which should be used in favor of --no-turbo everywhere. Also note that this contains semantic changes to the TurboFan activation criteria. We respect the filter pattern more stringently and no longer activate TurboFan just because the source contains patterns forcing use of Ignition via {AstNumberingVisitor::DisableFullCodegenAndCrankshaft}. R=rmcilroy@chromium.org BUG=v8:6408 Change-Id: I0c855f6a62350eb62283a3431c8cc1baa750950e Reviewed-on: https://chromium-review.googlesource.com/528121 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Michael Stanton <mvstanton@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Commit-Queue: Michael Starzinger <mstarzinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#46167}
32 lines
871 B
JavaScript
32 lines
871 B
JavaScript
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var Debug = debug.Debug;
|
|
var step_count = 0;
|
|
|
|
function listener(event, execState, eventData, data) {
|
|
if (event != Debug.DebugEvent.Break) return;
|
|
try {
|
|
var line = execState.frame(0).sourceLineText();
|
|
print(line);
|
|
var [match, expected_count, step] = /\/\/ B(\d) (\w+)$/.exec(line);
|
|
assertEquals(step_count++, parseInt(expected_count));
|
|
if (step != "Continue") execState.prepareStep(Debug.StepAction[step]);
|
|
} catch (e) {
|
|
print(e, e.stack);
|
|
quit(1);
|
|
}
|
|
}
|
|
|
|
Debug.setListener(listener);
|
|
|
|
async function f() {
|
|
var a = 1;
|
|
debugger; // B0 StepNext
|
|
print(1); // B1 StepNext
|
|
return a; // B2 StepNext
|
|
} // B3 Continue
|
|
|
|
f();
|