| 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 // VMOptions=--optimization_counter_threshold=100 | 4 // VMOptions=--optimization_counter_threshold=100 |
| 5 | 5 |
| 6 // Test field type tracking and field list-length tracking in the presence of | 6 // Test field type tracking and field list-length tracking in the presence of |
| 7 // multiple isolates. | 7 // multiple isolates. |
| 8 | 8 |
| 9 import "dart:isolate"; | 9 import "dart:isolate"; |
| 10 import "dart:async"; |
| 10 import "package:expect/expect.dart"; | 11 import "package:expect/expect.dart"; |
| 11 | 12 |
| 12 class A { | 13 class A { |
| 13 A(this.a); | 14 A(this.a); |
| 14 var a; | 15 var a; |
| 15 } | 16 } |
| 16 | 17 |
| 17 class B extends A { | 18 class B extends A { |
| 18 B(a, this.b) : super(a) { } | 19 B(a, this.b) : super(a) { } |
| 19 | 20 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 item.then((C value) { | 61 item.then((C value) { |
| 61 Expect.throws(() => test_c(value), (e) => e is RangeError); | 62 Expect.throws(() => test_c(value), (e) => e is RangeError); |
| 62 receive_port.close(); | 63 receive_port.close(); |
| 63 }); | 64 }); |
| 64 } | 65 } |
| 65 | 66 |
| 66 main() { | 67 main() { |
| 67 test_field_type(); | 68 test_field_type(); |
| 68 test_list_length(); | 69 test_list_length(); |
| 69 } | 70 } |
| OLD | NEW |