diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-10-10 14:50:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-10 14:50:24 -0700 |
commit | 9fe79b8c94c0d5224add710781a2419c1feb910a (patch) | |
tree | 014013216bd741bf74495296969853b9c9c6fed5 /scripts/wasm2js.js | |
parent | 1582c525a620b00f9a8c8a1134078e2665e40363 (diff) | |
download | binaryen-9fe79b8c94c0d5224add710781a2419c1feb910a.tar.gz binaryen-9fe79b8c94c0d5224add710781a2419c1feb910a.tar.bz2 binaryen-9fe79b8c94c0d5224add710781a2419c1feb910a.zip |
Add support for reftypes in InstrumentLocals pass (#2375)
This adds support for anyref and exnref types in InstrumentLocals pass.
Diffstat (limited to 'scripts/wasm2js.js')
-rw-r--r-- | scripts/wasm2js.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/wasm2js.js b/scripts/wasm2js.js index edd7eeeb9..1d09c193a 100644 --- a/scripts/wasm2js.js +++ b/scripts/wasm2js.js @@ -130,6 +130,14 @@ var asmLibraryArg = { console.log('get_f64 ' + [loc, index, value]); return value; }, + get_anyref: function(loc, index, value) { + console.log('get_anyref ' + [loc, index, value]); + return value; + }, + get_exnref: function(loc, index, value) { + console.log('get_exnref ' + [loc, index, value]); + return value; + }, set_i32: function(loc, index, value) { console.log('set_i32 ' + [loc, index, value]); return value; @@ -147,6 +155,14 @@ var asmLibraryArg = { console.log('set_f64 ' + [loc, index, value]); return value; }, + set_anyref: function(loc, index, value) { + console.log('set_anyref ' + [loc, index, value]); + return value; + }, + set_exnref: function(loc, index, value) { + console.log('set_exnref ' + [loc, index, value]); + return value; + }, load_ptr: function(loc, bytes, offset, ptr) { console.log('load_ptr ' + [loc, bytes, offset, ptr]); return ptr; |