summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-21 13:25:14 -0700
committerGitHub <noreply@github.com>2019-05-21 13:25:14 -0700
commit1a3c1a58cc7e97a846f612baf7f74a370980458f (patch)
treecbe62ea58b2c0dd6d98225265419fea0b829aeab /test/unit.fromasm.imprecise.no-opts
parentd78be9ac6c02910bbf8ac71118e68adff4fdc570 (diff)
downloadbinaryen-1a3c1a58cc7e97a846f612baf7f74a370980458f.tar.gz
binaryen-1a3c1a58cc7e97a846f612baf7f74a370980458f.tar.bz2
binaryen-1a3c1a58cc7e97a846f612baf7f74a370980458f.zip
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.
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r--test/unit.fromasm.imprecise.no-opts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index 776aa2ba5..b2b0a5f40 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -59,8 +59,8 @@
(export "phi" (func $phi))
(export "smallIf" (func $smallIf))
(export "dropCall" (func $dropCall))
- (export "useSetGlobal" (func $useSetGlobal))
- (export "usesSetGlobal2" (func $usesSetGlobal2))
+ (export "useGlobalSet" (func $useGlobalSet))
+ (export "usesGlobalSet2" (func $usesGlobalSet2))
(export "breakThroughMany" (func $breakThroughMany))
(export "ifChainEmpty" (func $ifChainEmpty))
(export "heap8NoShift" (func $heap8NoShift))
@@ -992,7 +992,7 @@
(call $phi)
)
)
- (func $useSetGlobal (; 42 ;) (result i32)
+ (func $useGlobalSet (; 42 ;) (result i32)
(local $x i32)
(local.set $x
(block (result i32)
@@ -1014,7 +1014,7 @@
)
)
)
- (func $usesSetGlobal2 (; 43 ;) (result i32)
+ (func $usesGlobalSet2 (; 43 ;) (result i32)
(return
(block (result i32)
(block