Commit 154719e8 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Support merging with distinct attributes.

R=danno@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14595 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent abc0c276
......@@ -7293,7 +7293,6 @@ MaybeObject* DescriptorArray::Merge(int verbatim,
Name* key = GetKey(descriptor);
PropertyDetails details = GetDetails(descriptor);
PropertyDetails other_details = other->GetDetails(descriptor);
ASSERT(details.attributes() == other_details.attributes());
if (details.type() == FIELD || other_details.type() == FIELD ||
(details.type() == CONSTANT_FUNCTION &&
......@@ -7303,7 +7302,7 @@ MaybeObject* DescriptorArray::Merge(int verbatim,
details.representation().generalize(other_details.representation());
FieldDescriptor d(key,
current_offset++,
details.attributes(),
other_details.attributes(),
representation);
result->Set(descriptor, &d, witness);
} else {
......
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