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

Unified Diff: pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart

Issue 1123413002: dart2js: build metadata-types lazily in the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged 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
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 44cfc17730e65cb7a7a56a798ca907b8acde5107..78e6886205e491fe72aba767c166592d1324f879 100644
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
@@ -176,8 +176,7 @@ class Emitter implements emitterTask.Emitter {
return js.js.expressionTemplateFor("$metadataAccess[#]");
case JsBuiltin.getType:
- String typesAccess = _emitter.generateEmbeddedGlobalAccessString(TYPES);
- return js.js.expressionTemplateFor("$typesAccess[#]");
+ return _emitter.templateForReadType;
default:
_compiler.internalError(NO_LOCATION_SPANNABLE,

Powered by Google App Engine
This is Rietveld 408576698