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);
}
}
if (!is_store) {
Push(access);
}
+ NoObservableSideEffectsScope scope(this);
current_block()->GotoNoSimulate(join);
set_current_block(other_map);
}
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);
}
}
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);
}
}
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);
}
}