From 7d673ce83206349159a68fe683bc7da02dcdaf98 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Tue, 29 Sep 2020 22:19:09 +0200 Subject: GC: Add stubs for the remaining instructions (#3174) NFC, except adding most of the boilerplate for the remaining GC instructions. Each implementation site is marked with a respective `TODO (gc): theInstruction` in between the typical boilerplate code. --- src/js/binaryen.js-post.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (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 d3cf7d449..529474098 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -98,7 +98,19 @@ function initializeConstants() { 'TupleExtract', 'Pop', 'I31New', - 'I31Get' + 'I31Get', + 'RefTest', + 'RefCast', + 'BrOnCast', + 'RttCanon', + 'RttSub', + 'StructNew', + 'StructGet', + 'StructSet', + 'ArrayNew', + 'ArrayGet', + 'ArraySet', + 'ArrayLen' ].forEach(name => { Module['ExpressionIds'][name] = Module[name + 'Id'] = Module['_Binaryen' + name + 'Id'](); }); -- cgit v1.2.3