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
parent cc3c37ef
...@@ -3779,7 +3779,8 @@ MaybeObject* JSObject::GetHiddenPropertiesDictionary(bool create_if_absent) { ...@@ -3779,7 +3779,8 @@ MaybeObject* JSObject::GetHiddenPropertiesDictionary(bool create_if_absent) {
this->FastPropertyAt(descriptors->GetFieldIndex(0)); this->FastPropertyAt(descriptors->GetFieldIndex(0));
return StringDictionary::cast(hidden_store); return StringDictionary::cast(hidden_store);
} else { } else {
ASSERT(descriptors->GetType(0) == MAP_TRANSITION); ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
descriptors->GetType(0) == MAP_TRANSITION);
} }
} }
} else { } else {
...@@ -3826,7 +3827,8 @@ MaybeObject* JSObject::SetHiddenPropertiesDictionary( ...@@ -3826,7 +3827,8 @@ MaybeObject* JSObject::SetHiddenPropertiesDictionary(
this->FastPropertyAtPut(descriptors->GetFieldIndex(0), dictionary); this->FastPropertyAtPut(descriptors->GetFieldIndex(0), dictionary);
return this; return this;
} else { } else {
ASSERT(descriptors->GetType(0) == MAP_TRANSITION); ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
descriptors->GetType(0) == MAP_TRANSITION);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment