| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 correctness of side effects tracking used by load to load forwarding. | 4 // Test correctness of side effects tracking used by load to load forwarding. |
| 5 | 5 |
| 6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --enable-inlining-
annotations | 6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --enable-inlining-
annotations --no-background-compilation |
| 7 | 7 |
| 8 // Tests correct handling of redefinitions in aliasing computation. | 8 // Tests correct handling of redefinitions in aliasing computation. |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| 11 | 11 |
| 12 const alwaysInline = "AlwaysInline"; | 12 const alwaysInline = "AlwaysInline"; |
| 13 const noInline = "NeverInline"; | 13 const noInline = "NeverInline"; |
| 14 | 14 |
| 15 var H = true; | 15 var H = true; |
| 16 | 16 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 main() { | 51 main() { |
| 52 // Prime foo with polymorphic type feedback. | 52 // Prime foo with polymorphic type feedback. |
| 53 foo(new B(), new A()); | 53 foo(new B(), new A()); |
| 54 foo(new A(), new B()); | 54 foo(new A(), new B()); |
| 55 | 55 |
| 56 for (var i = 0; i < 100; i++) test(); | 56 for (var i = 0; i < 100; i++) test(); |
| 57 Expect.equals(123, test()); | 57 Expect.equals(123, test()); |
| 58 } | 58 } |
| OLD | NEW |