OLD | NEW |
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 -
-no-background-compilation | 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>> { |
(...skipping 17 matching lines...) Expand all Loading... |
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 } |
OLD | NEW |