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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.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/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 2ab846f23117a64a65be91e57f4aceda8eaa1085..91abca35434a4d78d0df465ed2cf804ea1b7f7db 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2121,7 +2121,7 @@ class JavaScriptBackend extends Backend {
List<jsAst.Expression> arguments = <jsAst.Expression>[use1, record];
FunctionElement helper = findHelper('isJsIndexable');
- jsAst.Expression helperExpression = namer.elementAccess(helper);
+ jsAst.Expression helperExpression = emitter.globalPropertyAccess(helper);
floitsch 2014/12/03 17:02:24 Let's make the distinction between static function
zarah 2014/12/05 08:22:49 Done.
return new jsAst.Call(helperExpression, arguments);
}

Powered by Google App Engine
This is Rietveld 408576698