Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 537d92c4624248c1557b1d70cfc1e63454576640..4e0d7988af726835219bda51eee2255ba8c4db4d 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -870,11 +870,7 @@ void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) { |
HEnvironment* last_environment = pred->last_environment(); |
for (int i = 0; i < block->phis()->length(); ++i) { |
HPhi* phi = block->phis()->at(i); |
- // TODO(mstarzinger): The length check below should actually not |
- // be necessary, but some array stubs already rely on it. This |
- // should be investigated and fixed. |
- if (phi->HasMergedIndex() && |
- phi->merged_index() < last_environment->length()) { |
+ if (phi->HasMergedIndex()) { |
last_environment->SetValueAt(phi->merged_index(), phi); |
} |
} |