| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Check that our SSA graph does have the try body a predecessor of a | 4 // Check that our SSA graph does have the try body a predecessor of a |
| 5 // try/finally. | 5 // try/finally. |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; |
| 8 |
| 7 var a; | 9 var a; |
| 8 | 10 |
| 9 foo1() { | 11 foo1() { |
| 10 var b = false; | 12 var b = false; |
| 11 var entered = false; | 13 var entered = false; |
| 12 while (true) { | 14 while (true) { |
| 13 if (entered) return b; | 15 if (entered) return b; |
| 14 b = 8 == a; // This expression should not be GVN'ed. | 16 b = 8 == a; // This expression should not be GVN'ed. |
| 15 try { | 17 try { |
| 16 a = 8; | 18 a = 8; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 Expect.isTrue(foo5()); | 188 Expect.isTrue(foo5()); |
| 187 a = 0; | 189 a = 0; |
| 188 Expect.isTrue(foo6()); | 190 Expect.isTrue(foo6()); |
| 189 a = 0; | 191 a = 0; |
| 190 Expect.isTrue(foo7()); | 192 Expect.isTrue(foo7()); |
| 191 a = 0; | 193 a = 0; |
| 192 Expect.isTrue(foo8()); | 194 Expect.isTrue(foo8()); |
| 193 a = 0; | 195 a = 0; |
| 194 Expect.isTrue(foo9()); | 196 Expect.isTrue(foo9()); |
| 195 } | 197 } |
| OLD | NEW |