Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index be18b3b7a182f010a177b875ab000002d4b8a31a..81793d344e7c334424eec385309c88649325ed76 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -101,6 +101,17 @@ void LookupIterator::ReloadPropertyInformation() { |
} |
+void LookupIterator::ReloadHolderMap() { |
+ DCHECK_EQ(DATA, state_); |
+ DCHECK(IsElement()); |
+ DCHECK(JSObject::cast(*holder_)->HasExternalArrayElements() || |
+ JSObject::cast(*holder_)->HasFixedTypedArrayElements()); |
+ if (*holder_map_ != holder_->map()) { |
+ holder_map_ = handle(holder_->map(), isolate_); |
+ } |
+} |
+ |
+ |
void LookupIterator::PrepareForDataProperty(Handle<Object> value) { |
DCHECK(state_ == DATA || state_ == ACCESSOR); |
DCHECK(HolderIsReceiverOrHiddenPrototype()); |