Index: src/list-inl.h |
diff --git a/src/list-inl.h b/src/list-inl.h |
index 7a84313cd6ad5ed5235b97c5442ef3f520a1cc1a..408859e45668adcc5e64a38df09159ac92b61ab4 100644 |
--- a/src/list-inl.h |
+++ b/src/list-inl.h |
@@ -29,6 +29,7 @@ |
#define V8_LIST_INL_H_ |
#include "list.h" |
+#include "platform.h" |
namespace v8 { |
namespace internal { |
@@ -87,7 +88,7 @@ template<typename T, class P> |
void List<T, P>::Resize(int new_capacity, P alloc) { |
ASSERT_LE(length_, new_capacity); |
T* new_data = NewData(new_capacity, alloc); |
- memcpy(new_data, data_, length_ * sizeof(T)); |
+ OS::MemCopy(new_data, data_, length_ * sizeof(T)); |
List<T, P>::DeleteData(data_); |
data_ = new_data; |
capacity_ = new_capacity; |