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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart

Issue 12299008: Stop resolving all of js_helper unconditionally. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
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;

Powered by Google App Engine
This is Rietveld 408576698