Chromium Code Reviews| Index: tests/language/deopt_inlined_function_lazy_test.dart |
| =================================================================== |
| --- tests/language/deopt_inlined_function_lazy_test.dart (revision 24895) |
| +++ tests/language/deopt_inlined_function_lazy_test.dart (working copy) |
| @@ -2,7 +2,7 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| // Test lazy deoptimization from within an inlined function. |
| -// VMOptions=--deoptimize_alot |
| +// VMOptions=--deoptimize_alot --optimization-counter-threshold=10 --no-use-osr |
| import "package:expect/expect.dart"; |
| @@ -25,7 +25,7 @@ |
| main() { |
| Expect.equals(42, foo(1)); |
| - for (var i = 0; i < 2000; i++) foo(7); |
| + for (var i = 0; i < 10; i++) foo(7); |
|
siva
2013/07/11 00:14:42
Ditto comment about this being more than 10..
srdjan
2013/07/11 17:41:01
s/10/20/
|
| Expect.equals(42, foo(2)); |
| // Call the runtime to trigger lazy deopt with foo/bar on the stack. |
| Expect.equals(42, foo(-1)); |