mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
wasm: function pointers for higher order calls
This commit is contained in:
parent
5db3ae0227
commit
8620cdf75c
3 changed files with 46 additions and 11 deletions
|
@ -170,6 +170,10 @@ impl<'a> WasmBackend<'a> {
|
|||
#[cfg(not(debug_assertions))]
|
||||
pub fn register_symbol_debug_names(&self) {}
|
||||
|
||||
pub fn get_fn_table_index(&mut self, fn_index: u32) -> i32 {
|
||||
self.module.element.get_fn_table_index(fn_index)
|
||||
}
|
||||
|
||||
/// Create an IR Symbol for an anonymous value (such as ListLiteral)
|
||||
pub fn create_symbol(&mut self, debug_name: &str) -> Symbol {
|
||||
let ident_ids = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue