Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 04ab3810726f3cfd012ea150b71c170ddee1bf0b..dacdd5a02e7f7acbddd66d17ecf5d31045e74cac 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2257,7 +2257,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 { |