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

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

Issue 1136913006: dart2js: remove JS_OBJECT_CLASS_NAME and JS_NULL_CLASS_NAME from foreign (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove empty lines. Created 5 years, 7 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
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_rti.dart ('k') | no next file » | 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) 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 /// JsBuiltin.classNameFromIsCheckProperty, 114 /// JsBuiltin.classNameFromIsCheckProperty,
115 /// isCheckProperty); 115 /// isCheckProperty);
116 classNameFromIsCheckProperty, 116 classNameFromIsCheckProperty,
117 117
118 /// Returns true if the given type is a function type. Returns false for 118 /// Returns true if the given type is a function type. Returns false for
119 /// the one `Function` type singleton. (See [isFunctionTypeSingleton]). 119 /// the one `Function` type singleton. (See [isFunctionTypeSingleton]).
120 /// 120 ///
121 /// JS_BUILTIN('bool', JsBuiltin.isFunctionType, o) 121 /// JS_BUILTIN('bool', JsBuiltin.isFunctionType, o)
122 isFunctionType, 122 isFunctionType,
123 123
124 /// Returns true if the given type is the `Function` type literal.
125 ///
126 /// JS_BUILTIN('returns:bool;effects:none;depends:none',
127 /// JsBuiltin.isFunctionTypeLiteral, type);
128 isFunctionTypeLiteral,
129
130 /// Returns a new function type object. 124 /// Returns a new function type object.
131 /// 125 ///
132 /// JS_BUILTIN('=Object', JsBuiltin.createFunctionType) 126 /// JS_BUILTIN('=Object', JsBuiltin.createFunctionType)
133 createFunctionType, 127 createFunctionType,
134 128
135 /// Returns the class name of the given type. 129 /// Returns the class name of the given type.
136 /// 130 ///
137 /// JS_BUILTIN('String', JsBuiltin.typeName, type) 131 /// JS_BUILTIN('String', JsBuiltin.typeName, type)
138 typeName, 132 typeName,
139 133
140 /// Returns the raw runtime type of the given object. The given argument 134 /// Returns the raw runtime type of the given object. The given argument
141 /// [o] should be the interceptor (for non-Dart objects). 135 /// [o] should be the interceptor (for non-Dart objects).
142 /// 136 ///
143 /// JS_BUILTIN('', JsBuiltin.rawRuntimeType, o) 137 /// JS_BUILTIN('', JsBuiltin.rawRuntimeType, o)
144 rawRuntimeType, 138 rawRuntimeType,
145 139
146 /// Returns whether the given type is a subtype of other. 140 /// Returns whether the given type is a subtype of other.
147 /// 141 ///
148 /// The argument `other` is the name of the potential supertype. It is 142 /// The argument `other` is the name of the potential supertype. It is
149 /// computed by `runtimeTypeToString`; 143 /// computed by `runtimeTypeToString`;
150 /// 144 ///
151 /// *The `other` name must be passed in before the `type`.* 145 /// *The `other` name must be passed in before the `type`.*
152 /// 146 ///
153 /// JS_BUILTIN('returns:bool;effects:none;depends:none', 147 /// JS_BUILTIN('returns:bool;effects:none;depends:none',
154 /// JsBuiltin.isSubtype, other, type); 148 /// JsBuiltin.isSubtype, other, type);
155 isSubtype, 149 isSubtype,
156 150
151 /// Returns true if the given type is _the_ `Function` type.
152 /// That is, it returns true if the given [type] is exactly the `Function`
153 /// type rti-encoding.
154 ///
155 /// JS_BUILTIN('returns:bool;effects:none;depends:none',
156 /// JsBuiltin.isFunctionTypeLiteral, type);
157 isFunctionTypeRti,
158
159 /// Returns whether the given type is _the_ null-type..
160 ///
161 /// JS_BUILTIN('returns:bool;effects:none;depends:none',
162 /// JsBuiltin.isNullType, type);
163 isNullTypeRti,
164
165 /// Returns whether the given type is _the_ Dart Object type.
166 ///
167 /// JS_BUILTIN('returns:bool;effects:none;depends:none',
168 /// JsBuiltin.isDartObjectType, type);
169 isDartObjectTypeRti,
170
157 /// Returns the metadata of the given [index]. 171 /// Returns the metadata of the given [index].
158 /// 172 ///
159 /// JS_BUILTIN('returns:var;effects:none;depends:none', 173 /// JS_BUILTIN('returns:var;effects:none;depends:none',
160 /// JsBuiltin.getMetadata, index); 174 /// JsBuiltin.getMetadata, index);
161 getMetadata, 175 getMetadata,
162 176
163 /// Returns the type of the given [index]. 177 /// Returns the type of the given [index].
164 /// 178 ///
165 /// JS_BUILTIN('returns:var;effects:none;depends:none', 179 /// JS_BUILTIN('returns:var;effects:none;depends:none',
166 /// JsBuiltin.getType, index); 180 /// JsBuiltin.getType, index);
167 getType, 181 getType,
168 } 182 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_rti.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698