Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index 10d7f71332f791f26fbe794551ad7dacc0120cc9..539f4eefba5bd635d2a41b2a64193c570b1ca181 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -58,24 +58,27 @@ void LOperand::PrintTo(StringStream* stream) { |
case UNALLOCATED: |
unalloc = LUnallocated::cast(this); |
stream->Add("v%d", unalloc->virtual_register()); |
- switch (unalloc->policy()) { |
+ if (unalloc->basic_policy() == LUnallocated::FIXED_SLOT) { |
+ stream->Add("(=%dS)", unalloc->fixed_slot_index()); |
+ break; |
+ } |
+ switch (unalloc->extended_policy()) { |
case LUnallocated::NONE: |
break; |
case LUnallocated::FIXED_REGISTER: { |
+ int reg_index = unalloc->fixed_register_index(); |
const char* register_name = |
- Register::AllocationIndexToString(unalloc->fixed_index()); |
+ Register::AllocationIndexToString(reg_index); |
stream->Add("(=%s)", register_name); |
break; |
} |
case LUnallocated::FIXED_DOUBLE_REGISTER: { |
+ int reg_index = unalloc->fixed_register_index(); |
const char* double_register_name = |
- DoubleRegister::AllocationIndexToString(unalloc->fixed_index()); |
+ DoubleRegister::AllocationIndexToString(reg_index); |
stream->Add("(=%s)", double_register_name); |
break; |
} |
- case LUnallocated::FIXED_SLOT: |
- stream->Add("(=%dS)", unalloc->fixed_index()); |
- break; |
case LUnallocated::MUST_HAVE_REGISTER: |
stream->Add("(R)"); |
break; |