mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 02:57:29 +09:00
Issue #3049 - Normalize loongarch64 baseline frame register use
This commit is contained in:
parent
d991faa669
commit
a3d0442265
1 changed files with 4 additions and 4 deletions
|
|
@ -900,7 +900,7 @@ JitRuntime::generateDebugTrapHandler(JSContext* cx)
|
||||||
Register scratch2 = t1;
|
Register scratch2 = t1;
|
||||||
|
|
||||||
// Load BaselineFrame pointer in scratch1.
|
// Load BaselineFrame pointer in scratch1.
|
||||||
masm.movePtr(s5, scratch1);
|
masm.movePtr(BaselineFrameReg, scratch1);
|
||||||
masm.subPtr(Imm32(BaselineFrame::Size()), scratch1);
|
masm.subPtr(Imm32(BaselineFrame::Size()), scratch1);
|
||||||
|
|
||||||
// Enter a stub frame and call the HandleDebugTrap VM function. Ensure
|
// Enter a stub frame and call the HandleDebugTrap VM function. Ensure
|
||||||
|
|
@ -931,10 +931,10 @@ JitRuntime::generateDebugTrapHandler(JSContext* cx)
|
||||||
masm.branch(ra);
|
masm.branch(ra);
|
||||||
|
|
||||||
masm.bind(&forcedReturn);
|
masm.bind(&forcedReturn);
|
||||||
masm.loadValue(Address(s5, BaselineFrame::reverseOffsetOfReturnValue()),
|
masm.loadValue(Address(BaselineFrameReg, BaselineFrame::reverseOffsetOfReturnValue()),
|
||||||
JSReturnOperand);
|
JSReturnOperand);
|
||||||
masm.movePtr(s5, StackPointer);
|
masm.movePtr(BaselineFrameReg, StackPointer);
|
||||||
masm.pop(s5);
|
masm.pop(BaselineFrameReg);
|
||||||
|
|
||||||
// Before returning, if profiling is turned on, make sure that lastProfilingFrame
|
// Before returning, if profiling is turned on, make sure that lastProfilingFrame
|
||||||
// is set to the correct caller frame.
|
// is set to the correct caller frame.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue