Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index d1ea51bf8bc3b435acab16642190cf0a04a73cfc..4056261605d3ae04888a038aaec072045ae0d189 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -709,8 +709,8 @@ void MathPowStub::Generate(MacroAssembler* masm) { |
__ bind(&try_arithmetic_simplification); |
__ cvttsd2si(exponent, double_exponent); |
// Skip to runtime if possibly NaN (indicated by the indefinite integer). |
- __ cmpl(exponent, Immediate(0x80000000u)); |
- __ j(equal, &call_runtime); |
+ __ cmpl(exponent, Immediate(0x1)); |
+ __ j(overflow, &call_runtime); |
if (exponent_type_ == ON_STACK) { |
// Detect square root case. Crankshaft detects constant +/-0.5 at |