Fixed assertions when accessing the hidden properties dictionary.
TBR=jkummerow@chromium.org Review URL: https://chromiumcodereview.appspot.com/9360012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
cc3c37ef61
commit
557fc46b62
@ -3779,7 +3779,8 @@ MaybeObject* JSObject::GetHiddenPropertiesDictionary(bool create_if_absent) {
|
||||
this->FastPropertyAt(descriptors->GetFieldIndex(0));
|
||||
return StringDictionary::cast(hidden_store);
|
||||
} else {
|
||||
ASSERT(descriptors->GetType(0) == MAP_TRANSITION);
|
||||
ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
|
||||
descriptors->GetType(0) == MAP_TRANSITION);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -3826,7 +3827,8 @@ MaybeObject* JSObject::SetHiddenPropertiesDictionary(
|
||||
this->FastPropertyAtPut(descriptors->GetFieldIndex(0), dictionary);
|
||||
return this;
|
||||
} else {
|
||||
ASSERT(descriptors->GetType(0) == MAP_TRANSITION);
|
||||
ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
|
||||
descriptors->GetType(0) == MAP_TRANSITION);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user