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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/annotations.dart

Issue 886773004: Supported versioned patching. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
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
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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698