Update Cranelift to 0.82

This commit is contained in:
Amanieu d'Antras
2022-04-04 00:58:34 +01:00
parent 3ad9552e2e
commit 4c946257cf
25 changed files with 308 additions and 462 deletions

View File

@ -9,7 +9,7 @@ use wasmer_compiler::{
CustomSections, FunctionAddressMap, FunctionBody, InstructionAddressMap, Relocation,
RelocationKind, RelocationTarget, SectionBody, SectionIndex, SourceLoc,
};
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
use wasmer_types::entity::PrimaryMap;
use wasmer_vm::libcalls::LibCall;
fn map_tryfromint_err(error: TryFromIntError) -> CompileError {
@ -331,7 +331,6 @@ where
Ok(CompiledFunction {
compiled_function: wasmer_compiler::CompiledFunction {
body: function_body,
jt_offsets: SecondaryMap::new(),
relocations: relocations
.remove_entry(&root_section_index)
.map_or(vec![], |(_, v)| v),

View File

@ -155,11 +155,6 @@ impl FuncTrampoline {
"trampoline generation produced relocations".into(),
));
}
if !compiled_function.jt_offsets.is_empty() {
return Err(CompileError::Codegen(
"trampoline generation produced jump tables".into(),
));
}
// Ignore CompiledFunctionFrameInfo. Extra frame info isn't a problem.
Ok(FunctionBody {
@ -280,11 +275,6 @@ impl FuncTrampoline {
"trampoline generation produced relocations".into(),
));
}
if !compiled_function.jt_offsets.is_empty() {
return Err(CompileError::Codegen(
"trampoline generation produced jump tables".into(),
));
}
// Ignore CompiledFunctionFrameInfo. Extra frame info isn't a problem.
Ok(FunctionBody {