| Index: test/mjsunit/debug-compile-optimized.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-387599.js b/test/mjsunit/debug-compile-optimized.js
|
| similarity index 58%
|
| copy from test/mjsunit/regress/regress-crbug-387599.js
|
| copy to test/mjsunit/debug-compile-optimized.js
|
| index 98750aa918261f707bdee8a05d230c2805aa11e9..468605abaab079d4b19250b90fed7048bec205aa 100644
|
| --- a/test/mjsunit/regress/regress-crbug-387599.js
|
| +++ b/test/mjsunit/debug-compile-optimized.js
|
| @@ -2,18 +2,17 @@
|
| // 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
|
| +// Flags: --expose-debug-as debug --allow-natives-syntax --crankshaft
|
|
|
| Debug = debug.Debug;
|
| -Debug.setListener(function() {});
|
|
|
| -function f() {
|
| - for (var i = 0; i < 100; i++) {
|
| - %OptimizeFunctionOnNextCall(f, "osr");
|
| - }
|
| -}
|
| +Debug.setListener(function() {});
|
|
|
| -Debug.setBreakPoint(f, 0, 0);
|
| +function f() {}
|
| f();
|
| f();
|
| +%OptimizeFunctionOnNextCall(f);
|
| +f();
|
| +assertOptimized(f);
|
| +
|
| Debug.setListener(null);
|
|
|