Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index fcc49a45744b217c341f9a4100aac95f74b8ec7e..481700b15e45a38fb5bfbe1d8153bf22864a08ff 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2482,8 +2482,10 @@ HValueMap::HValueMap(Zone* zone, const HValueMap* other) |
array_(zone->NewArray<HValueMapListElement>(other->array_size_)), |
lists_(zone->NewArray<HValueMapListElement>(other->lists_size_)), |
free_list_head_(other->free_list_head_) { |
- memcpy(array_, other->array_, array_size_ * sizeof(HValueMapListElement)); |
- memcpy(lists_, other->lists_, lists_size_ * sizeof(HValueMapListElement)); |
+ OS::MemCopy( |
+ array_, other->array_, array_size_ * sizeof(HValueMapListElement)); |
+ OS::MemCopy( |
+ lists_, other->lists_, lists_size_ * sizeof(HValueMapListElement)); |
} |
@@ -2609,7 +2611,7 @@ void HValueMap::ResizeLists(int new_size, Zone* zone) { |
lists_ = new_lists; |
if (old_lists != NULL) { |
- memcpy(lists_, old_lists, old_size * sizeof(HValueMapListElement)); |
+ OS::MemCopy(lists_, old_lists, old_size * sizeof(HValueMapListElement)); |
} |
for (int i = old_size; i < lists_size_; ++i) { |
lists_[i].next = free_list_head_; |
@@ -2655,7 +2657,7 @@ HSideEffectMap::HSideEffectMap(HSideEffectMap* other) : count_(other->count_) { |
HSideEffectMap& HSideEffectMap::operator= (const HSideEffectMap& other) { |
if (this != &other) { |
- memcpy(data_, other.data_, kNumberOfTrackedSideEffects * kPointerSize); |
+ OS::MemCopy(data_, other.data_, kNumberOfTrackedSideEffects * kPointerSize); |
} |
return *this; |
} |
@@ -2953,7 +2955,7 @@ GVN_UNTRACKED_FLAG_LIST(DECLARE_FLAG) |
size_t string_len = strlen(underlying_buffer) + 1; |
ASSERT(string_len <= sizeof(underlying_buffer)); |
char* result = new char[strlen(underlying_buffer) + 1]; |
- memcpy(result, underlying_buffer, string_len); |
+ OS::MemCopy(result, underlying_buffer, string_len); |
return SmartArrayPointer<char>(result); |
} |