Commit 1068916b authored by verwaest@chromium.org's avatar verwaest@chromium.org

When we find an accessor pair as TRANSITION, we are sure it doesn't contain an accessor yet.

Review URL: https://chromiumcodereview.appspot.com/10704185

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12065 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c1ee1b45
......@@ -2875,16 +2875,8 @@ MaybeObject* JSObject::SetPropertyForResult(LookupResult* result,
Object* transition = result->GetTransitionValue();
if (transition->IsAccessorPair()) {
if (!AccessorPair::cast(transition)->ContainsAccessor()) {
return self->ConvertDescriptorToField(*name,
*value,
attributes);
}
return self->SetPropertyWithCallback(transition,
*name,
*value,
result->holder(),
strict_mode);
ASSERT(!AccessorPair::cast(transition)->ContainsAccessor());
return ConvertDescriptorToField(*name, *value, attributes);
}
Map* transition_map = Map::cast(transition);
......@@ -3008,6 +3000,7 @@ MaybeObject* JSObject::SetLocalPropertyIgnoreAttributes(
Object* transition = result.GetTransitionValue();
if (transition->IsAccessorPair()) {
ASSERT(!AccessorPair::cast(transition)->ContainsAccessor());
return ConvertDescriptorToField(name, value, attributes);
}
......
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