mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-03 16:09:20 +00:00
Run cargo fmt
This commit is contained in:
@ -6,13 +6,13 @@ use inkwell::memory_buffer::MemoryBuffer;
|
||||
use inkwell::module::Module;
|
||||
use inkwell::targets::FileType;
|
||||
use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
|
||||
use wasmer_types::entity::{EntityRef, PrimaryMap};
|
||||
use wasmer_types::{FunctionIndex, LocalFunctionIndex, SignatureIndex};
|
||||
use wasmer_compiler::{
|
||||
Compilation, CompileError, CompileModuleInfo, Compiler, CustomSection, CustomSectionProtection,
|
||||
Dwarf, FunctionBodyData, ModuleTranslationState, RelocationTarget, SectionBody, SectionIndex,
|
||||
Symbol, SymbolRegistry, Target,
|
||||
};
|
||||
use wasmer_types::entity::{EntityRef, PrimaryMap};
|
||||
use wasmer_types::{FunctionIndex, LocalFunctionIndex, SignatureIndex};
|
||||
|
||||
//use std::sync::{Arc, Mutex};
|
||||
|
||||
|
@ -8,8 +8,8 @@ use itertools::Itertools;
|
||||
use std::fmt::Debug;
|
||||
use std::sync::Arc;
|
||||
use target_lexicon::Architecture;
|
||||
use wasmer_types::{FunctionType, LocalFunctionIndex};
|
||||
use wasmer_compiler::{Compiler, CompilerConfig, FunctionMiddlewareGenerator, Target, Triple};
|
||||
use wasmer_types::{FunctionType, LocalFunctionIndex};
|
||||
|
||||
/// The InkWell ModuleInfo type
|
||||
pub type InkwellModule<'ctx> = inkwell::module::Module<'ctx>;
|
||||
|
@ -1,12 +1,12 @@
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
|
||||
use wasmer_compiler::{
|
||||
CompileError, CompiledFunctionFrameInfo, CustomSection, CustomSectionProtection,
|
||||
CustomSections, FunctionAddressMap, FunctionBody, InstructionAddressMap, Relocation,
|
||||
RelocationKind, RelocationTarget, SectionBody, SectionIndex, SourceLoc,
|
||||
};
|
||||
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
|
||||
use wasmer_vm::libcalls::LibCall;
|
||||
|
||||
use wasmer_types::entity::entity_impl;
|
||||
|
@ -17,8 +17,8 @@ use inkwell::{
|
||||
};
|
||||
use std::cmp;
|
||||
use std::convert::TryInto;
|
||||
use wasmer_types::{FunctionType, LocalFunctionIndex};
|
||||
use wasmer_compiler::{CompileError, FunctionBody, RelocationTarget};
|
||||
use wasmer_types::{FunctionType, LocalFunctionIndex};
|
||||
|
||||
pub struct FuncTrampoline {
|
||||
ctx: Context,
|
||||
|
@ -22,8 +22,8 @@ use inkwell::{
|
||||
},
|
||||
AddressSpace,
|
||||
};
|
||||
use wasmer_types::{FunctionType as FuncSig, Type};
|
||||
use wasmer_compiler::CompileError;
|
||||
use wasmer_types::{FunctionType as FuncSig, Type};
|
||||
|
||||
// Given a function definition, retrieve the parameter that is the vmctx pointer.
|
||||
pub fn get_vmctx_ptr_param<'ctx>(func_value: &FunctionValue<'ctx>) -> PointerValue<'ctx> {
|
||||
|
@ -24,16 +24,16 @@ use smallvec::SmallVec;
|
||||
|
||||
use crate::config::{CompiledFunctionKind, LLVM};
|
||||
use crate::object_file::{load_object_file, CompiledFunction};
|
||||
use wasmer_types::entity::PrimaryMap;
|
||||
use wasmer_types::{
|
||||
FunctionIndex, FunctionType, GlobalIndex, LocalFunctionIndex, MemoryIndex, SignatureIndex,
|
||||
TableIndex, Type,
|
||||
};
|
||||
use wasmer_compiler::wasmparser::{MemoryImmediate, Operator};
|
||||
use wasmer_compiler::{
|
||||
to_wasm_error, wptype_to_type, CompileError, FunctionBodyData, GenerateMiddlewareChain,
|
||||
MiddlewareBinaryReader, ModuleTranslationState, RelocationTarget, Symbol, SymbolRegistry,
|
||||
};
|
||||
use wasmer_types::entity::PrimaryMap;
|
||||
use wasmer_types::{
|
||||
FunctionIndex, FunctionType, GlobalIndex, LocalFunctionIndex, MemoryIndex, SignatureIndex,
|
||||
TableIndex, Type,
|
||||
};
|
||||
use wasmer_vm::{MemoryStyle, ModuleInfo, TableStyle};
|
||||
|
||||
const FUNCTION_SECTION: &str = "__TEXT,wasmer_function";
|
||||
|
@ -20,12 +20,12 @@ use inkwell::{
|
||||
AddressSpace,
|
||||
};
|
||||
use std::collections::{hash_map::Entry, HashMap};
|
||||
use wasmer_compiler::CompileError;
|
||||
use wasmer_types::entity::{EntityRef, PrimaryMap};
|
||||
use wasmer_types::{
|
||||
FunctionIndex, FunctionType as FuncType, GlobalIndex, LocalFunctionIndex, MemoryIndex,
|
||||
Mutability, SignatureIndex, TableIndex, Type,
|
||||
};
|
||||
use wasmer_compiler::CompileError;
|
||||
use wasmer_vm::ModuleInfo as WasmerCompilerModule;
|
||||
use wasmer_vm::{MemoryStyle, TrapCode, VMBuiltinFunctionIndex, VMOffsets};
|
||||
|
||||
|
Reference in New Issue
Block a user