438f49a322
Having debug break points prevents OSR. That causes allow_osr_at_loop_nesting_level and the actually patched state to go out of sync. R=jkummerow@chromium.org BUG=387599 LOG=Y Review URL: https://codereview.chromium.org/346223007 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21958 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
20 lines
446 B
JavaScript
20 lines
446 B
JavaScript
// Copyright 2014 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.
|
|
|
|
// Flags: --allow-natives-syntax --expose-debug-as debug
|
|
|
|
Debug = debug.Debug;
|
|
Debug.setListener(function() {});
|
|
|
|
function f() {
|
|
for (var i = 0; i < 100; i++) {
|
|
%OptimizeFunctionOnNextCall(f, "osr");
|
|
}
|
|
}
|
|
|
|
Debug.setBreakPoint(f, 0, 0);
|
|
f();
|
|
f();
|
|
Debug.setListener(null);
|