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

Unified Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.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_emitter/code_emitter_task.dart
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index 3cecbec34aa3cbd1edd18f7c60035530998a8aca..feb083aa9939d4033f5aaf08d52aff1db5506a37 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -65,6 +65,10 @@ class CodeEmitterTask extends CompilerTask {
return emitter.constantReference(value);
}
+ jsAst.Expression globalPropertyAccess(Element e) {
+ return emitter.globalPropertyAccess(e);
+ }
+
void registerReadTypeVariable(TypeVariableElement element) {
readTypeVariables.add(element);
}
@@ -354,6 +358,7 @@ abstract class Emitter {
jsAst.Expression generateEmbeddedGlobalAccess(String global);
jsAst.Expression constantReference(ConstantValue value);
+ jsAst.PropertyAccess globalPropertyAccess(Element element);
int compareConstants(ConstantValue a, ConstantValue b);
bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant);

Powered by Google App Engine
This is Rietveld 408576698