Update for wasm memory instruction renaming.

The wasm spec renamed `grow_memory` and `current_memory` to
`memory.grow` and `memory.size`, respectively. Update cretonne's names
to follow.

Also, update to wasmparser 0.17.0, which also renames its corresponding
operators.
This commit is contained in:
Dan Gohman
2018-06-07 17:01:41 -07:00
parent 0daa560368
commit c03d67a4ff
4 changed files with 12 additions and 12 deletions

View File

@@ -261,7 +261,7 @@ impl<'dummy_environment> FuncEnvironment for DummyFuncEnvironment<'dummy_environ
Ok(pos.ins().Call(ir::Opcode::Call, VOID, callee, args).0)
}
fn translate_grow_memory(
fn translate_memory_grow(
&mut self,
mut pos: FuncCursor,
_index: MemoryIndex,
@@ -271,7 +271,7 @@ impl<'dummy_environment> FuncEnvironment for DummyFuncEnvironment<'dummy_environ
Ok(pos.ins().iconst(I32, -1))
}
fn translate_current_memory(
fn translate_memory_size(
&mut self,
mut pos: FuncCursor,
_index: MemoryIndex,