| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // VMOptions=--deoptimize_every=10 --optimization-counter-threshold=10 --no-bac
kground-compilation | 4 // VMOptions=--optimization-filter=foo --deoptimize_every=10 --optimization-coun
ter-threshold=10 --no-background-compilation |
| 5 | 5 |
| 6 // Test that lazy deoptimization on stack checks does not damage unoptimized | 6 // Test that lazy deoptimization on stack checks does not damage unoptimized |
| 7 // frame. | 7 // frame. |
| 8 | 8 |
| 9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 10 | 10 |
| 11 | 11 |
| 12 foo() { | 12 foo() { |
| 13 var a = 0; | 13 var a = 0; |
| 14 var b = 1; | 14 var b = 1; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 Expect.equals(14, e); | 29 Expect.equals(14, e); |
| 30 } | 30 } |
| 31 | 31 |
| 32 main() { | 32 main() { |
| 33 for (var i = 0; i < 10; ++i) { | 33 for (var i = 0; i < 10; ++i) { |
| 34 foo(); | 34 foo(); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| OLD | NEW |