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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_rti.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart b/sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart
index 0e455624f741db792198eb0864d112a6370574cf..83cc9c26e56322565ec19066e04d91ee72a6fb30 100644
--- a/sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart
+++ b/sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart
@@ -121,12 +121,6 @@ enum JsBuiltin {
/// JS_BUILTIN('bool', JsBuiltin.isFunctionType, o)
isFunctionType,
- /// Returns true if the given type is the `Function` type literal.
- ///
- /// JS_BUILTIN('returns:bool;effects:none;depends:none',
- /// JsBuiltin.isFunctionTypeLiteral, type);
- isFunctionTypeLiteral,
-
/// Returns a new function type object.
///
/// JS_BUILTIN('=Object', JsBuiltin.createFunctionType)
@@ -154,6 +148,26 @@ enum JsBuiltin {
/// JsBuiltin.isSubtype, other, type);
isSubtype,
+ /// Returns true if the given type is _the_ `Function` type.
+ /// That is, it returns true if the given [type] is exactly the `Function`
+ /// type rti-encoding.
+ ///
+ /// JS_BUILTIN('returns:bool;effects:none;depends:none',
+ /// JsBuiltin.isFunctionTypeLiteral, type);
+ isFunctionTypeRti,
+
+ /// Returns whether the given type is _the_ null-type..
+ ///
+ /// JS_BUILTIN('returns:bool;effects:none;depends:none',
+ /// JsBuiltin.isNullType, type);
+ isNullTypeRti,
+
+ /// Returns whether the given type is _the_ Dart Object type.
+ ///
+ /// JS_BUILTIN('returns:bool;effects:none;depends:none',
+ /// JsBuiltin.isDartObjectType, type);
+ isDartObjectTypeRti,
+
/// Returns the metadata of the given [index].
///
/// JS_BUILTIN('returns:var;effects:none;depends:none',
« 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