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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10283003: - Fix another side effect issue: never add AstNode to sequence unless they are a statement. Added t… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/opt_code_generator_ia32.cc » ('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 7205)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -1923,11 +1923,16 @@
// <Expression> ::= LoadLocal { local: LocalVariable }
void EffectGraphVisitor::VisitLoadLocalNode(LoadLocalNode* node) {
- return;
+ if (node->HasPseudo()) {
+ EffectGraphVisitor for_pseudo(owner(), temp_index());
+ node->pseudo()->Visit(&for_pseudo);
+ Append(for_pseudo);
+ }
}
void ValueGraphVisitor::VisitLoadLocalNode(LoadLocalNode* node) {
+ EffectGraphVisitor::VisitLoadLocalNode(node);
LoadLocalComp* load = new LoadLocalComp(node->local(),
owner()->context_level());
ReturnComputation(load);
« no previous file with comments | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/opt_code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698