Refactor where results of compilation are stored (#2086)
* Refactor where results of compilation are stored This commit refactors the internals of compilation in Wasmtime to change where results of individual function compilation are stored. Previously compilation resulted in many maps being returned, and compilation results generally held all these maps together. This commit instead switches this to have all metadata stored in a `CompiledFunction` instead of having a separate map for each item that can be stored. The motivation for this is primarily to help out with future module-linking-related PRs. What exactly "module level" is depends on how we interpret modules and how many modules are in play, so it's a bit easier for operations in wasmtime to work at the function level where possible. This means that we don't have to pass around multiple different maps and a function index, but instead just one map or just one entry representing a compiled function. Additionally this change updates where the parallelism of compilation happens, pushing it into `wasmtime-jit` instead of `wasmtime-environ`. This is another goal where `wasmtime-jit` will have more knowledge about module-level pieces with module linking in play. User-facing-wise this should be the same in terms of parallel compilation, though. The ultimate goal of this refactoring is to make it easier for the results of compilation to actually be a set of wasm modules. This means we won't be able to have a map-per-metadata where the primary key is the function index, because there will be many modules within one "object file". * Don't clear out fields, just don't store them Persist a smaller set of fields in `CompilationArtifacts` instead of trying to clear fields out and dynamically not accessing them.
This commit is contained in:
@@ -13,7 +13,7 @@ use std::{cmp, mem};
|
||||
use wasmtime_environ::{
|
||||
isa::{unwind::UnwindInfo, TargetIsa},
|
||||
wasm::{FuncIndex, SignatureIndex},
|
||||
Compilation, CompiledFunction,
|
||||
CompiledFunction,
|
||||
};
|
||||
use wasmtime_runtime::{Mmap, VMFunctionBody};
|
||||
|
||||
@@ -119,31 +119,6 @@ impl CodeMemory {
|
||||
Ok(vmfunc)
|
||||
}
|
||||
|
||||
/// Allocate a continuous memory block for a compilation.
|
||||
pub fn allocate_for_compilation(
|
||||
&mut self,
|
||||
compilation: &Compilation,
|
||||
) -> Result<Box<[&mut [VMFunctionBody]]>, String> {
|
||||
let total_len = compilation
|
||||
.into_iter()
|
||||
.fold(0, |acc, func| acc + Self::function_allocation_size(func));
|
||||
|
||||
let (mut buf, registry, start) = self.allocate(total_len)?;
|
||||
let mut result = Vec::with_capacity(compilation.len());
|
||||
let mut start = start as u32;
|
||||
|
||||
for func in compilation.into_iter() {
|
||||
let (next_start, next_buf, vmfunc) = Self::copy_function(func, start, buf, registry);
|
||||
|
||||
result.push(vmfunc);
|
||||
|
||||
start = next_start;
|
||||
buf = next_buf;
|
||||
}
|
||||
|
||||
Ok(result.into_boxed_slice())
|
||||
}
|
||||
|
||||
/// Make all allocated memory executable.
|
||||
pub fn publish(&mut self, isa: &dyn TargetIsa) {
|
||||
self.push_current(0)
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
|
||||
use crate::instantiate::SetupError;
|
||||
use crate::object::{build_object, ObjectUnwindInfo};
|
||||
use cranelift_codegen::ir;
|
||||
use object::write::Object;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use wasmtime_debug::{emit_dwarf, DwarfSection};
|
||||
use wasmtime_environ::entity::{EntityRef, PrimaryMap};
|
||||
use wasmtime_environ::isa::{unwind::UnwindInfo, TargetFrontendConfig, TargetIsa};
|
||||
use wasmtime_environ::wasm::{DefinedFuncIndex, DefinedMemoryIndex, MemoryIndex};
|
||||
use wasmtime_environ::entity::EntityRef;
|
||||
use wasmtime_environ::isa::{TargetFrontendConfig, TargetIsa};
|
||||
use wasmtime_environ::wasm::{DefinedMemoryIndex, MemoryIndex};
|
||||
use wasmtime_environ::{
|
||||
Compiler as _C, DebugInfoData, Module, ModuleAddressMap, ModuleMemoryOffset, ModuleTranslation,
|
||||
ModuleVmctxInfo, StackMaps, Traps, Tunables, VMOffsets, ValueLabelsRanges,
|
||||
CompiledFunctions, Compiler as EnvCompiler, DebugInfoData, Module, ModuleMemoryOffset,
|
||||
ModuleTranslation, Tunables, VMOffsets,
|
||||
};
|
||||
|
||||
/// Select which kind of compilation to use.
|
||||
@@ -38,6 +37,7 @@ pub enum CompilationStrategy {
|
||||
/// TODO: Consider using cranelift-module.
|
||||
pub struct Compiler {
|
||||
isa: Box<dyn TargetIsa>,
|
||||
compiler: Box<dyn EnvCompiler>,
|
||||
strategy: CompilationStrategy,
|
||||
tunables: Tunables,
|
||||
}
|
||||
@@ -48,6 +48,13 @@ impl Compiler {
|
||||
Self {
|
||||
isa,
|
||||
strategy,
|
||||
compiler: match strategy {
|
||||
CompilationStrategy::Auto | CompilationStrategy::Cranelift => {
|
||||
Box::new(wasmtime_environ::cranelift::Cranelift::default())
|
||||
}
|
||||
#[cfg(feature = "lightbeam")]
|
||||
CompilationStrategy::Lightbeam => Box::new(wasmtime_environ::lightbeam::Lightbeam),
|
||||
},
|
||||
tunables,
|
||||
}
|
||||
}
|
||||
@@ -62,46 +69,26 @@ fn transform_dwarf_data(
|
||||
isa: &dyn TargetIsa,
|
||||
module: &Module,
|
||||
debug_data: &DebugInfoData,
|
||||
address_transform: &ModuleAddressMap,
|
||||
value_ranges: &ValueLabelsRanges,
|
||||
stack_slots: PrimaryMap<DefinedFuncIndex, ir::StackSlots>,
|
||||
unwind_info: PrimaryMap<DefinedFuncIndex, &Option<UnwindInfo>>,
|
||||
funcs: &CompiledFunctions,
|
||||
) -> Result<Vec<DwarfSection>, SetupError> {
|
||||
let target_config = isa.frontend_config();
|
||||
let ofs = VMOffsets::new(target_config.pointer_bytes(), &module.local);
|
||||
|
||||
let module_vmctx_info = {
|
||||
ModuleVmctxInfo {
|
||||
memory_offset: if ofs.num_imported_memories > 0 {
|
||||
ModuleMemoryOffset::Imported(ofs.vmctx_vmmemory_import(MemoryIndex::new(0)))
|
||||
} else if ofs.num_defined_memories > 0 {
|
||||
ModuleMemoryOffset::Defined(
|
||||
ofs.vmctx_vmmemory_definition_base(DefinedMemoryIndex::new(0)),
|
||||
)
|
||||
} else {
|
||||
ModuleMemoryOffset::None
|
||||
},
|
||||
stack_slots,
|
||||
}
|
||||
let memory_offset = if ofs.num_imported_memories > 0 {
|
||||
ModuleMemoryOffset::Imported(ofs.vmctx_vmmemory_import(MemoryIndex::new(0)))
|
||||
} else if ofs.num_defined_memories > 0 {
|
||||
ModuleMemoryOffset::Defined(ofs.vmctx_vmmemory_definition_base(DefinedMemoryIndex::new(0)))
|
||||
} else {
|
||||
ModuleMemoryOffset::None
|
||||
};
|
||||
emit_dwarf(
|
||||
isa,
|
||||
debug_data,
|
||||
&address_transform,
|
||||
&module_vmctx_info,
|
||||
&value_ranges,
|
||||
&unwind_info,
|
||||
)
|
||||
.map_err(SetupError::DebugInfo)
|
||||
emit_dwarf(isa, debug_data, funcs, &memory_offset).map_err(SetupError::DebugInfo)
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub struct Compilation {
|
||||
pub obj: Object,
|
||||
pub unwind_info: Vec<ObjectUnwindInfo>,
|
||||
pub traps: Traps,
|
||||
pub stack_maps: StackMaps,
|
||||
pub address_transform: ModuleAddressMap,
|
||||
pub funcs: CompiledFunctions,
|
||||
}
|
||||
|
||||
impl Compiler {
|
||||
@@ -120,66 +107,49 @@ impl Compiler {
|
||||
&self.tunables
|
||||
}
|
||||
|
||||
/// Return the compilation strategy.
|
||||
pub fn strategy(&self) -> CompilationStrategy {
|
||||
self.strategy
|
||||
}
|
||||
|
||||
/// Compile the given function bodies.
|
||||
pub(crate) fn compile<'data>(
|
||||
pub fn compile<'data>(
|
||||
&self,
|
||||
translation: &ModuleTranslation,
|
||||
) -> Result<Compilation, SetupError> {
|
||||
let (
|
||||
compilation,
|
||||
relocations,
|
||||
address_transform,
|
||||
value_ranges,
|
||||
stack_slots,
|
||||
traps,
|
||||
stack_maps,
|
||||
) = match self.strategy {
|
||||
// For now, interpret `Auto` as `Cranelift` since that's the most stable
|
||||
// implementation.
|
||||
CompilationStrategy::Auto | CompilationStrategy::Cranelift => {
|
||||
wasmtime_environ::cranelift::Cranelift::compile_module(translation, &*self.isa)
|
||||
}
|
||||
#[cfg(feature = "lightbeam")]
|
||||
CompilationStrategy::Lightbeam => {
|
||||
wasmtime_environ::lightbeam::Lightbeam::compile_module(translation, &*self.isa)
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "parallel-compilation")] {
|
||||
use rayon::prelude::*;
|
||||
let iter = translation.function_body_inputs
|
||||
.iter()
|
||||
.collect::<Vec<_>>()
|
||||
.into_par_iter();
|
||||
} else {
|
||||
let iter = translation.function_body_inputs.iter();
|
||||
}
|
||||
}
|
||||
.map_err(SetupError::Compile)?;
|
||||
let funcs = iter
|
||||
.map(|(index, func)| {
|
||||
self.compiler
|
||||
.compile_function(translation, index, func, &*self.isa)
|
||||
})
|
||||
.collect::<Result<Vec<_>, _>>()?
|
||||
.into_iter()
|
||||
.collect::<CompiledFunctions>();
|
||||
|
||||
let dwarf_sections = if translation.debuginfo.is_some() && !compilation.is_empty() {
|
||||
let unwind_info = compilation.unwind_info();
|
||||
let dwarf_sections = if translation.debuginfo.is_some() && !funcs.is_empty() {
|
||||
transform_dwarf_data(
|
||||
&*self.isa,
|
||||
&translation.module,
|
||||
translation.debuginfo.as_ref().unwrap(),
|
||||
&address_transform,
|
||||
&value_ranges,
|
||||
stack_slots,
|
||||
unwind_info,
|
||||
&funcs,
|
||||
)?
|
||||
} else {
|
||||
vec![]
|
||||
};
|
||||
|
||||
let (obj, unwind_info) = build_object(
|
||||
&*self.isa,
|
||||
&translation.module,
|
||||
compilation,
|
||||
relocations,
|
||||
dwarf_sections,
|
||||
)?;
|
||||
let (obj, unwind_info) =
|
||||
build_object(&*self.isa, &translation.module, &funcs, dwarf_sections)?;
|
||||
|
||||
Ok(Compilation {
|
||||
obj,
|
||||
unwind_info,
|
||||
traps,
|
||||
stack_maps,
|
||||
address_transform,
|
||||
funcs,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -188,6 +158,7 @@ impl Hash for Compiler {
|
||||
fn hash<H: Hasher>(&self, hasher: &mut H) {
|
||||
let Compiler {
|
||||
strategy,
|
||||
compiler: _,
|
||||
isa,
|
||||
tunables,
|
||||
} = self;
|
||||
|
||||
@@ -20,8 +20,8 @@ use wasmtime_environ::entity::{BoxedSlice, PrimaryMap};
|
||||
use wasmtime_environ::isa::TargetIsa;
|
||||
use wasmtime_environ::wasm::{DefinedFuncIndex, SignatureIndex};
|
||||
use wasmtime_environ::{
|
||||
CompileError, DataInitializer, DataInitializerLocation, Module, ModuleAddressMap,
|
||||
ModuleEnvironment, ModuleTranslation, StackMaps, Traps,
|
||||
CompileError, DataInitializer, DataInitializerLocation, FunctionAddressMap, Module,
|
||||
ModuleEnvironment, ModuleTranslation, StackMapInformation, TrapInformation,
|
||||
};
|
||||
use wasmtime_profiling::ProfilingAgent;
|
||||
use wasmtime_runtime::VMInterrupts;
|
||||
@@ -67,19 +67,20 @@ pub struct CompilationArtifacts {
|
||||
/// Data initiailizers.
|
||||
data_initializers: Box<[OwnedDataInitializer]>,
|
||||
|
||||
/// Traps descriptors.
|
||||
traps: Traps,
|
||||
|
||||
/// Stack map descriptors.
|
||||
stack_maps: StackMaps,
|
||||
|
||||
/// Wasm to function code address map.
|
||||
address_transform: ModuleAddressMap,
|
||||
/// Descriptions of compiled functions
|
||||
funcs: PrimaryMap<DefinedFuncIndex, FunctionInfo>,
|
||||
|
||||
/// Debug info presence flags.
|
||||
debug_info: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
struct FunctionInfo {
|
||||
traps: Vec<TrapInformation>,
|
||||
address_map: FunctionAddressMap,
|
||||
stack_maps: Vec<StackMapInformation>,
|
||||
}
|
||||
|
||||
impl CompilationArtifacts {
|
||||
/// Builds compilation artifacts.
|
||||
pub fn build(compiler: &Compiler, data: &[u8]) -> Result<Self, SetupError> {
|
||||
@@ -92,9 +93,7 @@ impl CompilationArtifacts {
|
||||
let Compilation {
|
||||
obj,
|
||||
unwind_info,
|
||||
traps,
|
||||
stack_maps,
|
||||
address_transform,
|
||||
funcs,
|
||||
} = compiler.compile(&translation)?;
|
||||
|
||||
let ModuleTranslation {
|
||||
@@ -120,9 +119,14 @@ impl CompilationArtifacts {
|
||||
obj: obj.into_boxed_slice(),
|
||||
unwind_info: unwind_info.into_boxed_slice(),
|
||||
data_initializers,
|
||||
traps,
|
||||
stack_maps,
|
||||
address_transform,
|
||||
funcs: funcs
|
||||
.into_iter()
|
||||
.map(|(_, func)| FunctionInfo {
|
||||
stack_maps: func.stack_maps,
|
||||
traps: func.traps,
|
||||
address_map: func.address_map,
|
||||
})
|
||||
.collect(),
|
||||
debug_info: compiler.tunables().debug_info,
|
||||
})
|
||||
}
|
||||
@@ -147,9 +151,7 @@ pub struct CompiledModule {
|
||||
finished_functions: FinishedFunctions,
|
||||
trampolines: PrimaryMap<SignatureIndex, VMTrampoline>,
|
||||
data_initializers: Box<[OwnedDataInitializer]>,
|
||||
traps: Traps,
|
||||
stack_maps: StackMaps,
|
||||
address_transform: ModuleAddressMap,
|
||||
funcs: PrimaryMap<DefinedFuncIndex, FunctionInfo>,
|
||||
obj: Box<[u8]>,
|
||||
unwind_info: Box<[ObjectUnwindInfo]>,
|
||||
}
|
||||
@@ -176,9 +178,7 @@ impl CompiledModule {
|
||||
obj,
|
||||
unwind_info,
|
||||
data_initializers,
|
||||
traps,
|
||||
stack_maps,
|
||||
address_transform,
|
||||
funcs,
|
||||
debug_info,
|
||||
} = artifacts;
|
||||
|
||||
@@ -216,9 +216,7 @@ impl CompiledModule {
|
||||
finished_functions,
|
||||
trampolines,
|
||||
data_initializers,
|
||||
traps,
|
||||
stack_maps,
|
||||
address_transform,
|
||||
funcs,
|
||||
obj,
|
||||
unwind_info,
|
||||
})
|
||||
@@ -231,9 +229,7 @@ impl CompiledModule {
|
||||
obj: self.obj.clone(),
|
||||
unwind_info: self.unwind_info.clone(),
|
||||
data_initializers: self.data_initializers.clone(),
|
||||
traps: self.traps.clone(),
|
||||
stack_maps: self.stack_maps.clone(),
|
||||
address_transform: self.address_transform.clone(),
|
||||
funcs: self.funcs.clone(),
|
||||
debug_info: self.code.dbg_jit_registration.is_some(),
|
||||
}
|
||||
}
|
||||
@@ -318,19 +314,36 @@ impl CompiledModule {
|
||||
&self.finished_functions.0
|
||||
}
|
||||
|
||||
/// Returns the map for all traps in this module.
|
||||
pub fn traps(&self) -> &Traps {
|
||||
&self.traps
|
||||
/// Returns the stack map information for all functions defined in this
|
||||
/// module.
|
||||
///
|
||||
/// The iterator returned iterates over the span of the compiled function in
|
||||
/// memory with the stack maps associated with those bytes.
|
||||
pub fn stack_maps(
|
||||
&self,
|
||||
) -> impl Iterator<Item = (*mut [VMFunctionBody], &[StackMapInformation])> {
|
||||
self.finished_functions()
|
||||
.values()
|
||||
.copied()
|
||||
.zip(self.funcs.values().map(|f| f.stack_maps.as_slice()))
|
||||
}
|
||||
|
||||
/// Returns the map for each of this module's stack maps.
|
||||
pub fn stack_maps(&self) -> &StackMaps {
|
||||
&self.stack_maps
|
||||
}
|
||||
|
||||
/// Returns a map of compiled addresses back to original bytecode offsets.
|
||||
pub fn address_transform(&self) -> &ModuleAddressMap {
|
||||
&self.address_transform
|
||||
/// Iterates over all functions in this module, returning information about
|
||||
/// how to decode traps which happen in the function.
|
||||
pub fn trap_information(
|
||||
&self,
|
||||
) -> impl Iterator<
|
||||
Item = (
|
||||
DefinedFuncIndex,
|
||||
*mut [VMFunctionBody],
|
||||
&[TrapInformation],
|
||||
&FunctionAddressMap,
|
||||
),
|
||||
> {
|
||||
self.finished_functions()
|
||||
.iter()
|
||||
.zip(self.funcs.values())
|
||||
.map(|((i, alloc), func)| (i, *alloc, func.traps.as_slice(), &func.address_map))
|
||||
}
|
||||
|
||||
/// Returns all ranges convered by JIT code.
|
||||
|
||||
@@ -5,10 +5,10 @@ use cranelift_frontend::FunctionBuilderContext;
|
||||
use object::write::Object;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use wasmtime_debug::DwarfSection;
|
||||
use wasmtime_environ::entity::{EntityRef, PrimaryMap};
|
||||
use wasmtime_environ::entity::PrimaryMap;
|
||||
use wasmtime_environ::isa::{unwind::UnwindInfo, TargetIsa};
|
||||
use wasmtime_environ::wasm::{FuncIndex, SignatureIndex};
|
||||
use wasmtime_environ::{Compilation, Module, Relocations};
|
||||
use wasmtime_environ::{CompiledFunctions, Module};
|
||||
use wasmtime_obj::{ObjectBuilder, ObjectBuilderTarget};
|
||||
|
||||
pub use wasmtime_obj::utils;
|
||||
@@ -24,8 +24,7 @@ pub enum ObjectUnwindInfo {
|
||||
pub(crate) fn build_object(
|
||||
isa: &dyn TargetIsa,
|
||||
module: &Module,
|
||||
compilation: Compilation,
|
||||
relocations: Relocations,
|
||||
funcs: &CompiledFunctions,
|
||||
dwarf_sections: Vec<DwarfSection>,
|
||||
) -> Result<(Object, Vec<ObjectUnwindInfo>), anyhow::Error> {
|
||||
const CODE_SECTION_ALIGNMENT: u64 = 0x1000;
|
||||
@@ -37,38 +36,28 @@ pub(crate) fn build_object(
|
||||
let mut unwind_info = Vec::new();
|
||||
|
||||
// Preserve function unwind info.
|
||||
unwind_info.extend(
|
||||
compilation
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.filter_map(|(index, func)| {
|
||||
func.unwind_info.as_ref().map(|info| {
|
||||
ObjectUnwindInfo::Func(
|
||||
FuncIndex::new(module.local.num_imported_funcs + index),
|
||||
info.clone(),
|
||||
)
|
||||
})
|
||||
}),
|
||||
);
|
||||
unwind_info.extend(funcs.iter().filter_map(|(index, func)| {
|
||||
func.unwind_info
|
||||
.as_ref()
|
||||
.map(|info| ObjectUnwindInfo::Func(module.local.func_index(index), info.clone()))
|
||||
}));
|
||||
|
||||
let mut trampolines = PrimaryMap::with_capacity(module.local.signatures.len());
|
||||
let mut cx = FunctionBuilderContext::new();
|
||||
// Build trampolines for every signature.
|
||||
for (i, (_, native_sig)) in module.local.signatures.iter() {
|
||||
let (func, relocs) =
|
||||
build_trampoline(isa, &mut cx, native_sig, std::mem::size_of::<u128>())?;
|
||||
let func = build_trampoline(isa, &mut cx, native_sig, std::mem::size_of::<u128>())?;
|
||||
// Preserve trampoline function unwind info.
|
||||
if let Some(info) = &func.unwind_info {
|
||||
unwind_info.push(ObjectUnwindInfo::Trampoline(i, info.clone()))
|
||||
}
|
||||
trampolines.push((func, relocs));
|
||||
trampolines.push(func);
|
||||
}
|
||||
|
||||
let target = ObjectBuilderTarget::new(isa.triple().architecture)?;
|
||||
let mut builder = ObjectBuilder::new(target, module);
|
||||
let mut builder = ObjectBuilder::new(target, module, funcs);
|
||||
builder
|
||||
.set_code_alignment(CODE_SECTION_ALIGNMENT)
|
||||
.set_compilation(compilation, relocations)
|
||||
.set_trampolines(trampolines)
|
||||
.set_dwarf_sections(dwarf_sections);
|
||||
let obj = builder.build()?;
|
||||
|
||||
@@ -33,9 +33,9 @@ pub fn make_trampoline(
|
||||
signature: &ir::Signature,
|
||||
value_size: usize,
|
||||
) -> Result<VMTrampoline, SetupError> {
|
||||
let (compiled_function, relocs) = build_trampoline(isa, fn_builder_ctx, signature, value_size)?;
|
||||
let compiled_function = build_trampoline(isa, fn_builder_ctx, signature, value_size)?;
|
||||
|
||||
assert!(relocs.is_empty());
|
||||
assert!(compiled_function.relocations.is_empty());
|
||||
let ptr = code_memory
|
||||
.allocate_for_function(&compiled_function)
|
||||
.map_err(|message| SetupError::Instantiate(InstantiationError::Resource(message)))?
|
||||
@@ -48,7 +48,7 @@ pub(crate) fn build_trampoline(
|
||||
fn_builder_ctx: &mut FunctionBuilderContext,
|
||||
signature: &ir::Signature,
|
||||
value_size: usize,
|
||||
) -> Result<(CompiledFunction, Vec<Relocation>), SetupError> {
|
||||
) -> Result<CompiledFunction, SetupError> {
|
||||
let pointer_type = isa.pointer_type();
|
||||
let mut wrapper_sig = ir::Signature::new(isa.frontend_config().default_call_conv);
|
||||
|
||||
@@ -155,14 +155,17 @@ pub(crate) fn build_trampoline(
|
||||
)))
|
||||
})?;
|
||||
|
||||
Ok((
|
||||
CompiledFunction {
|
||||
body: code_buf,
|
||||
jt_offsets: context.func.jt_offsets,
|
||||
unwind_info,
|
||||
},
|
||||
reloc_sink.relocs,
|
||||
))
|
||||
Ok(CompiledFunction {
|
||||
body: code_buf,
|
||||
jt_offsets: context.func.jt_offsets,
|
||||
unwind_info,
|
||||
relocations: reloc_sink.relocs,
|
||||
stack_maps: Default::default(),
|
||||
stack_slots: Default::default(),
|
||||
traps: Default::default(),
|
||||
value_labels_ranges: Default::default(),
|
||||
address_map: Default::default(),
|
||||
})
|
||||
}
|
||||
|
||||
/// We don't expect trampoline compilation to produce many relocations, so
|
||||
|
||||
Reference in New Issue
Block a user