summaryrefslogtreecommitdiff
path: root/test/binaryen.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js')
-rw-r--r--test/binaryen.js/exception-handling.js.txt6
-rw-r--r--test/binaryen.js/kitchen-sink.js1
-rw-r--r--test/binaryen.js/kitchen-sink.js.txt17
-rw-r--r--test/binaryen.js/push-pop.js.txt2
4 files changed, 14 insertions, 12 deletions
diff --git a/test/binaryen.js/exception-handling.js.txt b/test/binaryen.js/exception-handling.js.txt
index 902ac55e6..cdf45aeaa 100644
--- a/test/binaryen.js/exception-handling.js.txt
+++ b/test/binaryen.js/exception-handling.js.txt
@@ -26,7 +26,7 @@
)
)
-getExpressionInfo(throw) = {"id":39,"type":7,"event":"e"}
-getExpressionInfo(br_on_exn) = {"id":41,"type":6,"name":"l","event":"e"}
-getExpressionInfo(rethrow) = {"id":40,"type":7}
+getExpressionInfo(throw) = {"id":39,"type":8,"event":"e"}
+getExpressionInfo(br_on_exn) = {"id":41,"type":7,"name":"l","event":"e"}
+getExpressionInfo(rethrow) = {"id":40,"type":8}
getExpressionInfo(try) = {"id":38,"type":0}
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js
index 163fe8839..f2a78ab34 100644
--- a/test/binaryen.js/kitchen-sink.js
+++ b/test/binaryen.js/kitchen-sink.js
@@ -57,6 +57,7 @@ function test_types() {
console.log("BinaryenTypeFloat32: " + Binaryen.f32);
console.log("BinaryenTypeFloat64: " + Binaryen.f64);
console.log("BinaryenTypeVec128: " + Binaryen.v128);
+ console.log("BinaryenTypeAnyref: " + Binaryen.anyref);
console.log("BinaryenTypeExnref: " + Binaryen.exnref);
console.log("BinaryenTypeUnreachable: " + Binaryen.unreachable);
console.log("BinaryenTypeAuto: " + Binaryen.auto);
diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt
index a1baa5951..07a06b98b 100644
--- a/test/binaryen.js/kitchen-sink.js.txt
+++ b/test/binaryen.js/kitchen-sink.js.txt
@@ -4,8 +4,9 @@ BinaryenTypeInt64: 2
BinaryenTypeFloat32: 3
BinaryenTypeFloat64: 4
BinaryenTypeVec128: 5
-BinaryenTypeExnref: 6
-BinaryenTypeUnreachable: 7
+BinaryenTypeAnyref: 6
+BinaryenTypeExnref: 7
+BinaryenTypeUnreachable: 8
BinaryenTypeAuto: -1
Binaryen.Features.MVP: 0
Binaryen.Features.Atomics: 1
@@ -15,7 +16,7 @@ Binaryen.Features.NontrappingFPToInt: 4
Binaryen.Features.SignExt: 32
Binaryen.Features.SIMD128: 8
Binaryen.Features.ExceptionHandling: 64
-Binaryen.Features.All: 255
+Binaryen.Features.All: 511
BinaryenInvalidId: 0
BinaryenBlockId: 1
BinaryenIfId: 2
@@ -4759,9 +4760,9 @@ int main() {
BinaryenExpressionRef operands[] = { expressions[656] };
expressions[657] = BinaryenThrow(the_module, "a-event", operands, 1);
}
- expressions[658] = BinaryenPop(the_module, 6);
+ expressions[658] = BinaryenPop(the_module, 7);
expressions[659] = BinaryenLocalSet(the_module, 5, expressions[658]);
- expressions[660] = BinaryenLocalGet(the_module, 5, 6);
+ expressions[660] = BinaryenLocalGet(the_module, 5, 7);
expressions[661] = BinaryenBrOnExn(the_module, "try-block", "a-event", expressions[660]);
expressions[662] = BinaryenRethrow(the_module, expressions[661]);
{
@@ -4784,7 +4785,7 @@ int main() {
expressions[674] = BinaryenPush(the_module, expressions[673]);
expressions[675] = BinaryenPop(the_module, 5);
expressions[676] = BinaryenPush(the_module, expressions[675]);
- expressions[677] = BinaryenPop(the_module, 6);
+ expressions[677] = BinaryenPop(the_module, 7);
expressions[678] = BinaryenPush(the_module, expressions[677]);
expressions[679] = BinaryenNop(the_module);
expressions[680] = BinaryenUnreachable(the_module);
@@ -4876,7 +4877,7 @@ getExpressionInfo(f64.const)={"id":14,"type":4,"value":9.5}
expressions[689] = BinaryenBlock(the_module, "the-body", children, 2, 0);
}
{
- BinaryenType varTypes[] = { 1, 6 };
+ BinaryenType varTypes[] = { 1, 7 };
functions[0] = BinaryenAddFunction(the_module, "kitchen()sinker", functionTypes[1], varTypes, 2, expressions[689]);
}
expressions[690] = BinaryenConst(the_module, BinaryenLiteralInt32(1));
@@ -4934,7 +4935,7 @@ getExpressionInfo(f64.const)={"id":14,"type":4,"value":9.5}
functionTypes[4] = BinaryenAddFunctionType(the_module, NULL, 0, paramTypes, 0);
}
BinaryenModuleAutoDrop(the_module);
- BinaryenModuleSetFeatures(the_module, 255);
+ BinaryenModuleSetFeatures(the_module, 511);
BinaryenModuleGetFeatures(the_module);
BinaryenModulePrint(the_module);
(module
diff --git a/test/binaryen.js/push-pop.js.txt b/test/binaryen.js/push-pop.js.txt
index 0597780d9..c9689831f 100644
--- a/test/binaryen.js/push-pop.js.txt
+++ b/test/binaryen.js/push-pop.js.txt
@@ -27,5 +27,5 @@ 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(exnref.pop) = {"id":37,"type":7}
getExpressionInfo(push) = {"id":36}