Index: pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
index aeeddc3afb936ee0a358f463cc47d5613669c1a3..32a4da6d00e5306268c0013cb972549f7903112f 100644 |
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
@@ -147,13 +147,6 @@ class Emitter implements emitterTask.Emitter { |
case JsBuiltin.isFunctionType: |
return _backend.rti.representationGenerator.templateForIsFunctionType; |
- case JsBuiltin.isFunctionTypeLiteral: |
- String functionClassName = |
- _backend.namer.runtimeTypeName(_compiler.functionClass); |
- |
- return js.js.expressionTemplateFor( |
- '#.$typeNameProperty === "$functionClassName"'); |
- |
case JsBuiltin.typeName: |
return js.js.expressionTemplateFor("#.$typeNameProperty"); |
@@ -170,6 +163,24 @@ class Emitter implements emitterTask.Emitter { |
String isPrefix = namer.operatorIsPrefix; |
return js.js.expressionTemplateFor("('$isPrefix' + #) in #.prototype"); |
+ case JsBuiltin.isFunctionTypeRti: |
+ String functionClassName = |
+ _backend.namer.runtimeTypeName(_compiler.functionClass); |
+ return js.js.expressionTemplateFor( |
+ '#.$typeNameProperty === "$functionClassName"'); |
+ |
+ case JsBuiltin.isNullTypeRti: |
+ String nullClassName = |
+ _backend.namer.runtimeTypeName(_compiler.nullClass); |
+ return js.js.expressionTemplateFor( |
+ '#.$typeNameProperty === "$nullClassName"'); |
+ |
+ case JsBuiltin.isDartObjectTypeRti: |
+ String dartObjectClassName = |
+ _backend.namer.runtimeTypeName(_compiler.objectClass); |
+ return js.js.expressionTemplateFor( |
+ '#.$typeNameProperty === "$dartObjectClassName"'); |
+ |
case JsBuiltin.getMetadata: |
return _emitter.templateForReadMetadata; |