| Index: src/mips64/codegen-mips64.cc
|
| diff --git a/src/mips64/codegen-mips64.cc b/src/mips64/codegen-mips64.cc
|
| index 35de3cc24c6c8d881f8d8a75484e9ce53d0734aa..f398bf4eda22e8a5a196ef3997f635d71a75fd19 100644
|
| --- a/src/mips64/codegen-mips64.cc
|
| +++ b/src/mips64/codegen-mips64.cc
|
| @@ -605,16 +605,16 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) {
|
| }
|
| #endif
|
|
|
| -UnaryMathFunction CreateSqrtFunction() {
|
| +UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) {
|
| #if defined(USE_SIMULATOR)
|
| - return &std::sqrt;
|
| + return nullptr;
|
| #else
|
| size_t actual_size;
|
| byte* buffer =
|
| static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true));
|
| - if (buffer == NULL) return &std::sqrt;
|
| + if (buffer == nullptr) return nullptr;
|
|
|
| - MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size),
|
| + MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size),
|
| CodeObjectRequired::kNo);
|
|
|
| __ MovFromFloatParameter(f12);
|
| @@ -626,9 +626,9 @@ UnaryMathFunction CreateSqrtFunction() {
|
| masm.GetCode(&desc);
|
| DCHECK(!RelocInfo::RequiresRelocation(desc));
|
|
|
| - CpuFeatures::FlushICache(buffer, actual_size);
|
| + Assembler::FlushICache(isolate, buffer, actual_size);
|
| base::OS::ProtectCode(buffer, actual_size);
|
| - return FUNCTION_CAST<UnaryMathFunction>(buffer);
|
| + return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer);
|
| #endif
|
| }
|
|
|
|
|