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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10806089: Add HasSSATemp and an assert to ssa_temp_idnex setter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.cc
===================================================================
--- runtime/vm/flow_graph_allocator.cc (revision 9849)
+++ runtime/vm/flow_graph_allocator.cc (working copy)
@@ -112,7 +112,7 @@
}
Definition* current_def = current->AsDefinition();
- if ((current_def != NULL) && (current_def->ssa_temp_index() >= 0)) {
+ if ((current_def != NULL) && (current_def->HasSSATemp())) {
kill->Add(current_def->ssa_temp_index());
}
}
@@ -518,7 +518,7 @@
}
Definition* def = current->AsDefinition();
- if ((def != NULL) && (def->ssa_temp_index() >= 0)) {
+ if ((def != NULL) && (def->HasSSATemp())) {
Define(output_same_as_first_input ? current : NULL,
pos,
def->ssa_temp_index(),
« no previous file with comments | « no previous file | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698