mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 17:29:26 +00:00
Connect trampoline code to trampoline module. Still unimplemented.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#![allow(unused_imports, dead_code)]
|
||||
|
||||
use crate::config::LLVMConfig;
|
||||
use crate::trampoline::FuncTrampoline;
|
||||
use crate::translator::FuncTranslator;
|
||||
use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
|
||||
use wasm_common::entity::{EntityRef, PrimaryMap};
|
||||
@ -85,11 +86,13 @@ impl Compiler for LLVMCompiler {
|
||||
|
||||
fn compile_wasm_trampolines(
|
||||
&self,
|
||||
_signatures: &[FuncType],
|
||||
signatures: &[FuncType],
|
||||
) -> Result<Vec<CompiledFunction>, CompileError> {
|
||||
// TODO: implement this
|
||||
Err(CompileError::Codegen(
|
||||
"Trampoline compilation not yet implemented.".to_string(),
|
||||
))
|
||||
signatures
|
||||
.par_iter()
|
||||
.map_init(FuncTrampoline::new, |func_trampoline, sig| {
|
||||
func_trampoline.trampoline(sig)
|
||||
})
|
||||
.collect::<Result<Vec<_>, CompileError>>()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user