mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Run cargo fmt
This commit is contained in:
@@ -3,14 +3,6 @@ use dynasmrt::{x64::Assembler, DynamicLabel};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use std::collections::BTreeMap;
|
||||
use std::iter;
|
||||
use wasmer_types::{
|
||||
entity::{EntityRef, PrimaryMap, SecondaryMap},
|
||||
FunctionType,
|
||||
};
|
||||
use wasmer_types::{
|
||||
FunctionIndex, GlobalIndex, LocalFunctionIndex, LocalMemoryIndex, MemoryIndex, SignatureIndex,
|
||||
TableIndex, Type,
|
||||
};
|
||||
use wasmer_compiler::wasmparser::{
|
||||
MemoryImmediate, Operator, Type as WpType, TypeOrFuncType as WpTypeOrFuncType,
|
||||
};
|
||||
@@ -19,6 +11,14 @@ use wasmer_compiler::{
|
||||
FunctionBody, Relocation, RelocationKind, RelocationTarget, SectionBody, SectionIndex,
|
||||
TrapInformation,
|
||||
};
|
||||
use wasmer_types::{
|
||||
entity::{EntityRef, PrimaryMap, SecondaryMap},
|
||||
FunctionType,
|
||||
};
|
||||
use wasmer_types::{
|
||||
FunctionIndex, GlobalIndex, LocalFunctionIndex, LocalMemoryIndex, MemoryIndex, SignatureIndex,
|
||||
TableIndex, Type,
|
||||
};
|
||||
use wasmer_vm::{MemoryStyle, ModuleInfo, TableStyle, TrapCode, VMBuiltinFunctionIndex, VMOffsets};
|
||||
|
||||
/// The singlepass per-function code generator.
|
||||
|
||||
@@ -9,8 +9,6 @@ use crate::codegen_x64::{
|
||||
use crate::config::Singlepass;
|
||||
use rayon::prelude::{IntoParallelIterator, IntoParallelRefIterator, ParallelIterator};
|
||||
use std::sync::Arc;
|
||||
use wasmer_types::entity::{EntityRef, PrimaryMap};
|
||||
use wasmer_types::{FunctionIndex, FunctionType, LocalFunctionIndex, MemoryIndex, TableIndex};
|
||||
use wasmer_compiler::wasmparser::BinaryReaderError;
|
||||
use wasmer_compiler::TrapInformation;
|
||||
use wasmer_compiler::{Compilation, CompileError, CompiledFunction, Compiler, SectionIndex};
|
||||
@@ -19,6 +17,8 @@ use wasmer_compiler::{
|
||||
ModuleTranslationState, Target,
|
||||
};
|
||||
use wasmer_compiler::{FunctionBody, FunctionBodyData};
|
||||
use wasmer_types::entity::{EntityRef, PrimaryMap};
|
||||
use wasmer_types::{FunctionIndex, FunctionType, LocalFunctionIndex, MemoryIndex, TableIndex};
|
||||
use wasmer_vm::{ModuleInfo, TrapCode, VMOffsets};
|
||||
|
||||
/// A compiler that compiles a WebAssembly module with Singlepass.
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
use crate::compiler::SinglepassCompiler;
|
||||
use std::sync::Arc;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_compiler::{Compiler, CompilerConfig, CpuFeature, FunctionMiddlewareGenerator, Target};
|
||||
use wasmer_types::Features;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Singlepass {
|
||||
|
||||
Reference in New Issue
Block a user