mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 21:21:33 +00:00
Insert trampolines to preserve callee-saved registers for backends without register save area information.
This commit is contained in:
@ -111,6 +111,7 @@ pub fn run_tiering<F: Fn(InteractiveShellContext) -> ShellExitOperation>(
|
||||
let mut optimized_instances: Vec<Instance> = vec![];
|
||||
|
||||
push_code_version(CodeVersion {
|
||||
baseline: true,
|
||||
msm: baseline
|
||||
.module
|
||||
.runnable_module
|
||||
@ -166,6 +167,7 @@ pub fn run_tiering<F: Fn(InteractiveShellContext) -> ShellExitOperation>(
|
||||
}
|
||||
|
||||
push_code_version(CodeVersion {
|
||||
baseline: false,
|
||||
msm: optimized
|
||||
.module
|
||||
.runnable_module
|
||||
@ -179,6 +181,8 @@ pub fn run_tiering<F: Fn(InteractiveShellContext) -> ShellExitOperation>(
|
||||
.as_ptr() as usize,
|
||||
});
|
||||
n_versions.set(n_versions.get() + 1);
|
||||
|
||||
baseline.context_mut().local_functions = optimized.context_mut().local_functions;
|
||||
}
|
||||
// TODO: Fix this for optimized version.
|
||||
let breakpoints = baseline.module.runnable_module.get_breakpoints();
|
||||
|
Reference in New Issue
Block a user