Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index ecf355fdc84e90d8199949eb79c2936412c5b8e3..9af40f851c95f2521eab4082d340cd4fb5a17c9c 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -324,16 +324,16 @@ MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function( |
} |
#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(d0); |
@@ -345,9 +345,9 @@ UnaryMathFunction CreateSqrtFunction() { |
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<UnaryMathFunction>(buffer); |
+ return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); |
#endif |
} |