OLD | NEW |
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 | 4 |
5 part of dart._js_helper; | 5 part of dart._js_helper; |
6 | 6 |
| 7 /// Tells the optimizing compiler to always inline the annotated method. |
| 8 class ForceInline { |
| 9 const ForceInline(); |
| 10 } |
| 11 |
7 /// Tells the optimizing compiler that the annotated method cannot throw. | 12 /// Tells the optimizing compiler that the annotated method cannot throw. |
8 /// Requires @NoInline() to function correctly. | 13 /// Requires @NoInline() to function correctly. |
9 class NoThrows { | 14 class NoThrows { |
10 const NoThrows(); | 15 const NoThrows(); |
11 } | 16 } |
12 | 17 |
13 /// Tells the optimizing compiler to not inline the annotated method. | 18 /// Tells the optimizing compiler to not inline the annotated method. |
14 class NoInline { | 19 class NoInline { |
15 const NoInline(); | 20 const NoInline(); |
16 } | 21 } |
(...skipping 10 matching lines...) Expand all Loading... |
27 /// matching the JavaScript calling conventions. | 32 /// matching the JavaScript calling conventions. |
28 final String name; | 33 final String name; |
29 const JsPeerInterface({this.name}); | 34 const JsPeerInterface({this.name}); |
30 } | 35 } |
31 | 36 |
32 /// A Dart interface may only be implemented by a native JavaScript object | 37 /// A Dart interface may only be implemented by a native JavaScript object |
33 /// if it is marked with this annotation. | 38 /// if it is marked with this annotation. |
34 class SupportJsExtensionMethods { | 39 class SupportJsExtensionMethods { |
35 const SupportJsExtensionMethods(); | 40 const SupportJsExtensionMethods(); |
36 } | 41 } |
OLD | NEW |