Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index 8ec1c9505a1942d3930bbe1422b713be341c8dec..d2130a1a481fdf32c04e8e2bbf383648ffe9b0bf 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -7182,12 +7182,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Read the value from the static offsets vector buffer and make it a smi. |
__ movl(rdi, Operand(rcx, rdx, times_int_size, 0)); |
__ Integer32ToSmi(rdi, rdi, &runtime); |
- // Add previous index (from its stack slot) if value is not negative. |
- Label capture_negative; |
- // Negative flag set by smi convertion above. |
- __ j(negative, &capture_negative); |
- __ SmiAdd(rdi, rdi, rax, &runtime); // Add previous index. |
- __ bind(&capture_negative); |
// Store the smi value in the last match info. |
__ movq(FieldOperand(rbx, |
rdx, |