Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index fb8f0d7332197fd5eee9c8f16a3f22763084ed21..182e93779df69e95826dabdb54b17d0cd0642e8d 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2232,7 +2232,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 { |