Commit 9deff0fa authored by akos.palfi's avatar akos.palfi Committed by Commit bot

MIPS: Fix '[stubs] Split ToNumberStub into reusable subparts.'

BUG=

Review URL: https://codereview.chromium.org/1824893002

Cr-Commit-Position: refs/heads/master@{#34973}
parent 9640015e
......@@ -2820,8 +2820,7 @@ void StringToNumberStub::Generate(MacroAssembler* masm) {
__ And(at, a2, Operand(String::kContainsCachedArrayIndexMask));
__ Branch(&runtime, ne, at, Operand(zero_reg));
__ IndexFromHash(a2, v0);
__ Ret(USE_DELAY_SLOT);
__ mov(v0, a0); // In delay slot.
__ Ret();
__ bind(&runtime);
__ Push(a0); // Push argument.
......
......@@ -2824,8 +2824,7 @@ void StringToNumberStub::Generate(MacroAssembler* masm) {
__ And(at, a2, Operand(String::kContainsCachedArrayIndexMask));
__ Branch(&runtime, ne, at, Operand(zero_reg));
__ IndexFromHash(a2, v0);
__ Ret(USE_DELAY_SLOT);
__ mov(v0, a0); // In delay slot.
__ Ret();
__ bind(&runtime);
__ Push(a0); // Push argument.
......
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