Index: src/v8utils.h |
diff --git a/src/v8utils.h b/src/v8utils.h |
index 87c5e7f42938f6896ede17114d2fc2d85234e976..93fc1fda52f204568c5831efe825b4a608e5389e 100644 |
--- a/src/v8utils.h |
+++ b/src/v8utils.h |
@@ -120,7 +120,9 @@ inline Vector< Handle<Object> > HandleVector(v8::internal::Handle<T>* elms, |
// Memory |
// Copies data from |src| to |dst|. The data spans MUST not overlap. |
-inline void CopyWords(Object** dst, Object** src, int num_words) { |
+template <typename T> |
+inline void CopyWords(T* dst, T* src, int num_words) { |
+ STATIC_ASSERT(sizeof(T) == kPointerSize); |
ASSERT(Min(dst, src) + num_words <= Max(dst, src)); |
ASSERT(num_words > 0); |