Revision: 15367
Author: [email protected]
Date: Thu Jun 27 09:07:55 2013
Log: Remove superfluous HInnerAllocatedObject in BuildEmitDeepCopy
[email protected]
Review URL: https://codereview.chromium.org/17881004
http://code.google.com/p/v8/source/detail?r=15367
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Thu Jun 27 07:44:36 2013
+++ /branches/bleeding_edge/src/hydrogen.cc Thu Jun 27 09:07:55 2013
@@ -9999,10 +9999,12 @@
}
// Copy in-object properties.
- HValue* object_properties =
- AddInstruction(new(zone) HInnerAllocatedObject(target,
object_offset));
- BuildEmitInObjectProperties(boilerplate_object,
original_boilerplate_object,
- object_properties, target, offset, data_target, data_offset);
+ if (boilerplate_object->map()->NumberOfFields() != 0) {
+ HValue* object_properties =
+ AddInstruction(new(zone) HInnerAllocatedObject(target,
object_offset));
+ BuildEmitInObjectProperties(boilerplate_object,
original_boilerplate_object,
+ object_properties, target, offset, data_target, data_offset);
+ }
// Create allocation site info.
if (mode == TRACK_ALLOCATION_SITE &&
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.