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

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

Issue 779593002: Move elementAccess() 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
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 4afb1359c30aa5bee56330b128b0f6a39ddf3052..db3e3bc238331fe6af68c8b5ae8cf14b7ee9473a 100644
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
@@ -240,7 +240,7 @@ class ConstantLiteralEmitter implements ConstantValueVisitor<jsAst.Expression> {
}
jsAst.Expression getJsConstructor(ClassElement element) {
- return namer.elementAccess(element);
+ return backend.emitter.globalPropertyAccess(element);
floitsch 2014/12/03 17:02:24 emitter.constructorAccess
zarah 2014/12/05 08:22:49 Done.
}
jsAst.Expression visitMap(JavaScriptMapConstant constant) {
@@ -322,7 +322,7 @@ class ConstantLiteralEmitter implements ConstantValueVisitor<jsAst.Expression> {
JavaScriptBackend get backend => compiler.backend;
jsAst.PropertyAccess getHelperProperty(Element helper) {
- return backend.namer.elementAccess(helper);
+ return backend.emitter.globalPropertyAccess(helper);
floitsch 2014/12/03 17:02:24 staticFunctionAccess
zarah 2014/12/05 08:22:49 Done.
}
jsAst.Expression visitType(TypeConstantValue constant) {

Powered by Google App Engine
This is Rietveld 408576698