diff --git a/src/assembler.cc b/src/assembler.cc index 1076be0271..4ac2fb49ea 100644 --- a/src/assembler.cc +++ b/src/assembler.cc @@ -1388,15 +1388,11 @@ ExternalReference ExternalReference::address_of_regexp_stack_memory_size( #endif // V8_INTERPRETED_REGEXP -static double math_log_double(double x) { - return log(x); -} - - ExternalReference ExternalReference::math_log_double_function( Isolate* isolate) { + typedef double (*d2d)(double x); return ExternalReference(Redirect(isolate, - FUNCTION_ADDR(math_log_double), + FUNCTION_ADDR(static_cast(log)), BUILTIN_FP_CALL)); }