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

Unified Diff: src/hydrogen.cc

Issue 527063002: Revert "More aggressive reuse of spill slots in the register allocator." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | src/lithium-allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index c4143c4e3d670e22a25e9f1edb0b0b3a709852d7..169df22aa8293093add0c5275fb7343b00118c6e 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -12360,17 +12360,12 @@ void HTracer::TraceLiveRange(LiveRange* range, const char* type,
trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg));
}
} else if (range->IsSpilled()) {
- int index = -1;
- if (range->TopLevel()->GetSpillRange()->id() != -1) {
- index = range->TopLevel()->GetSpillRange()->id();
+ LOperand* op = range->TopLevel()->GetSpillOperand();
+ if (op->IsDoubleStackSlot()) {
+ trace_.Add(" \"double_stack:%d\"", op->index());
} else {
- index = range->TopLevel()->GetSpillOperand()->index();
- }
- if (range->TopLevel()->Kind() == DOUBLE_REGISTERS) {
- trace_.Add(" \"double_stack:%d\"", index);
- } else {
- DCHECK(range->TopLevel()->Kind() == GENERAL_REGISTERS);
- trace_.Add(" \"stack:%d\"", index);
+ DCHECK(op->IsStackSlot());
+ trace_.Add(" \"stack:%d\"", op->index());
}
}
int parent_index = -1;
« no previous file with comments | « no previous file | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698