mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
WIP
This commit is contained in:
parent
f96c78b3a5
commit
10aa4f58c9
5 changed files with 191 additions and 5 deletions
|
@ -1665,6 +1665,23 @@ trait Backend<'a> {
|
|||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::SetJmp => self.build_fn_call(
|
||||
sym,
|
||||
String::from("roc_setjmp"),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::LongJmp => self.build_fn_call(
|
||||
sym,
|
||||
String::from("roc_longjmp"),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::SetLongJmpBuffer => {
|
||||
self.build_data_pointer(sym, String::from("setlongjmp_buffer"))
|
||||
}
|
||||
LowLevel::DictPseudoSeed => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::UTILS_DICT_PSEUDO_SEED.to_string(),
|
||||
|
@ -1967,6 +1984,7 @@ trait Backend<'a> {
|
|||
);
|
||||
|
||||
fn build_fn_pointer(&mut self, dst: &Symbol, fn_name: String);
|
||||
fn build_data_pointer(&mut self, dst: &Symbol, data_name: String);
|
||||
|
||||
/// Move a returned value into `dst`
|
||||
fn move_return_value(&mut self, dst: &Symbol, ret_layout: &InLayout<'a>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue