| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 | 4 |
| 5 // Test if-convertion pass in the optimizing compiler. | 5 // Test if-convertion pass in the optimizing compiler. |
| 6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr | 6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr |
| 7 | 7 |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 f1(i) => (i == 0) ? 0 : 1; | 10 f1(i) => (i == 0) ? 0 : 1; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 Expect.equals(2, cse(0)); | 106 Expect.equals(2, cse(0)); |
| 107 Expect.equals(4, cse(1)); | 107 Expect.equals(4, cse(1)); |
| 108 | 108 |
| 109 Expect.equals(11, f17(false)); | 109 Expect.equals(11, f17(false)); |
| 110 Expect.equals(0, f17(true)); | 110 Expect.equals(0, f17(true)); |
| 111 | 111 |
| 112 Expect.equals(0, f18(false)); | 112 Expect.equals(0, f18(false)); |
| 113 Expect.equals(2, f18(true)); | 113 Expect.equals(2, f18(true)); |
| 114 } | 114 } |
| OLD | NEW |