Index: src/crankshaft/ia32/lithium-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-ia32.cc b/src/crankshaft/ia32/lithium-ia32.cc |
index 57a9a3c478a28c6a93f1f0db1649535a33a5dba2..aa022f48c6f36cfd79b28f21b1df88d5ef4cf6f1 100644 |
--- a/src/crankshaft/ia32/lithium-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-ia32.cc |
@@ -420,13 +420,6 @@ LPlatformChunk* LChunkBuilder::Build() { |
LPhase phase("L_Building chunk", chunk_); |
status_ = BUILDING; |
- // Reserve the first spill slot for the state of dynamic alignment. |
- if (info()->IsOptimizing()) { |
- int alignment_state_index = chunk_->GetNextSpillIndex(GENERAL_REGISTERS); |
- DCHECK_EQ(alignment_state_index, 4); |
- USE(alignment_state_index); |
- } |
- |
// If compiling for OSR, reserve space for the unoptimized frame, |
// which will be subsumed into this frame. |
if (graph()->has_osr()) { |
@@ -2477,11 +2470,6 @@ LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
Retry(kNotEnoughSpillSlotsForOsr); |
spill_index = 0; |
} |
- if (spill_index == 0) { |
- // The dynamic frame alignment state overwrites the first local. |
- // The first local is saved at the end of the unoptimized frame. |
- spill_index = graph()->osr()->UnoptimizedFrameSlots(); |
- } |
spill_index += StandardFrameConstants::kFixedSlotCount; |
} |
return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |