Chromium Code Reviews| 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 |
|
zra
2016/12/20 17:25:50
It looks like this test has some Timeouts on the b
| |
| 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 // Test deoptimization on an optimistically hoisted smi check. | 4 // VMOptions=--deoptimize_every=10 --optimization-counter-threshold=10 --no-bac kground-compilation |
| 5 // VMOptions=--deoptimize_every=10 --optimization-counter-threshold=10 --no-bac kground-compilation --enable-inlining-annotations | |
| 6 | 5 |
| 7 // Test that lazy deoptimization on stack checks does not damage unoptimized | 6 // Test that lazy deoptimization on stack checks does not damage unoptimized |
| 8 // frame. | 7 // frame. |
| 9 | 8 |
| 10 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 11 | 10 |
| 12 | 11 |
| 13 foo() { | 12 foo() { |
| 14 var a = 0; | 13 var a = 0; |
| 15 var b = 1; | 14 var b = 1; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 30 Expect.equals(14, e); | 29 Expect.equals(14, e); |
| 31 } | 30 } |
| 32 | 31 |
| 33 main() { | 32 main() { |
| 34 for (var i = 0; i < 10; ++i) { | 33 for (var i = 0; i < 10; ++i) { |
| 35 foo(); | 34 foo(); |
| 36 } | 35 } |
| 37 } | 36 } |
| 38 | 37 |
| 39 | 38 |
| OLD | NEW |