Improve the fix for r18344.
Our toolchains differ in mysterious ways, especially regarding overloading resolution, templates, etc. :-P This fix avoids a call/return just for resolution and uses a static_cast instead. R=dcarney@chromium.org Review URL: https://codereview.chromium.org/118183002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18349 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
59c334ebf4
commit
6d94e94585
@ -1388,15 +1388,11 @@ ExternalReference ExternalReference::address_of_regexp_stack_memory_size(
|
|||||||
#endif // V8_INTERPRETED_REGEXP
|
#endif // V8_INTERPRETED_REGEXP
|
||||||
|
|
||||||
|
|
||||||
static double math_log_double(double x) {
|
|
||||||
return log(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ExternalReference ExternalReference::math_log_double_function(
|
ExternalReference ExternalReference::math_log_double_function(
|
||||||
Isolate* isolate) {
|
Isolate* isolate) {
|
||||||
|
typedef double (*d2d)(double x);
|
||||||
return ExternalReference(Redirect(isolate,
|
return ExternalReference(Redirect(isolate,
|
||||||
FUNCTION_ADDR(math_log_double),
|
FUNCTION_ADDR(static_cast<d2d>(log)),
|
||||||
BUILTIN_FP_CALL));
|
BUILTIN_FP_CALL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user