Index: src/mips64/codegen-mips64.cc |
diff --git a/src/mips64/codegen-mips64.cc b/src/mips64/codegen-mips64.cc |
index 7df4c76e688665acb8318b351010e650456cb25c..4c9dfae01de48049c0b3cff0a7cc4a6448d7898a 100644 |
--- a/src/mips64/codegen-mips64.cc |
+++ b/src/mips64/codegen-mips64.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) |
return stub; |
#else |
@@ -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); |
{ |
@@ -598,7 +599,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 |