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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 12628003: Fix crash in issue 8919. The test still fails. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/language.status » ('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 19647)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2720,18 +2720,20 @@
if (super_function->IsNull()) {
// Could not resolve super operator. Generate call noSuchMethod() of the
// super class instead.
- if (result_is_needed) {
- // Even though noSuchMethod most likely does not return,
- // we save the stored value if the result is needed.
- ValueGraphVisitor for_value(owner(), temp_index());
- node->value()->Visit(&for_value);
- Append(for_value);
- Bind(BuildStoreExprTemp(for_value.value()));
- }
+ // Even though noSuchMethod most likely does not return,
+ // we save the stored value if in case the result is needed.
+ ValueGraphVisitor for_value(owner(), temp_index());
+ node->value()->Visit(&for_value);
+ Append(for_value);
+ Do(BuildStoreExprTemp(for_value.value()));
+
+ const LocalVariable* temp =
+ owner()->parsed_function().expression_temp_var();
+ AstNode* value = new LoadLocalNode(node->token_pos(), temp);
ArgumentListNode* arguments = new ArgumentListNode(node->token_pos());
arguments->Add(node->array());
arguments->Add(node->index_expr());
- arguments->Add(node->value());
+ arguments->Add(value);
StaticCallInstr* call =
BuildStaticNoSuchMethodCall(node->super_class(),
node->array(),
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698