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

Side by Side Diff: tool/input_sdk/private/annotations.dart

Issue 1152333009: Delete dart2js specific private library code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 6 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 | « tool/input_sdk/patch/async_patch.dart ('k') | tool/input_sdk/private/constant_map.dart » ('j') | 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) 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
8 /// side-effects.
9 /// Requires @NoInline() to function correctly.
10 class NoSideEffects {
11 const NoSideEffects();
12 }
13
14 /// Tells the optimizing compiler that the annotated method cannot throw. 7 /// Tells the optimizing compiler that the annotated method cannot throw.
15 /// Requires @NoInline() to function correctly. 8 /// Requires @NoInline() to function correctly.
16 class NoThrows { 9 class NoThrows {
17 const NoThrows(); 10 const NoThrows();
18 } 11 }
19 12
20 /// Tells the optimizing compiler to not inline the annotated method. 13 /// Tells the optimizing compiler to not inline the annotated method.
21 class NoInline { 14 class NoInline {
22 const NoInline(); 15 const NoInline();
23 } 16 }
24 17
25 // Ensures that the annotated method is represented internally using
26 // IR nodes ([:value == true:]) or AST nodes ([:value == false:]).
27 class IrRepresentation {
28 final bool value;
29 const IrRepresentation(this.value);
30 }
31
32 /// Marks a class as native and defines its JavaScript name(s). 18 /// Marks a class as native and defines its JavaScript name(s).
33 class Native { 19 class Native {
34 final String name; 20 final String name;
35 const Native(this.name); 21 const Native(this.name);
36 } 22 }
37 23
38 // TODO(jmesserly): move these somewhere else, e.g. package:js or dart:js 24 // TODO(jmesserly): move these somewhere else, e.g. package:js or dart:js
39 25
40 class JsName { 26 class JsName {
41 /// The JavaScript name. 27 /// The JavaScript name.
(...skipping 10 matching lines...) Expand all
52 /// matching the JavaScript calling conventions. 38 /// matching the JavaScript calling conventions.
53 final String name; 39 final String name;
54 const JsPeerInterface({this.name}); 40 const JsPeerInterface({this.name});
55 } 41 }
56 42
57 /// A Dart interface may only be implemented by a native JavaScript object 43 /// A Dart interface may only be implemented by a native JavaScript object
58 /// if it is marked with this annotation. 44 /// if it is marked with this annotation.
59 class SupportJsExtensionMethods { 45 class SupportJsExtensionMethods {
60 const SupportJsExtensionMethods(); 46 const SupportJsExtensionMethods();
61 } 47 }
OLDNEW
« no previous file with comments | « tool/input_sdk/patch/async_patch.dart ('k') | tool/input_sdk/private/constant_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698