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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 11348316: Move the handling of operator[] into the new interceptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 16030)
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -2166,14 +2166,10 @@
}
void visitIndex(HIndex node) {
- if (node.isBuiltin(types)) {
- use(node.inputs[1]);
- js.Expression receiver = pop();
- use(node.inputs[2]);
- push(new js.PropertyAccess(receiver, pop()), node);
- } else {
- visitInvokeStatic(node);
- }
+ use(node.receiver);
+ js.Expression receiver = pop();
+ use(node.index);
+ push(new js.PropertyAccess(receiver, pop()), node);
}
void visitIndexAssign(HIndexAssign node) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698