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

Side by Side Diff: tests/standalone/assert_assignable_canon_test.dart

Issue 1702093002: Minor work for background compilation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor work for background compilation Created 4 years, 10 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 // 4 //
5 // VMOptions=--enable-inlining-annotations --optimization-counter-threshold=10 5 // VMOptions=--enable-inlining-annotations --optimization-counter-threshold=10 - -no-background-compilation
6 6
7 const AlwaysInline = "AlwaysInline"; 7 const AlwaysInline = "AlwaysInline";
8 const NeverInline = "NeverInline"; 8 const NeverInline = "NeverInline";
9 9
10 abstract class A<T extends A<T>> { 10 abstract class A<T extends A<T>> {
11 @AlwaysInline 11 @AlwaysInline
12 f(x) => new R<T>(x); 12 f(x) => new R<T>(x);
13 } 13 }
14 14
15 class B extends A<B> {} 15 class B extends A<B> {}
(...skipping 12 matching lines...) Expand all
28 // function (Instance::IsInstanceOf does not work for TypeRefs). 28 // function (Instance::IsInstanceOf does not work for TypeRefs).
29 @NeverInline 29 @NeverInline
30 f(o) => new B().f(o); 30 f(o) => new B().f(o);
31 31
32 main() { 32 main() {
33 final o = new D(); 33 final o = new D();
34 for (var i = 0; i < 10; i++) { 34 for (var i = 0; i < 10; i++) {
35 f(o); 35 f(o);
36 } 36 }
37 } 37 }
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698