Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 440495f5a483de65fd9af677eceb1703ddf6ecbd..a22a696d9325560e6be09bc4b8d890b7132e94ca 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -3724,6 +3724,8 @@ Handle<Object> TranslatedState::MaterializeCapturedObjectAt( |
Handle<JSArrayIterator> object = Handle<JSArrayIterator>::cast( |
isolate_->factory()->NewJSObjectFromMap(map, NOT_TENURED)); |
slot->value_ = object; |
+ // Initialize the index to zero to make the heap verifier happy. |
+ object->set_index(Smi::FromInt(0)); |
Handle<Object> properties = materializer.FieldAt(value_index); |
Handle<Object> elements = materializer.FieldAt(value_index); |
Handle<Object> iterated_object = materializer.FieldAt(value_index); |