Index: src/crankshaft/mips64/lithium-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-mips64.cc b/src/crankshaft/mips64/lithium-mips64.cc |
index 78dcd4761c66a0fcdd66c7a23b231ad9d69166ac..6fc4eaffa0a8dac28dae50eb16d94d304c54af29 100644 |
--- a/src/crankshaft/mips64/lithium-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-mips64.cc |
@@ -390,8 +390,8 @@ void LTransitionElementsKind::PrintDataTo(StringStream* stream) { |
int LPlatformChunk::GetNextSpillIndex(RegisterKind kind) { |
// Skip a slot if for a double-width slot. |
- if (kind == DOUBLE_REGISTERS) spill_slot_count_++; |
- return spill_slot_count_++; |
+ if (kind == DOUBLE_REGISTERS) current_frame_slots_++; |
+ return current_frame_slots_++; |
} |
@@ -2408,6 +2408,7 @@ LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
Retry(kTooManySpillSlotsNeededForOSR); |
spill_index = 0; |
} |
+ spill_index += StandardFrameConstants::kFixedSlotCount; |
} |
return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
} |