grow_memory is renamed to memory.grow in the spec.

This commit is contained in:
Dan Gohman
2018-08-11 07:32:37 -07:00
parent c12ae182c3
commit 4e24064251
2 changed files with 3 additions and 3 deletions

View File

@@ -11,13 +11,13 @@
(func $main (local i32)
(call $assert
(i32.eq
(grow_memory (i32.const 1))
(memory.grow (i32.const 1))
(i32.const 1)
)
)
(call $assert
(i32.eq
(current_memory)
(memory.size)
(i32.const 2)
)
)

View File

@@ -1,5 +1,5 @@
//! 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
//! linear memories.