| Index: test/cctest/wasm/test-signatures.h
|
| diff --git a/test/cctest/wasm/test-signatures.h b/test/cctest/wasm/test-signatures.h
|
| index 95f24cbb9361c68a229fd78160dc24df54c0fb22..abd31466fdf7c2585fa12fe1b38075b6bb5661f0 100644
|
| --- a/test/cctest/wasm/test-signatures.h
|
| +++ b/test/cctest/wasm/test-signatures.h
|
| @@ -18,7 +18,8 @@ typedef Signature<LocalType> FunctionSig;
|
| class TestSignatures {
|
| public:
|
| TestSignatures()
|
| - : sig_i_v(1, 0, kIntTypes4),
|
| + : sig_anyfunc(0, 1, kNoneType),
|
| + sig_i_v(1, 0, kIntTypes4),
|
| sig_i_i(1, 1, kIntTypes4),
|
| sig_i_ii(1, 2, kIntTypes4),
|
| sig_i_iii(1, 3, kIntTypes4),
|
| @@ -38,6 +39,7 @@ class TestSignatures {
|
| sig_v_iii(0, 3, kIntTypes4),
|
| sig_s_i(1, 1, kSimd128IntTypes4) {
|
| // I used C++ and you won't believe what happened next....
|
| + kNoneType[0] = kAstStmt;
|
| for (int i = 0; i < 4; i++) kIntTypes4[i] = kAstI32;
|
| for (int i = 0; i < 4; i++) kLongTypes4[i] = kAstI64;
|
| for (int i = 0; i < 4; i++) kFloatTypes4[i] = kAstF32;
|
| @@ -52,6 +54,8 @@ class TestSignatures {
|
| kSimd128IntTypes4[1] = kAstI32;
|
| }
|
|
|
| + FunctionSig* anyfunc() { return &sig_anyfunc; }
|
| +
|
| FunctionSig* i_v() { return &sig_i_v; }
|
| FunctionSig* i_i() { return &sig_i_i; }
|
| FunctionSig* i_ii() { return &sig_i_ii; }
|
| @@ -86,6 +90,7 @@ class TestSignatures {
|
| }
|
|
|
| private:
|
| + LocalType kNoneType[1];
|
| LocalType kIntTypes4[4];
|
| LocalType kLongTypes4[4];
|
| LocalType kFloatTypes4[4];
|
| @@ -95,6 +100,8 @@ class TestSignatures {
|
| LocalType kIntDoubleTypes4[4];
|
| LocalType kSimd128IntTypes4[4];
|
|
|
| + FunctionSig sig_anyfunc;
|
| +
|
| FunctionSig sig_i_v;
|
| FunctionSig sig_i_i;
|
| FunctionSig sig_i_ii;
|
|
|