| OLD | NEW |
| 1 | |
| 2 // 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 |
| 3 // 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 |
| 4 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr | 4 // VMOptions=--optimization-counter-threshold=10 --no-use-osr |
| 6 | 5 |
| 7 // Test allocation sinking with polymorphic inlining. | 6 // Test allocation sinking with polymorphic inlining. |
| 8 | 7 |
| 9 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 10 | 9 |
| 11 class A { | 10 class A { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 27 | 26 |
| 28 main() { | 27 main() { |
| 29 var a = new A(); | 28 var a = new A(); |
| 30 var b = new B(); | 29 var b = new B(); |
| 31 Expect.equals(1, test(a)); | 30 Expect.equals(1, test(a)); |
| 32 Expect.equals(-1, test(b)); | 31 Expect.equals(-1, test(b)); |
| 33 for (var i = 0; i < 20; i++) test(a); | 32 for (var i = 0; i < 20; i++) test(a); |
| 34 Expect.equals(1, test(a)); | 33 Expect.equals(1, test(a)); |
| 35 Expect.equals(-1, test(b)); | 34 Expect.equals(-1, test(b)); |
| 36 } | 35 } |
| OLD | NEW |