mirror of
https://github.com/encounter/wasmtime.git
synced 2026-03-30 11:42:15 -07:00
89ccc56e46
* Update the wasm-tools family of crates This commit updates these crates as used by Wasmtime for the recently published versions to pull in changes necessary to support the component model. I've split this out from #4005 to make it clear what's impacted here and #4005 can simply rebase on top of this to pick up the necessary changes. * More test fixes
29 lines
664 B
WebAssembly Text Format
29 lines
664 B
WebAssembly Text Format
(module
|
|
(memory (export "memory0") 2 3)
|
|
(memory (export "memory1") 2 4)
|
|
|
|
(func (export "size0") (result i32) (memory.size 0))
|
|
(func (export "load0") (param i32) (result i32)
|
|
local.get 0
|
|
i32.load8_s 0
|
|
)
|
|
(func (export "store0") (param i32 i32)
|
|
local.get 0
|
|
local.get 1
|
|
i32.store8 0
|
|
)
|
|
(func (export "size1") (result i32) (memory.size 1))
|
|
(func (export "load1") (param i32) (result i32)
|
|
local.get 0
|
|
i32.load8_s 1
|
|
)
|
|
(func (export "store1") (param i32 i32)
|
|
local.get 0
|
|
local.get 1
|
|
i32.store8 1
|
|
)
|
|
|
|
(data (memory 0) (i32.const 0x1000) "\01\02\03\04")
|
|
(data (memory 1) (i32.const 0x1000) "\04\03\02\01")
|
|
)
|