| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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=10 --no-use-osr | 4 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co
mpilation |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
| 7 | 7 |
| 8 // Test dense class-id checks. Regression test for issue 22104. | 8 // Test dense class-id checks. Regression test for issue 22104. |
| 9 | 9 |
| 10 class A { | 10 class A { |
| 11 toString() => "an A"; | 11 toString() => "an A"; |
| 12 } | 12 } |
| 13 | 13 |
| 14 class A1 extends A { } | 14 class A1 extends A { } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 test_class_check(list[i]); | 61 test_class_check(list[i]); |
| 62 } | 62 } |
| 63 for (var i = 0; i < 100; i++) { | 63 for (var i = 0; i < 100; i++) { |
| 64 Expect.equals("an A", test_class_check(new A1())); | 64 Expect.equals("an A", test_class_check(new A1())); |
| 65 } | 65 } |
| 66 Expect.equals("ha", test_class_check(new A4())); | 66 Expect.equals("ha", test_class_check(new A4())); |
| 67 } | 67 } |
| 68 | 68 |
| 69 | 69 |
| 70 | 70 |
| OLD | NEW |