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

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

Issue 785303003: Add option for outputting a deferred loading mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 years, 11 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 dead0f481fec23b8ca7ffa4aa94614602440fb8b..3a55ec88c896a439ca8199a2a11f0af871423b9c 100644
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
@@ -13,6 +13,7 @@ import '../../js_backend/js_backend.dart' show Namer, JavaScriptBackend;
import '../../js_emitter/js_emitter.dart' as emitterTask show
CodeEmitterTask,
Emitter;
+import '../../deferred_load.dart';
class Emitter implements emitterTask.Emitter {
final Compiler _compiler;
@@ -73,7 +74,7 @@ class Emitter implements emitterTask.Emitter {
}
js.Expression isolateLazyInitializerAccess(Element element) {
- return js.js('#.#', [namer.globalObjectFor(element),
+ return js.js('#.#', [namer.globalObjectFor(element),
namer.getLazyInitializerName(element)]);
}
@@ -81,7 +82,7 @@ class Emitter implements emitterTask.Emitter {
return js.js('#.#()',
[namer.globalObjectFor(element), namer.getStaticClosureName(element)]);
}
-
+
js.PropertyAccess globalPropertyAccess(Element element) {
String name = namer.getNameX(element);
js.PropertyAccess pa = new js.PropertyAccess.field(
@@ -93,18 +94,19 @@ class Emitter implements emitterTask.Emitter {
js.PropertyAccess staticFieldAccess(Element element) {
return globalPropertyAccess(element);
}
-
+
js.PropertyAccess staticFunctionAccess(Element element) {
return globalPropertyAccess(element);
}
-
+
js.PropertyAccess classAccess(Element element) {
return globalPropertyAccess(element);
}
-
+
js.PropertyAccess typedefAccess(Element element) {
return globalPropertyAccess(element);
}
-
+
void invalidateCaches() {}
+
}

Powered by Google App Engine
This is Rietveld 408576698