Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10281,7 +10281,12 @@ void CodeGen::genFuncletProlog(BasicBlock* block)

compiler->unwindBegProlog();

// TODO Save callee-saved registers
// Save frame pointer
inst_RV(INS_push, REG_FPBASE, TYP_REF);
compiler->unwindPush(REG_FPBASE);

// Save callee-saved registers
genPushCalleeSavedRegisters();

// This is the end of the OS-reported prolog for purposes of unwinding
compiler->unwindEndProlog();
Expand All @@ -10303,7 +10308,11 @@ void CodeGen::genFuncletEpilog()

ScopedSetVariable<bool> _setGeneratingEpilog(&compiler->compGeneratingEpilog, true);

// TODO Restore callee-saved registers
// Restore callee-saved registers
genPopCalleeSavedRegisters();

// Restore frame pointer
inst_RV(INS_pop, REG_EBP, TYP_I_IMPL);

instGen_Return(0);
}
Expand Down