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 --no-background-co
mpilation |
6 | 6 |
7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
9 | 9 |
10 class Point { | 10 class Point { |
11 var x, y; | 11 var x, y; |
12 | 12 |
13 Point(this.x, this.y); | 13 Point(this.x, this.y); |
14 | 14 |
15 operator * (other) { | 15 operator * (other) { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 Expect.equals(z0, z1); | 323 Expect.equals(z0, z1); |
324 Expect.equals(z0, z2); | 324 Expect.equals(z0, z2); |
325 | 325 |
326 testFinalField(); | 326 testFinalField(); |
327 testVMField(); | 327 testVMField(); |
328 testCompound1(); | 328 testCompound1(); |
329 testCompound2(); | 329 testCompound2(); |
330 testCompound3(); | 330 testCompound3(); |
331 testCompound4(); | 331 testCompound4(); |
332 } | 332 } |
OLD | NEW |