| 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 // Test allocation sinking optimization. | 4 // Test allocation sinking optimization. |
| 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr | 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr |
| 6 | 6 |
| 7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
| 8 | 8 |
| 9 class Point { | 9 class Point { |
| 10 var x, y; | 10 var x, y; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Test that identity of materialized objects is preserved correctly and | 180 // Test that identity of materialized objects is preserved correctly and |
| 181 // no copies are materialized. | 181 // no copies are materialized. |
| 182 final z1 = testIdentity(c.p); | 182 final z1 = testIdentity(c.p); |
| 183 final z2 = testIdentity(new F(c.p)); | 183 final z2 = testIdentity(new F(c.p)); |
| 184 Expect.equals(z0, z1); | 184 Expect.equals(z0, z1); |
| 185 Expect.equals(z0, z2); | 185 Expect.equals(z0, z2); |
| 186 | 186 |
| 187 testFinalField(); | 187 testFinalField(); |
| 188 testVMField(); | 188 testVMField(); |
| 189 } | 189 } |
| OLD | NEW |