Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index fc708e67ec318686918522d28a61aa16b4ccfbb8..b28cd3e8727fee79309ccd550b148b5cc7ca3db7 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -1435,8 +1435,8 @@ class RelocInfoBuffer { |
// Copy the data. |
int curently_used_size = |
static_cast<int>(buffer_ + buffer_size_ - reloc_info_writer_.pos()); |
- memmove(new_buffer + new_buffer_size - curently_used_size, |
- reloc_info_writer_.pos(), curently_used_size); |
+ OS::MemMove(new_buffer + new_buffer_size - curently_used_size, |
+ reloc_info_writer_.pos(), curently_used_size); |
reloc_info_writer_.Reposition( |
new_buffer + new_buffer_size - curently_used_size, |
@@ -1488,7 +1488,7 @@ static Handle<Code> PatchPositionsInCode( |
if (buffer.length() == code->relocation_size()) { |
// Simply patch relocation area of code. |
- memcpy(code->relocation_start(), buffer.start(), buffer.length()); |
+ OS::MemCopy(code->relocation_start(), buffer.start(), buffer.length()); |
return code; |
} else { |
// Relocation info section now has different size. We cannot simply |
@@ -1761,9 +1761,9 @@ static const char* DropFrames(Vector<StackFrame*> frames, |
StackFrame* pre_pre_frame = frames[top_frame_index - 2]; |
- memmove(padding_start + kPointerSize - shortage_bytes, |
- padding_start + kPointerSize, |
- Debug::FramePaddingLayout::kFrameBaseSize * kPointerSize); |
+ OS::MemMove(padding_start + kPointerSize - shortage_bytes, |
+ padding_start + kPointerSize, |
+ Debug::FramePaddingLayout::kFrameBaseSize * kPointerSize); |
pre_top_frame->UpdateFp(pre_top_frame->fp() - shortage_bytes); |
pre_pre_frame->SetCallerFp(pre_top_frame->fp()); |