Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 9d82e0e31abfc70475b112ac8d28756517bcebd5..b050ec85dd3ddeaef043a0554aefb127459bb6a4 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3801,7 +3801,7 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
Label result_longer_than_two; |
__ movq(rcx, Operand(rsp, kToOffset)); |
__ movq(rdx, Operand(rsp, kFromOffset)); |
- __ JumpIfNotBothPositiveSmi(rcx, rdx, &runtime); |
+ __ JumpUnlessBothNonNegativeSmi(rcx, rdx, &runtime); |
__ SmiSub(rcx, rcx, rdx); // Overflow doesn't happen. |
__ cmpq(FieldOperand(rax, String::kLengthOffset), rcx); |