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

Side by Side Diff: tests/language/allocation_sinking_inlining_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 1
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // 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 3 // 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. 4 // BSD-style license that can be found in the LICENSE file.
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co mpilation
6 6
7 // Test allocation sinking with polymorphic inlining. 7 // Test allocation sinking with polymorphic inlining.
8 8
9 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
10 10
11 class A { 11 class A {
12 foo(x) => ++x.f; 12 foo(x) => ++x.f;
13 } 13 }
14 14
15 class B { 15 class B {
(...skipping 11 matching lines...) Expand all
27 27
28 main() { 28 main() {
29 var a = new A(); 29 var a = new A();
30 var b = new B(); 30 var b = new B();
31 Expect.equals(1, test(a)); 31 Expect.equals(1, test(a));
32 Expect.equals(-1, test(b)); 32 Expect.equals(-1, test(b));
33 for (var i = 0; i < 20; i++) test(a); 33 for (var i = 0; i < 20; i++) test(a);
34 Expect.equals(1, test(a)); 34 Expect.equals(1, test(a));
35 Expect.equals(-1, test(b)); 35 Expect.equals(-1, test(b));
36 } 36 }
OLDNEW
« no previous file with comments | « tests/corelib/regress_r21715_test.dart ('k') | tests/language/arithmetic_canonicalization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698