From bb0ff51597f254ab199f8ad5b63de7a4bbca2c17 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 22 May 2020 13:19:47 -0700 Subject: 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. --- src/js/binaryen.js-post.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/js/binaryen.js-post.js') diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 1902bddfa..8a2d60a2f 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -97,7 +97,6 @@ function initializeConstants() { 'BrOnExn', 'TupleMake', 'TupleExtract', - 'Push', 'Pop' ].forEach(function(name) { Module['ExpressionIds'][name] = Module[name + 'Id'] = Module['_Binaryen' + name + 'Id'](); @@ -2119,9 +2118,6 @@ function wrapModule(module, self) { return Module['_BinaryenBrOnExn'](module, strToStack(label), strToStack(event_), exnref); }); }; - self['push'] = function(value) { - return Module['_BinaryenPush'](module, value); - }; self['tuple'] = { 'make': function(elements) { @@ -2869,11 +2865,6 @@ Module['getExpressionInfo'] = function(expr) { 'tuple': Module['_BinaryenTupleExtractGetTuple'](expr), 'index': Module['_BinaryenTupleExtractGetIndex'](expr) }; - case Module['PushId']: - return { - 'id': id, - 'value': Module['_BinaryenPushGetValue'](expr) - }; default: throw Error('unexpected id: ' + id); -- cgit v1.2.3