Update the wasm-tools family of crates (#5010)

* Update the wasm-tools family of crates

Only minor updates here, mostly internal changes and no binary-related
changes today.

* Fix test expectation
This commit is contained in:
Alex Crichton
2022-10-04 16:26:22 -05:00
committed by GitHub
parent d986b3cbc2
commit 2607590d8c
6 changed files with 99 additions and 57 deletions

View File

@@ -237,13 +237,13 @@ impl TableOp {
}
Self::TableGet(x) => {
func.instruction(&Instruction::I32Const(x));
func.instruction(&Instruction::TableGet { table: 0 });
func.instruction(&Instruction::TableGet(0));
}
Self::TableSet(x) => {
func.instruction(&Instruction::LocalSet(scratch_local));
func.instruction(&Instruction::I32Const(x));
func.instruction(&Instruction::LocalGet(scratch_local));
func.instruction(&Instruction::TableSet { table: 0 });
func.instruction(&Instruction::TableSet(0));
}
Self::GlobalGet(x) => {
func.instruction(&Instruction::GlobalGet(x));
@@ -325,7 +325,7 @@ mod tests {
(import "" "make_refs" (func (;2;) (type 3)))
(func (;3;) (type 1) (param externref externref externref externref externref externref externref externref externref externref)
(local externref)
loop ;; label = @0
loop ;; label = @1
call 0
call 2
call 1