Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index a7efa760a721ac67ce2f67473138df6f76d1975c..e35a381faacd932d223a4a64d1d45a317e491007 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -2200,7 +2200,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 { |