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

Unified Diff: runtime/vm/flow_graph.cc

Issue 215363004: Support for multiple register values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/flow_graph.h ('k') | runtime/vm/flow_graph_allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index 98a774ba959d34490aafbb61b4990beaace9bcbb..3c2352eb267c03ef371581f2e4c882dc7daaf7da 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -115,7 +115,7 @@ void FlowGraph::InsertAfter(Instruction* prev,
Definition::UseKind use_kind) {
if (use_kind == Definition::kValue) {
ASSERT(instr->IsDefinition());
- instr->AsDefinition()->set_ssa_temp_index(alloc_ssa_temp_index());
+ AllocateSSAIndexes(instr->AsDefinition());
}
instr->InsertAfter(prev);
ASSERT(instr->env() == NULL);
@@ -129,7 +129,7 @@ Instruction* FlowGraph::AppendTo(Instruction* prev,
Definition::UseKind use_kind) {
if (use_kind == Definition::kValue) {
ASSERT(instr->IsDefinition());
- instr->AsDefinition()->set_ssa_temp_index(alloc_ssa_temp_index());
+ AllocateSSAIndexes(instr->AsDefinition());
}
ASSERT(instr->env() == NULL);
if (env != NULL) env->DeepCopyTo(instr);
@@ -716,7 +716,7 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis,
ASSERT(parameter_count() == inlining_parameters->length());
for (intptr_t i = 0; i < parameter_count(); ++i) {
Definition* defn = (*inlining_parameters)[i];
- defn->set_ssa_temp_index(alloc_ssa_temp_index()); // New SSA temp.
+ AllocateSSAIndexes(defn);
AddToInitialDefinitions(defn);
env.Add(defn);
}
@@ -926,7 +926,7 @@ void FlowGraph::RenameRecursive(BlockEntryInstr* block_entry,
// Not a load, store, or constant.
if (definition->is_used()) {
// Assign fresh SSA temporary and update expression stack.
- definition->set_ssa_temp_index(alloc_ssa_temp_index());
+ AllocateSSAIndexes(definition);
env->Add(definition);
}
}
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698