Index: src/mips/codegen-mips.cc |
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc |
index 24c3a580b4635d7277035e8813528cdc72375b71..57b87a51f49cbc2e38126ee9994a9219ffdea437 100644 |
--- a/src/mips/codegen-mips.cc |
+++ b/src/mips/codegen-mips.cc |
@@ -71,7 +71,8 @@ UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { |
#if defined(V8_HOST_ARCH_MIPS) |
-MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) { |
+MemCopyUint8Function CreateMemCopyUint8Function(Isolate* isolate, |
+ MemCopyUint8Function stub) { |
#if defined(USE_SIMULATOR) || defined(_MIPS_ARCH_MIPS32R6) || \ |
defined(_MIPS_ARCH_MIPS32RX) |
return stub; |
@@ -79,11 +80,11 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) { |
size_t actual_size; |
byte* buffer = |
static_cast<byte*>(base::OS::Allocate(3 * KB, &actual_size, true)); |
- if (buffer == NULL) return stub; |
+ if (buffer == nullptr) return stub; |
// This code assumes that cache lines are 32 bytes and if the cache line is |
// larger it will not work correctly. |
- MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size), |
+ MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), |
CodeObjectRequired::kNo); |
{ |
@@ -597,7 +598,7 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) { |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
+ Assembler::FlushICache(isolate, buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
return FUNCTION_CAST<MemCopyUint8Function>(buffer); |
#endif |