Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 892c2892ba3d256a4fb8f3a6da5ed5df17fcd297..ba4850e2cbf3004aa514f04b1676a52a298dcf9d 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -236,20 +236,7 @@ AllocationSpace Heap::TargetSpaceId(InstanceType type) { |
void Heap::CopyBlock(Object** dst, Object** src, int byte_size) { |
ASSERT(IsAligned(byte_size, kPointerSize)); |
- |
- // Use block copying memcpy if the segment we're copying is |
- // enough to justify the extra call/setup overhead. |
- static const int kBlockCopyLimit = 16 * kPointerSize; |
- |
- if (byte_size >= kBlockCopyLimit) { |
- memcpy(dst, src, byte_size); |
- } else { |
- int remaining = byte_size / kPointerSize; |
- do { |
- remaining--; |
- *dst++ = *src++; |
- } while (remaining > 0); |
- } |
+ CopyWords(dst, src, byte_size / kPointerSize); |
} |