diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-07-24 23:57:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 23:57:04 -0700 |
commit | 443c0069df34bac9640ed75e396c8b76d3870ae0 (patch) | |
tree | 95869cd8599bf83689b7329a5ecc180622091a17 /test/binaryen.js/push-pop.js.txt | |
parent | 7bf827d38eb710069662b99eed6ba9ece20775c1 (diff) | |
download | binaryen-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 'test/binaryen.js/push-pop.js.txt')
-rw-r--r-- | test/binaryen.js/push-pop.js.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/binaryen.js/push-pop.js.txt b/test/binaryen.js/push-pop.js.txt new file mode 100644 index 000000000..0597780d9 --- /dev/null +++ b/test/binaryen.js/push-pop.js.txt @@ -0,0 +1,31 @@ +(module + (type $v (func)) + (func $func (; 0 ;) (type $v) + (push + (i32.pop) + ) + (push + (i64.pop) + ) + (push + (f32.pop) + ) + (push + (f64.pop) + ) + (push + (v128.pop) + ) + (push + (exnref.pop) + ) + ) +) + +getExpressionInfo(i32.pop) = {"id":37,"type":1} +getExpressionInfo(i64.pop) = {"id":37,"type":2} +getExpressionInfo(f32.pop) = {"id":37,"type":3} +getExpressionInfo(f64.pop) = {"id":37,"type":4} +getExpressionInfo(v128.pop) = {"id":37,"type":5} +getExpressionInfo(exnref.pop) = {"id":37,"type":6} +getExpressionInfo(push) = {"id":36} |