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:
@@ -2718,22 +2718,22 @@ impl Compiler<'_, '_> {
|
||||
|
||||
fn i32_load8u(&mut self, mem: &Memory) {
|
||||
self.instruction(LocalGet(mem.addr.idx));
|
||||
self.instruction(I32Load8_U(mem.memarg(0)));
|
||||
self.instruction(I32Load8U(mem.memarg(0)));
|
||||
}
|
||||
|
||||
fn i32_load8s(&mut self, mem: &Memory) {
|
||||
self.instruction(LocalGet(mem.addr.idx));
|
||||
self.instruction(I32Load8_S(mem.memarg(0)));
|
||||
self.instruction(I32Load8S(mem.memarg(0)));
|
||||
}
|
||||
|
||||
fn i32_load16u(&mut self, mem: &Memory) {
|
||||
self.instruction(LocalGet(mem.addr.idx));
|
||||
self.instruction(I32Load16_U(mem.memarg(1)));
|
||||
self.instruction(I32Load16U(mem.memarg(1)));
|
||||
}
|
||||
|
||||
fn i32_load16s(&mut self, mem: &Memory) {
|
||||
self.instruction(LocalGet(mem.addr.idx));
|
||||
self.instruction(I32Load16_S(mem.memarg(1)));
|
||||
self.instruction(I32Load16S(mem.memarg(1)));
|
||||
}
|
||||
|
||||
fn i32_load(&mut self, mem: &Memory) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user