Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 278344fd8867861aafe0388da02939cc8448c812..e0b074905e19536e2e3f73653c3edec831d5724d 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -845,7 +845,7 @@ void Simulator::CheckICache(v8::internal::HashMap* i_cache, |
Instruction::kInstrSize)); |
} else { |
// Cache miss. Load memory into the cache. |
- OS::MemCopy(cached_line, line, CachePage::kLineLength); |
+ MemCopy(cached_line, line, CachePage::kLineLength); |
*cache_valid_byte = CachePage::LINE_VALID; |
} |
} |
@@ -1047,8 +1047,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])]; |
- OS::MemCopy(buffer, ®isters_[reg], 2 * sizeof(registers_[0])); |
- OS::MemCopy(&dm_val, buffer, 2 * sizeof(registers_[0])); |
+ MemCopy(buffer, ®isters_[reg], 2 * sizeof(registers_[0])); |
+ MemCopy(&dm_val, buffer, 2 * sizeof(registers_[0])); |
return(dm_val); |
} |
@@ -1096,14 +1096,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); |
- OS::MemCopy(x, buffer, sizeof(buffer)); |
+ MemCopy(x, buffer, sizeof(buffer)); |
// Registers a2 and a3 -> y. |
reg_buffer[0] = get_register(a2); |
reg_buffer[1] = get_register(a3); |
- OS::MemCopy(y, buffer, sizeof(buffer)); |
+ MemCopy(y, buffer, sizeof(buffer)); |
// Register 2 -> z. |
reg_buffer[0] = get_register(a2); |
- OS::MemCopy(z, buffer, sizeof(*z)); |
+ MemCopy(z, buffer, sizeof(*z)); |
} |
} |
@@ -1115,7 +1115,7 @@ void Simulator::SetFpResult(const double& result) { |
} else { |
char buffer[2 * sizeof(registers_[0])]; |
int32_t* reg_buffer = reinterpret_cast<int32_t*>(buffer); |
- OS::MemCopy(buffer, &result, sizeof(buffer)); |
+ MemCopy(buffer, &result, sizeof(buffer)); |
// Copy result to v0 and v1. |
set_register(v0, reg_buffer[0]); |
set_register(v1, reg_buffer[1]); |
@@ -2887,9 +2887,9 @@ double Simulator::CallFP(byte* entry, double d0, double d1) { |
} else { |
int buffer[2]; |
ASSERT(sizeof(buffer[0]) * 2 == sizeof(d0)); |
- OS::MemCopy(buffer, &d0, sizeof(d0)); |
+ MemCopy(buffer, &d0, sizeof(d0)); |
set_dw_register(a0, buffer); |
- OS::MemCopy(buffer, &d1, sizeof(d1)); |
+ MemCopy(buffer, &d1, sizeof(d1)); |
set_dw_register(a2, buffer); |
} |
CallInternal(entry); |