Commit 65c7dcde authored by Nicolas B. Pierron's avatar Nicolas B. Pierron
Browse files

Bug 1530351 - GenerateProfilerExit frame use 64-bits math to remove the...

Bug 1530351 - GenerateProfilerExit frame use 64-bits math to remove the rectifier frame size. r=sstangl

Differential Revision: https://phabricator.services.mozilla.com/D25755

--HG--
extra : moz-landing-system : lando
parent fbf4fdac
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
function test(str) {
  for (let i = 0; i < 100; ++i)
    Reflect.apply(String.prototype.substring, str, [])
}
enableGeckoProfilingWithSlowAssertions();
test("");
+1 −1
Original line number Diff line number Diff line
@@ -1132,7 +1132,7 @@ void JitRuntime::generateProfilerExitFrameTailStub(MacroAssembler& masm,
    // scratch3 := RectFrame + Rect-Descriptor.Size +
    //             RectifierFrameLayout::Size()
    masm.addPtr(scratch2, scratch1, scratch3);
    masm.add32(Imm32(RectifierFrameLayout::Size()), scratch3);
    masm.addPtr(Imm32(RectifierFrameLayout::Size()), scratch3);
    masm.storePtr(scratch3, lastProfilingFrame);
    masm.ret();