Skip to content

Commit

Permalink
Fixup some rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 31, 2020
1 parent be00995 commit c0a7fc0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions crates/environ/src/compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//! module.

use crate::address_map::{ModuleAddressMap, ValueLabelsRanges};
use crate::ModuleTranslation;
use crate::{CacheConfig, FunctionBodyData, ModuleTranslation};
use crate::{FunctionBodyData, ModuleTranslation};
use cranelift_codegen::{binemit, ir, isa, isa::unwind::UnwindInfo};
use cranelift_entity::PrimaryMap;
use cranelift_wasm::{DefinedFuncIndex, FuncIndex, WasmError};
Expand Down
3 changes: 1 addition & 2 deletions crates/environ/src/cranelift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ impl Compiler for Cranelift {
compile(
isa,
&translation.module.local,
translation.module_translation.as_ref().unwrap(),
function_body_inputs,
&translation.tunables,
)
Expand All @@ -304,7 +303,6 @@ impl Compiler for Cranelift {
fn compile(
isa: &dyn isa::TargetIsa,
local: &ModuleLocal,
module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'_>>,
tunables: &Tunables,
) -> Result<CompileResult, CompileError> {
Expand Down Expand Up @@ -363,6 +361,7 @@ fn compile(
readonly: false,
});
context.func.stack_limit = Some(stack_limit);
func_translator.translate_body(
&mut input.validator,
input.body.clone(),
&mut context.func,
Expand Down
2 changes: 1 addition & 1 deletion crates/jit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ wasmtime-obj = { path = "../obj", version = "0.19.0" }
region = "2.1.0"
thiserror = "1.0.4"
target-lexicon = { version = "0.10.0", default-features = false }
wasmparser = "0.60.0"
wasmparser = "0.60.2"
more-asserts = "0.2.1"
anyhow = "1.0"
cfg-if = "0.1.9"
Expand Down
2 changes: 2 additions & 0 deletions crates/jit/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,14 @@ impl Hash for Compiler {
strategy,
isa,
tunables,
features,
} = self;

// Hash compiler's flags: compilation strategy, isa, frontend config,
// misc tunables.
strategy.hash(hasher);
isa.triple().hash(hasher);
features.hash(hasher);
// TODO: if this `to_string()` is too expensive then we should upstream
// a native hashing ability of flags into cranelift itself, but
// compilation and/or cache loading is relatively expensive so seems
Expand Down

0 comments on commit c0a7fc0

Please sign in to comment.