Index: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart (revision 18614) |
+++ sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart (working copy) |
@@ -294,9 +294,8 @@ |
} |
jsAst.Expression visitType(TypeConstant constant) { |
- SourceString helperSourceName = const SourceString('createRuntimeType'); |
- Element helper = compiler.findHelper(helperSourceName); |
JavaScriptBackend backend = compiler.backend; |
+ Element helper = backend.getCreateRuntimeType(); |
String helperName = backend.namer.getName(helper); |
DartType type = constant.representedType; |
Element element = type.element; |