mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-23 16:59:27 +00:00
improvement(compiler) More x86_64 speicific code removed from CodeGen
This commit is contained in:
@ -2,11 +2,11 @@
|
||||
// Allow unused imports while developing.
|
||||
#![allow(unused_imports, dead_code)]
|
||||
|
||||
use crate::codegen_x64::{
|
||||
gen_import_call_trampoline, gen_std_dynamic_import_trampoline, gen_std_trampoline, FuncGen,
|
||||
};
|
||||
use crate::codegen_x64::FuncGen;
|
||||
use crate::config::Singlepass;
|
||||
use crate::machine::CodegenError;
|
||||
use crate::machine::{
|
||||
gen_import_call_trampoline, gen_std_dynamic_import_trampoline, gen_std_trampoline, CodegenError,
|
||||
};
|
||||
use loupe::MemoryUsage;
|
||||
#[cfg(feature = "rayon")]
|
||||
use rayon::prelude::{IntoParallelIterator, ParallelIterator};
|
||||
@ -95,6 +95,7 @@ impl Compiler for SinglepassCompiler {
|
||||
&vmoffsets,
|
||||
i,
|
||||
&module.signatures[module.functions[i]],
|
||||
target,
|
||||
calling_convention,
|
||||
)
|
||||
})
|
||||
@ -153,7 +154,7 @@ impl Compiler for SinglepassCompiler {
|
||||
.values()
|
||||
.collect::<Vec<_>>()
|
||||
.into_par_iter_if_rayon()
|
||||
.map(|func_type| gen_std_trampoline(&func_type, calling_convention))
|
||||
.map(|func_type| gen_std_trampoline(&func_type, target, calling_convention))
|
||||
.collect::<Vec<_>>()
|
||||
.into_iter()
|
||||
.collect::<PrimaryMap<_, _>>();
|
||||
@ -163,7 +164,12 @@ impl Compiler for SinglepassCompiler {
|
||||
.collect::<Vec<_>>()
|
||||
.into_par_iter_if_rayon()
|
||||
.map(|func_type| {
|
||||
gen_std_dynamic_import_trampoline(&vmoffsets, &func_type, calling_convention)
|
||||
gen_std_dynamic_import_trampoline(
|
||||
&vmoffsets,
|
||||
&func_type,
|
||||
target,
|
||||
calling_convention,
|
||||
)
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.into_iter()
|
||||
|
Reference in New Issue
Block a user