Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 22726078e5039741c4a11cf87126ce748e9ad819..7a2cd7851d0c8d73a5880eb180bab0ee26671fc0 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -2164,7 +2164,7 @@ LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
LParameter* result = new(zone()) LParameter; |
- if (info()->IsOptimizing()) { |
+ if (instr->kind() == HParameter::STACK_PARAMETER) { |
int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
return DefineAsSpilled(result, spill_index); |
} else { |