forked from mirrors/gecko-dev
Bug 1466189: followup patch to make discard stack unconditional r=jandem
--HG-- extra : rebase_source : bf19d39abb1ee0857ea73f72f1aa26f24ef1cf38
This commit is contained in:
parent
714319bf73
commit
9d8092fba3
2 changed files with 4 additions and 2 deletions
|
|
@ -996,12 +996,13 @@ BaselineCacheIRCompiler::emitCompareStringResult()
|
||||||
if (!addFailurePath(&failure))
|
if (!addFailurePath(&failure))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
allocator.discardStack(masm);
|
||||||
|
|
||||||
Label slow, done;
|
Label slow, done;
|
||||||
masm.compareStrings(op, left, right, scratch, &slow);
|
masm.compareStrings(op, left, right, scratch, &slow);
|
||||||
masm.jump(&done);
|
masm.jump(&done);
|
||||||
masm.bind(&slow);
|
masm.bind(&slow);
|
||||||
{
|
{
|
||||||
allocator.discardStack(masm);
|
|
||||||
AutoStubFrame stubFrame(*this);
|
AutoStubFrame stubFrame(*this);
|
||||||
stubFrame.enter(masm, scratch);
|
stubFrame.enter(masm, scratch);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1376,13 +1376,14 @@ IonCacheIRCompiler::emitCompareStringResult()
|
||||||
if (!addFailurePath(&failure))
|
if (!addFailurePath(&failure))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
allocator.discardStack(masm);
|
||||||
|
|
||||||
Label slow, done;
|
Label slow, done;
|
||||||
masm.compareStrings(op, left, right, scratch, &slow);
|
masm.compareStrings(op, left, right, scratch, &slow);
|
||||||
|
|
||||||
masm.jump(&done);
|
masm.jump(&done);
|
||||||
masm.bind(&slow);
|
masm.bind(&slow);
|
||||||
|
|
||||||
allocator.discardStack(masm);
|
|
||||||
prepareVMCall(masm);
|
prepareVMCall(masm);
|
||||||
masm.Push(right);
|
masm.Push(right);
|
||||||
masm.Push(left);
|
masm.Push(left);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue