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

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

Issue 1433243003: Background compilation work: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: d Created 5 years, 1 month 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
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/language/vm/load_elimination_has_loads_from_place_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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=--no-use-osr --optimization-counter-threshold=10 --enable-inlining- annotations 6 // VMOptions=--no-use-osr --optimization-counter-threshold=10 --enable-inlining- annotations --no-background-compilation
7 7
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 const alwaysInline = "AlwaysInline"; 10 const alwaysInline = "AlwaysInline";
11 const noInline = "NeverInline"; 11 const noInline = "NeverInline";
12 12
13 B G; 13 B G;
14 14
15 @noInline 15 @noInline
16 modify() { 16 modify() {
(...skipping 26 matching lines...) Expand all
43 foo(b); 43 foo(b);
44 return b.bval; 44 return b.bval;
45 } 45 }
46 46
47 main() { 47 main() {
48 foo(new C()); 48 foo(new C());
49 foo(new B()); 49 foo(new B());
50 for (var i = 0; i < 100; i++) test(); 50 for (var i = 0; i < 100; i++) test();
51 Expect.equals(123, test()); 51 Expect.equals(123, test());
52 } 52 }
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/language/vm/load_elimination_has_loads_from_place_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698