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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 11273117: Fix issue 6403: do not crash if super indexed load does not exist (return 'no-such-method call' ins… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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 | tests/language/super_operator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 14288)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2308,10 +2308,12 @@
// super class instead.
ArgumentListNode* arguments = new ArgumentListNode(node->token_pos());
arguments->Add(node->index_expr());
- BuildStaticNoSuchMethodCall(node->super_class(),
- node->array(),
- index_operator_name,
- arguments);
+ StaticCallInstr* call =
+ BuildStaticNoSuchMethodCall(node->super_class(),
+ node->array(),
+ index_operator_name,
+ arguments);
+ ReturnDefinition(call);
return;
}
}
« no previous file with comments | « no previous file | tests/language/super_operator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698