Commit 9c245f16 authored by serya@chromium.org's avatar serya@chromium.org

Fixing a performance bug introduced in r4581.

Review URL: http://codereview.chromium.org/1910005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6a03e121
......@@ -8522,9 +8522,9 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
// string length. A negative value will be greater (unsigned comparison).
__ ldr(r0, MemOperand(sp, kPreviousIndexOffset));
__ tst(r0, Operand(kSmiTagMask));
__ b(eq, &runtime);
__ b(ne, &runtime);
__ cmp(r3, Operand(r0));
__ b(le, &runtime);
__ b(ls, &runtime);
// r2: Number of capture registers
// subject: Subject string
......
......@@ -10956,7 +10956,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
// string length. A negative value will be greater (unsigned comparison).
__ mov(eax, Operand(esp, kPreviousIndexOffset));
__ test(eax, Immediate(kSmiTagMask));
__ j(zero, &runtime);
__ j(not_zero, &runtime);
__ cmp(eax, Operand(ebx));
__ j(above_equal, &runtime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment