grow_memory is renamed to memory.grow in the spec.
This commit is contained in:
@@ -11,13 +11,13 @@
|
|||||||
(func $main (local i32)
|
(func $main (local i32)
|
||||||
(call $assert
|
(call $assert
|
||||||
(i32.eq
|
(i32.eq
|
||||||
(grow_memory (i32.const 1))
|
(memory.grow (i32.const 1))
|
||||||
(i32.const 1)
|
(i32.const 1)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(call $assert
|
(call $assert
|
||||||
(i32.eq
|
(i32.eq
|
||||||
(current_memory)
|
(memory.size)
|
||||||
(i32.const 2)
|
(i32.const 2)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//! Standalone environment for WebAssembly using Cranelift. Provides functions to translate
|
//! Standalone environment for WebAssembly using Cranelift. Provides functions to translate
|
||||||
//! `get_global`, `set_global`, `current_memory`, `grow_memory`, `call_indirect` that hardcode in
|
//! `get_global`, `set_global`, `memory.size`, `memory.grow`, `call_indirect` that hardcode in
|
||||||
//! the translation the base addresses of regions of memory that will hold the globals, tables and
|
//! the translation the base addresses of regions of memory that will hold the globals, tables and
|
||||||
//! linear memories.
|
//! linear memories.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user