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

Unified Diff: runtime/vm/flow_graph.h

Issue 10915234: Mark phi as producing a smi value if it is dominated by SmiChecks over its operands. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improve handling of phi-cycles. Created 8 years, 3 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
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 5d67a5e9ee2ac3da0a24da0c6f50c5b2daaeffb3..29952be4228cba19112753ce1a40a02a9a3eec1f 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -81,6 +81,8 @@ class FlowGraph : public ZoneAllocated {
return BlockIterator(postorder());
}
+ intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; }
+
intptr_t max_virtual_register_number() const {
return current_ssa_temp_index();
}
@@ -141,8 +143,6 @@ class FlowGraph : public ZoneAllocated {
void MarkLivePhis(GrowableArray<PhiInstr*>* live_phis);
- intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; }
-
// DiscoverBlocks computes parent_ and assigned_vars_ which are then used
// if/when computing SSA.
GrowableArray<intptr_t> parent_;

Powered by Google App Engine
This is Rietveld 408576698