Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index 4e1d6112526db4f36f4b7b86b83b6f1cc22c6f26..0f7914bfd088c1a2525ebbf18a4ebe8c08e82110 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -5,6 +5,7 @@ |
#include "src/crankshaft/hydrogen-instructions.h" |
#include "src/base/bits.h" |
+#include "src/base/ieee754.h" |
#include "src/base/safe_math.h" |
#include "src/crankshaft/hydrogen-infer-representation.h" |
#include "src/double.h" |
@@ -3425,7 +3426,7 @@ HInstruction* HUnaryMathOperation::New(Isolate* isolate, Zone* zone, |
lazily_initialize_fast_exp(isolate); |
return H_CONSTANT_DOUBLE(fast_exp(d, isolate)); |
case kMathLog: |
- return H_CONSTANT_DOUBLE(std::log(d)); |
+ return H_CONSTANT_DOUBLE(base::ieee754::log(d)); |
case kMathSqrt: |
lazily_initialize_fast_sqrt(isolate); |
return H_CONSTANT_DOUBLE(fast_sqrt(d, isolate)); |