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

Unified Diff: pkg/compiler/lib/src/js_backend/constant_emitter.dart

Issue 784843002: Move isolateStaticClosureAccess and isolateLazyInitializerAccess from namer to emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
index 8d6c122120b6ba7ff2ec9fe83be77e0f3459bd84..5f1cdc454320235821c8329fdbb31bf32fd094c2 100644
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
@@ -63,6 +63,8 @@ class ConstantReferenceEmitter
ConstantReferenceEmitter(this.compiler, this.namer, this.constantEmitter);
+ JavaScriptBackend get backend => compiler.backend;
+
jsAst.Expression generate(ConstantValue constant) {
return _visit(constant);
}
@@ -82,7 +84,7 @@ class ConstantReferenceEmitter
}
jsAst.Expression visitFunction(FunctionConstantValue constant) {
- return namer.isolateStaticClosureAccess(constant.element);
+ return backend.emitter.isolateStaticClosureAccess(constant.element);
}
jsAst.Expression visitNull(NullConstantValue constant) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698