Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index fba2318081c4cfec5f131208a0ca887240559931..3193755b3872d509aaf4d6cb48bd330eda11dfc3 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -2175,7 +2175,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 { |