Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 896efcf65f68c1d75ec5a19c9c6823d1541daf69..6eb7306347e96001e05a304e24eec403b7aedeae 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -4,6 +4,7 @@ |
#include "src/v8.h" |
+#include "src/base/bits.h" |
#include "src/double.h" |
#include "src/factory.h" |
#include "src/hydrogen-infer-representation.h" |
@@ -4179,8 +4180,7 @@ HInstruction* HUnaryMathOperation::New( |
return H_CONSTANT_DOUBLE(Floor(d)); |
case kMathClz32: { |
uint32_t i = DoubleToUint32(d); |
- return H_CONSTANT_INT( |
- (i == 0) ? 32 : CompilerIntrinsics::CountLeadingZeros(i)); |
+ return H_CONSTANT_INT(base::bits::CountLeadingZeros32(i)); |
} |
default: |
UNREACHABLE(); |