| 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 // Regression test for VM's IfConverted pass not keeping graph structure and | 5 // Regression test for VM's IfConverted pass not keeping graph structure and |
| 6 // use lists in sync. | 6 // use lists in sync. |
| 7 | 7 |
| 8 // VMOptions=--optimization-counter-threshold=10 | 8 // VMOptions=--optimization-counter-threshold=10 |
| 9 | 9 |
| 10 class A { | 10 class A { |
| 11 int x; | 11 int x; |
| 12 } | 12 } |
| 13 | 13 |
| 14 f() { | 14 f() { |
| 15 var a = new A(); | 15 var a = new A(); |
| 16 a.x = (true ? 2 : 4); | 16 a.x = (true ? 2 : 4); |
| 17 return a.x; | 17 return a.x; |
| 18 } | 18 } |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 for (var i = 0; i < 20; i++) f(); | 21 for (var i = 0; i < 20; i++) f(); |
| 22 } | 22 } |
| 23 | 23 |
| OLD | NEW |