Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 0a2f075cf737b4c0107b56ccc58be2712242dffc..bc384357c2b348ccbfb76633d019bd644c9f1227 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -867,7 +867,7 @@ void Simulator::CheckICache(v8::internal::HashMap* i_cache, |
Instruction::kInstrSize) == 0); |
} else { |
// Cache miss. Load memory into the cache. |
- memcpy(cached_line, line, CachePage::kLineLength); |
+ OS::MemCopy(cached_line, line, CachePage::kLineLength); |
*cache_valid_byte = CachePage::LINE_VALID; |
} |
} |
@@ -1059,8 +1059,8 @@ double Simulator::get_double_from_register_pair(int reg) { |
// Read the bits from the unsigned integer register_[] array |
// into the double precision floating point value and return it. |
char buffer[2 * sizeof(registers_[0])]; |
- memcpy(buffer, ®isters_[reg], 2 * sizeof(registers_[0])); |
- memcpy(&dm_val, buffer, 2 * sizeof(registers_[0])); |
+ OS::MemCopy(buffer, ®isters_[reg], 2 * sizeof(registers_[0])); |
+ OS::MemCopy(&dm_val, buffer, 2 * sizeof(registers_[0])); |
return(dm_val); |
} |
@@ -1108,14 +1108,14 @@ void Simulator::GetFpArgs(double* x, double* y, int32_t* z) { |
// Registers a0 and a1 -> x. |
reg_buffer[0] = get_register(a0); |
reg_buffer[1] = get_register(a1); |
- memcpy(x, buffer, sizeof(buffer)); |
+ OS::MemCopy(x, buffer, sizeof(buffer)); |
// Registers a2 and a3 -> y. |
reg_buffer[0] = get_register(a2); |
reg_buffer[1] = get_register(a3); |
- memcpy(y, buffer, sizeof(buffer)); |
+ OS::MemCopy(y, buffer, sizeof(buffer)); |
// Register 2 -> z. |
reg_buffer[0] = get_register(a2); |
- memcpy(z, buffer, sizeof(*z)); |
+ OS::MemCopy(z, buffer, sizeof(*z)); |
} |
} |
@@ -1127,7 +1127,7 @@ void Simulator::SetFpResult(const double& result) { |
} else { |
char buffer[2 * sizeof(registers_[0])]; |
int32_t* reg_buffer = reinterpret_cast<int32_t*>(buffer); |
- memcpy(buffer, &result, sizeof(buffer)); |
+ OS::MemCopy(buffer, &result, sizeof(buffer)); |
// Copy result to v0 and v1. |
set_register(v0, reg_buffer[0]); |
set_register(v1, reg_buffer[1]); |
@@ -2867,9 +2867,9 @@ double Simulator::CallFP(byte* entry, double d0, double d1) { |
} else { |
int buffer[2]; |
ASSERT(sizeof(buffer[0]) * 2 == sizeof(d0)); |
- memcpy(buffer, &d0, sizeof(d0)); |
+ OS::MemCopy(buffer, &d0, sizeof(d0)); |
set_dw_register(a0, buffer); |
- memcpy(buffer, &d1, sizeof(d1)); |
+ OS::MemCopy(buffer, &d1, sizeof(d1)); |
set_dw_register(a2, buffer); |
} |
CallInternal(entry); |