diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-05-22 13:19:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 13:19:47 -0700 |
commit | bb0ff51597f254ab199f8ad5b63de7a4bbca2c17 (patch) | |
tree | 2932c64f443ec7a36385c0ac96e865d0a9d8c53b /test/example | |
parent | c193e5727d541ad04bb1601da92f2a86ae959cc8 (diff) | |
download | binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.gz binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.bz2 binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.zip |
Remove `Push` (#2867)
Push and Pop have been superseded by tuples for their original
intended purpose of supporting multivalue. Pop is still used to
represent block arguments for exception handling, but there are no
plans to use Push for anything now or in the future.
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 24 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 22 |
2 files changed, 23 insertions, 23 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 3ea6c4ef0..764cc0ba6 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -733,18 +733,18 @@ void test_core() { BinaryenTupleMake(module, tupleElements4a, 4), BinaryenTupleExtract( module, BinaryenTupleMake(module, tupleElements4b, 4), 2), - // Push and pop - BinaryenPush(module, BinaryenPop(module, BinaryenTypeInt32())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeInt64())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeFloat32())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeFloat64())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeFuncref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeAnyref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeNullref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeExnref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeFuncref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeNullref())), - BinaryenPush(module, BinaryenPop(module, BinaryenTypeExnref())), + // Pop + BinaryenPop(module, BinaryenTypeInt32()), + BinaryenPop(module, BinaryenTypeInt64()), + BinaryenPop(module, BinaryenTypeFloat32()), + BinaryenPop(module, BinaryenTypeFloat64()), + BinaryenPop(module, BinaryenTypeFuncref()), + BinaryenPop(module, BinaryenTypeAnyref()), + BinaryenPop(module, BinaryenTypeNullref()), + BinaryenPop(module, BinaryenTypeExnref()), + BinaryenPop(module, BinaryenTypeFuncref()), + BinaryenPop(module, BinaryenTypeNullref()), + BinaryenPop(module, BinaryenTypeExnref()), // TODO: Host BinaryenNop(module), diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index ced13ac72..fda846fcb 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -1779,37 +1779,37 @@ BinaryenFeatureAll: 1023 ) ) ) - (push + (drop (i32.pop) ) - (push + (drop (i64.pop) ) - (push + (drop (f32.pop) ) - (push + (drop (f64.pop) ) - (push + (drop (funcref.pop) ) - (push + (drop (anyref.pop) ) - (push + (drop (nullref.pop) ) - (push + (drop (exnref.pop) ) - (push + (drop (funcref.pop) ) - (push + (drop (nullref.pop) ) - (push + (drop (exnref.pop) ) (nop) |