mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
setjmp/longjmp assembly gen
This commit is contained in:
parent
cdc90f8495
commit
f96c78b3a5
5 changed files with 284 additions and 1 deletions
|
@ -463,6 +463,10 @@ trait Backend<'a> {
|
|||
/// Used for generating wrappers for malloc/realloc/free
|
||||
fn build_wrapped_jmp(&mut self) -> (&'a [u8], u64);
|
||||
|
||||
// use for roc_panic
|
||||
fn build_roc_setjmp(&mut self) -> &'a [u8];
|
||||
fn build_roc_longjmp(&mut self) -> &'a [u8];
|
||||
|
||||
/// build_proc creates a procedure and outputs it to the wrapped object writer.
|
||||
/// Returns the procedure bytes, its relocations, and the names of the refcounting functions it references.
|
||||
fn build_proc(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue