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 correct handling of phis with only environment uses that were inserted | 4 // Test correct handling of phis with only environment uses that were inserted |
5 // by store to load forwarding. | 5 // by store to load forwarding. |
6 // VMOptions=--optimization_counter_threshold=10 | 6 // VMOptions=--optimization_counter_threshold=10 --no-background_compilation |
7 | 7 |
8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
9 import "dart:typed_data"; | 9 import "dart:typed_data"; |
10 | 10 |
11 class A { | 11 class A { |
12 var foo; | 12 var foo; |
13 } | 13 } |
14 | 14 |
15 class B { | 15 class B { |
16 get foo => null; | 16 get foo => null; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 for (var i = 0; i < 20; i++) { test_deopt(42, 1); } | 92 for (var i = 0; i < 20; i++) { test_deopt(42, 1); } |
93 Expect.equals(43, test_deopt(42, 1)); | 93 Expect.equals(43, test_deopt(42, 1)); |
94 Expect.equals("aaabbb", test_deopt("aaa", "bbb")); | 94 Expect.equals("aaabbb", test_deopt("aaa", "bbb")); |
95 | 95 |
96 // Regression test for fields initialized in native code (Error._stackTrace). | 96 // Regression test for fields initialized in native code (Error._stackTrace). |
97 test_stacktrace(); | 97 test_stacktrace(); |
98 | 98 |
99 // Test guarded list length. | 99 // Test guarded list length. |
100 for (var i = 0; i < 20; i++) test_guarded_length(); | 100 for (var i = 0; i < 20; i++) test_guarded_length(); |
101 } | 101 } |
OLD | NEW |