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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10875058: Require ResultCid specification in every computation, that way we can differentiate between computa… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 11330)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -923,9 +923,12 @@
}
// Propagate class ids.
intptr_t cid = bind->computation()->ResultCid();
- changed = bind->SetPropagatedCid(cid);
- if (changed) {
- still_changing_ = true;
+ if (cid != kIllegalCid) {
regis 2012/08/24 21:30:46 The equivalent of this test for propagated types i
srdjan 2012/08/24 21:39:20 Done.
+ // The definition may produce result.
+ changed = bind->SetPropagatedCid(cid);
+ if (changed) {
+ still_changing_ = true;
+ }
}
}
}
@@ -970,7 +973,6 @@
}
}
regis 2012/08/24 21:30:46 Accidental remove?
srdjan 2012/08/24 21:39:20 Yes, reinstated the line.
-
void FlowGraphTypePropagator::VisitParameter(ParameterInstr* param) {
// TODO(regis): Once we inline functions, the propagated type of the formal
// parameter will reflect the compile type of the passed-in argument.
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698