From 4e2406425130e7d7612d0deea91205403d0fea07 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 11 Aug 2018 07:32:37 -0700 Subject: [PATCH] grow_memory is renamed to memory.grow in the spec. --- filetests/grow.wat | 4 ++-- lib/environ/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filetests/grow.wat b/filetests/grow.wat index f05105cfc7..f28da1d1fa 100644 --- a/filetests/grow.wat +++ b/filetests/grow.wat @@ -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) ) ) diff --git a/lib/environ/src/lib.rs b/lib/environ/src/lib.rs index 689e68db61..5b9bb49e04 100644 --- a/lib/environ/src/lib.rs +++ b/lib/environ/src/lib.rs @@ -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.