Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: tests/language/vm/optimized_guarded_field_test.dart

Issue 1759973002: Add --no-background-compilation to tests that expect to run code in optimized form (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/language/vm/optimized_guarded_field_isolates_test.dart ('k') | tests/language/vm/optimized_identical_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698