Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index feb912f4147754a7ebc2f09c60dc65f18b22ef0a..dd6d3bc60a6ff8aff65c248cfa6f815ad61a3d42 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -268,9 +268,9 @@ static void CopyElements(AssertNoAllocation* no_gc, |
int src_index, |
int len) { |
ASSERT(dst != src); // Use MoveElements instead. |
- memcpy(dst->data_start() + dst_index, |
- src->data_start() + src_index, |
- len * kPointerSize); |
+ CopyWords(dst->data_start() + dst_index, |
+ src->data_start() + src_index, |
+ len); |
WriteBarrierMode mode = dst->GetWriteBarrierMode(*no_gc); |
if (mode == UPDATE_WRITE_BARRIER) { |
Heap::RecordWrites(dst->address(), dst->OffsetOfElementAt(dst_index), len); |