| 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 _js_helper; | 5 part of _js_helper; |
| 6 | 6 |
| 7 /// Tells the optimizing compiler that the annotated method has no | 7 /// Tells the optimizing compiler that the annotated method has no |
| 8 /// side-effects. | 8 /// side-effects. |
| 9 /// Requires @NoInline() to function correctly. | 9 /// Requires @NoInline() to function correctly. |
| 10 class NoSideEffects { | 10 class NoSideEffects { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class IrRepresentation { | 27 class IrRepresentation { |
| 28 final bool value; | 28 final bool value; |
| 29 const IrRepresentation(this.value); | 29 const IrRepresentation(this.value); |
| 30 } | 30 } |
| 31 | 31 |
| 32 /// Marks a class as native and defines its JavaScript name(s). | 32 /// Marks a class as native and defines its JavaScript name(s). |
| 33 class Native { | 33 class Native { |
| 34 final String name; | 34 final String name; |
| 35 const Native(this.name); | 35 const Native(this.name); |
| 36 } | 36 } |
| 37 |
| 38 class _Patch { |
| 39 final String version; |
| 40 |
| 41 const _Patch(this.version); |
| 42 } |
| 43 |
| 44 /// Annotation that marks the declaration as a patch. |
| 45 const _Patch patch = const _Patch(null); |
| 46 |
| 47 /// Annotation that marks the declaration as a patch for the old emitter. |
| 48 const _Patch patch_old = const _Patch('old'); |
| 49 |
| 50 /// Annotation that marks the declaration as a patch for the new emitter. |
| 51 const _Patch patch_new = const _Patch('new'); |
| OLD | NEW |