From 1a3c1a58cc7e97a846f612baf7f74a370980458f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 21 May 2019 13:25:14 -0700 Subject: Reflect instruction renaming in code (#2128) - Reflected new renamed instruction names in code and tests: - `get_local` -> `local.get` - `set_local` -> `local.set` - `tee_local` -> `local.tee` - `get_global` -> `global.get` - `set_global` -> `global.set` - `current_memory` -> `memory.size` - `grow_memory` -> `memory.grow` - Removed APIs related to old instruction names in Binaryen.js and added APIs with new names if they are missing. - Renamed `typedef SortedVector LocalSet` to `SetsOfLocals` to prevent name clashes. - Resolved several TODO renaming items in wasm-binary.h: - `TableSwitch` -> `BrTable` - `I32ConvertI64` -> `I32WrapI64` - `I64STruncI32` -> `I64SExtendI32` - `I64UTruncI32` -> `I64UExtendI32` - `F32ConvertF64` -> `F32DemoteI64` - `F64ConvertF32` -> `F64PromoteF32` - Renamed `BinaryenGetFeatures` and `BinaryenSetFeatures` to `BinaryenModuleGetFeatures` and `BinaryenModuleSetFeatures` for consistency. --- test/wasm2js/br.2asm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/wasm2js/br.2asm.js') diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index f02b0a154..2dfb17d2e 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -695,7 +695,7 @@ function asmFunc(global, env, buffer) { "as_compare_left": $49, "as_compare_right": $50, "as_convert_operand": $51, - "as_grow_memory_size": $52, + "as_memory_grow_size": $52, "nested_block_value": $53, "nested_br_value": $54, "nested_br_if_value": $55, @@ -757,7 +757,7 @@ export var as_test_operand = retasmFunc.as_test_operand; export var as_compare_left = retasmFunc.as_compare_left; export var as_compare_right = retasmFunc.as_compare_right; export var as_convert_operand = retasmFunc.as_convert_operand; -export var as_grow_memory_size = retasmFunc.as_grow_memory_size; +export var as_memory_grow_size = retasmFunc.as_memory_grow_size; export var nested_block_value = retasmFunc.nested_block_value; export var nested_br_value = retasmFunc.nested_br_value; export var nested_br_if_value = retasmFunc.nested_br_if_value; -- cgit v1.2.3