summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-24 23:57:04 -0700
committerGitHub <noreply@github.com>2019-07-24 23:57:04 -0700
commit443c0069df34bac9640ed75e396c8b76d3870ae0 (patch)
tree95869cd8599bf83689b7329a5ecc180622091a17 /scripts
parent7bf827d38eb710069662b99eed6ba9ece20775c1 (diff)
downloadbinaryen-443c0069df34bac9640ed75e396c8b76d3870ae0.tar.gz
binaryen-443c0069df34bac9640ed75e396c8b76d3870ae0.tar.bz2
binaryen-443c0069df34bac9640ed75e396c8b76d3870ae0.zip
More push/pop support (#2260)
This adds - `push`/`pop` support for other types: v128 and exnref - `push`/`pop` support for binaryen.js Because binaryen.js follows Binaryen's AST structure, without `pop` in binaryen.js, EH instructions cannot be represented in binaryen.js.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 1111191e4..615febd7d 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -48,6 +48,8 @@ instructions = [
("i64.pop", "makePop(i64)"),
("f32.pop", "makePop(f32)"),
("f64.pop", "makePop(f64)"),
+ ("v128.pop", "makePop(v128)"),
+ ("exnref.pop", "makePop(exnref)"),
("i32.load", "makeLoad(s, i32, /*isAtomic=*/false)"),
("i64.load", "makeLoad(s, i64, /*isAtomic=*/false)"),
("f32.load", "makeLoad(s, f32, /*isAtomic=*/false)"),