Update to wasmparser 0.22.

This commit is contained in:
Dan Gohman
2018-11-26 22:08:15 -08:00
parent f0695a79d1
commit 09e5b33916
3 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ readme = "README.md"
keywords = ["webassembly", "wasm"] keywords = ["webassembly", "wasm"]
[dependencies] [dependencies]
wasmparser = { version = "0.21.4", default-features = false } wasmparser = { version = "0.22.0", default-features = false }
cranelift-codegen = { path = "../codegen", version = "0.24.0", default-features = false } cranelift-codegen = { path = "../codegen", version = "0.24.0", default-features = false }
cranelift-entity = { path = "../entity", version = "0.24.0", default-features = false } cranelift-entity = { path = "../entity", version = "0.24.0", default-features = false }
cranelift-frontend = { path = "../frontend", version = "0.24.0", default-features = false } cranelift-frontend = { path = "../frontend", version = "0.24.0", default-features = false }

View File

@@ -253,7 +253,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
} }
Operator::BrIf { relative_depth } => translate_br_if(relative_depth, builder, state), Operator::BrIf { relative_depth } => translate_br_if(relative_depth, builder, state),
Operator::BrTable { table } => { Operator::BrTable { table } => {
let (depths, default) = table.read_table(); let (depths, default) = table.read_table()?;
let mut min_depth = default; let mut min_depth = default;
for depth in &*depths { for depth in &*depths {
if *depth < min_depth { if *depth < min_depth {

View File

@@ -19,8 +19,8 @@ use translation_utils::{
use wasmparser::{ use wasmparser::{
self, CodeSectionReader, Data, DataSectionReader, Element, ElementSectionReader, Export, self, CodeSectionReader, Data, DataSectionReader, Element, ElementSectionReader, Export,
ExportSectionReader, ExternalKind, FuncType, FunctionSectionReader, GlobalSectionReader, ExportSectionReader, ExternalKind, FuncType, FunctionSectionReader, GlobalSectionReader,
GlobalType, Import, ImportSectionEntryType, ImportSectionReader, MemorySectionReader, GlobalType, ImportSectionEntryType, ImportSectionReader, MemorySectionReader, MemoryType,
MemoryType, Operator, TableSectionReader, TypeSectionReader, Operator, TableSectionReader, TypeSectionReader,
}; };
/// Parses the Type section of the wasm module. /// Parses the Type section of the wasm module.