Update dependencies (#30)
* dev-test: update dependencies * update wasmparser: 0.99.0 -> 0.101.1 Remove `i64` generation fix for elements as they only contain `reftype` and not `i64` * update wasmparser: 0.101.1 -> 0.103.0 See <https://github.com/bytecodealliance/wasm-tools/pull/957> for more information * update wasmparser: 0.103.0 -> 0.106.0 * update wasmparser: 0.106.0 -> 0.107.0
This commit is contained in:
@@ -107,8 +107,8 @@ fn write_table_list(wasm: &Module, w: &mut dyn Write) -> Result<()> {
|
||||
|
||||
for (i, table) in table.iter().enumerate() {
|
||||
let index = offset + i;
|
||||
let min = table.initial;
|
||||
let max = table.maximum.unwrap_or(0xFFFF);
|
||||
let min = table.ty.initial;
|
||||
let max = table.ty.maximum.unwrap_or(0xFFFF);
|
||||
|
||||
writeln!(
|
||||
w,
|
||||
@@ -155,6 +155,8 @@ fn write_element_list(list: &[Element], type_info: &TypeInfo, w: &mut dyn Write)
|
||||
unimplemented!("passive elements not supported")
|
||||
};
|
||||
|
||||
let index = index.unwrap_or(0);
|
||||
|
||||
writeln!(w, "\tdo")?;
|
||||
writeln!(w, "\t\tlocal target = TABLE_LIST[{index}].data")?;
|
||||
write!(w, "\t\tlocal offset = ")?;
|
||||
@@ -243,9 +245,7 @@ fn write_localize_used(
|
||||
.iter()
|
||||
.any(|g| g.ty.content_type == ValType::I64);
|
||||
|
||||
let has_element_i64 = wasm.element_section().iter().any(|e| e.ty == ValType::I64);
|
||||
|
||||
if has_global_i64 || has_element_i64 {
|
||||
if has_global_i64 {
|
||||
loc_set.insert(("i64", "ZERO"));
|
||||
loc_set.insert(("i64", "ONE"));
|
||||
loc_set.insert(("i64", "from_u32"));
|
||||
|
||||
Reference in New Issue
Block a user