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

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

Issue 1154073004: Change more JS foreign methods to JS_GET_NAME. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Contains the names of globals that are embedded into the output by the 5 /// Contains the names of globals that are embedded into the output by the
6 /// compiler. 6 /// compiler.
7 /// 7 ///
8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from 8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from
9 /// the `_foreign_helper` library. 9 /// the `_foreign_helper` library.
10 /// 10 ///
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 CALL_PREFIX0, 85 CALL_PREFIX0,
86 CALL_PREFIX1, 86 CALL_PREFIX1,
87 CALL_PREFIX2, 87 CALL_PREFIX2,
88 CALL_PREFIX3, 88 CALL_PREFIX3,
89 CALL_CATCH_ALL, 89 CALL_CATCH_ALL,
90 REFLECTABLE, 90 REFLECTABLE,
91 CLASS_DESCRIPTOR_PROPERTY, 91 CLASS_DESCRIPTOR_PROPERTY,
92 REQUIRED_PARAMETER_PROPERTY, 92 REQUIRED_PARAMETER_PROPERTY,
93 DEFAULT_VALUES_PROPERTY, 93 DEFAULT_VALUES_PROPERTY,
94 CALL_NAME_PROPERTY, 94 CALL_NAME_PROPERTY,
95 DEFERRED_ACTION_PROPERTY 95 DEFERRED_ACTION_PROPERTY,
96 OPERATOR_AS_PREFIX,
97 SIGNATURE_NAME,
98 TYPEDEF_TAG,
99 FUNCTION_TYPE_VOID_RETURN_TAG,
100 FUNCTION_TYPE_RETURN_TYPE_TAG,
101 FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG,
102 FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG,
103 FUNCTION_TYPE_NAMED_PARAMETERS_TAG,
96 } 104 }
97 105
98 enum JsBuiltin { 106 enum JsBuiltin {
99 /// Returns the JavaScript constructor function for Dart's Object class. 107 /// Returns the JavaScript constructor function for Dart's Object class.
100 /// This can be used for type tests, as in 108 /// This can be used for type tests, as in
101 /// 109 ///
102 /// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectContructor); 110 /// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectContructor);
103 /// if (JS('bool', '# instanceof #', obj, constructor)) 111 /// if (JS('bool', '# instanceof #', obj, constructor))
104 /// ... 112 /// ...
105 dartObjectConstructor, 113 dartObjectConstructor,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 /// JS_BUILTIN('returns:var;effects:none;depends:none', 181 /// JS_BUILTIN('returns:var;effects:none;depends:none',
174 /// JsBuiltin.getMetadata, index); 182 /// JsBuiltin.getMetadata, index);
175 getMetadata, 183 getMetadata,
176 184
177 /// Returns the type of the given [index]. 185 /// Returns the type of the given [index].
178 /// 186 ///
179 /// JS_BUILTIN('returns:var;effects:none;depends:none', 187 /// JS_BUILTIN('returns:var;effects:none;depends:none',
180 /// JsBuiltin.getType, index); 188 /// JsBuiltin.getType, index);
181 getType, 189 getType,
182 } 190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698