Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1478)

Unified Diff: test/cctest/wasm/test-signatures.h

Issue 2230063002: [wasm] Experimental: Add support for multiple non-homogeneous tables Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/wasm/test-run-wasm-js.cc ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « test/cctest/wasm/test-run-wasm-js.cc ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698