Reviewers: Lasse Reichstein,
Message:
Lasse,
may you have a look?
Description:
Use MemCopy in CopyWords.
Please review this at http://codereview.chromium.org/2647007/show
Affected files:
M src/utils.h
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index
ed6d9a4fee1c7e6158ec88fe8d607825cb609c79..9fa691fca8daa11173e54394c65e1acbe280f1a8
100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -651,10 +651,10 @@ inline void CopyWords(Object** dst, Object** src, int
num_words) {
// Use block copying memcpy if the segment we're copying is
// enough to justify the extra call/setup overhead.
- static const int kBlockCopyLimit = 16;
+ static const int kBlockCopyLimit = kMinComplexMemCopy / kPointerSize;
if (num_words >= kBlockCopyLimit) {
- memcpy(dst, src, num_words * kPointerSize);
+ MemCopy(dst, src, num_words * kPointerSize);
} else {
int remaining = num_words;
do {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev