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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 207063002: Refactor to support multiple outputs in location summary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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_allocator.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 137da67149643f7f3127148d12db3e8ccee62541..6cfea3213dfc31132f3c50e87f5784277149e6cb 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -916,10 +916,10 @@ void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) {
}
}
- if (locs->out().IsRegister()) {
+ if (locs->out(0).IsRegister()) {
// Fixed output registers are allowed to overlap with
// temps and inputs.
- blocked_registers[locs->out().reg()] = true;
+ blocked_registers[locs->out(0).reg()] = true;
}
// Do not allocate known registers.
@@ -976,7 +976,7 @@ void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) {
}
}
- Location result_location = locs->out();
+ Location result_location = locs->out(0);
if (result_location.IsUnallocated()) {
switch (result_location.policy()) {
case Location::kAny:
@@ -993,7 +993,7 @@ void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) {
UNREACHABLE();
break;
}
- locs->set_out(result_location);
+ locs->set_out(0, result_location);
}
}
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698