Commit eb2fc688 authored by danno@chromium.org's avatar danno@chromium.org

Remove superfluous HInnerAllocatedObject in BuildEmitDeepCopy

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/17881004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15367 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5b1ccfb9
...@@ -9999,10 +9999,12 @@ void HOptimizedGraphBuilder::BuildEmitDeepCopy( ...@@ -9999,10 +9999,12 @@ void HOptimizedGraphBuilder::BuildEmitDeepCopy(
} }
// Copy in-object properties. // Copy in-object properties.
HValue* object_properties = if (boilerplate_object->map()->NumberOfFields() != 0) {
AddInstruction(new(zone) HInnerAllocatedObject(target, object_offset)); HValue* object_properties =
BuildEmitInObjectProperties(boilerplate_object, original_boilerplate_object, AddInstruction(new(zone) HInnerAllocatedObject(target, object_offset));
object_properties, target, offset, data_target, data_offset); BuildEmitInObjectProperties(boilerplate_object, original_boilerplate_object,
object_properties, target, offset, data_target, data_offset);
}
// Create allocation site info. // Create allocation site info.
if (mode == TRACK_ALLOCATION_SITE && if (mode == TRACK_ALLOCATION_SITE &&
......
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