Commit ce73259f authored by antonm@chromium.org's avatar antonm@chromium.org

Pass the proper number of fields to update remembered set for.

By oversight kPointerSize more fields were passed.

BUG=39128

Review URL: http://codereview.chromium.org/1265001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4242 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2bd99197
......@@ -2648,7 +2648,7 @@ Object* Heap::CopyJSObject(JSObject* source) {
// Update write barrier for all fields that lie beyond the header.
RecordWrites(clone_address,
JSObject::kHeaderSize,
object_size - JSObject::kHeaderSize);
(object_size - JSObject::kHeaderSize) / kPointerSize);
} else {
clone = new_space_.AllocateRaw(object_size);
if (clone->IsFailure()) return clone;
......
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