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

Unified Diff: src/wasm/wasm-macro-gen.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 | « src/wasm/wasm-interpreter.cc ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-macro-gen.h
diff --git a/src/wasm/wasm-macro-gen.h b/src/wasm/wasm-macro-gen.h
index abd57d505a11a51359f0b819229b7917a16efb06..fb30bb4744a1ccb1b9380a8649855cc7b9b01144 100644
--- a/src/wasm/wasm-macro-gen.h
+++ b/src/wasm/wasm-macro-gen.h
@@ -403,20 +403,21 @@ class LocalDeclEncoder {
#define WASM_CALL_IMPORTN(arity, index, ...) \
__VA_ARGS__, kExprCallImport, U32V_1(arity), static_cast<byte>(index),
-#define WASM_CALL_INDIRECT0(index, func) \
- func, kExprCallIndirect, 0, static_cast<byte>(index)
-#define WASM_CALL_INDIRECT1(index, func, a) \
- func, a, kExprCallIndirect, 1, static_cast<byte>(index)
-#define WASM_CALL_INDIRECT2(index, func, a, b) \
- func, a, b, kExprCallIndirect, 2, static_cast<byte>(index)
-#define WASM_CALL_INDIRECT3(index, func, a, b, c) \
- func, a, b, c, kExprCallIndirect, 3, static_cast<byte>(index)
-#define WASM_CALL_INDIRECT4(index, func, a, b, c, d) \
- func, a, b, c, d, kExprCallIndirect, 4, static_cast<byte>(index)
-#define WASM_CALL_INDIRECT5(index, func, a, b, c, d, e) \
- func, a, b, c, d, e, kExprCallIndirect, 5, static_cast<byte>(index)
-#define WASM_CALL_INDIRECTN(arity, index, func, ...) \
- func, __VA_ARGS__, kExprCallIndirect, U32V_1(arity), static_cast<byte>(index)
+#define WASM_CALL_INDIRECT0(index, table, func) \
+ func, kExprCallIndirect, 0, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECT1(index, table, func, a) \
+ func, a, kExprCallIndirect, 1, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECT2(index, table, func, a, b) \
+ func, a, b, kExprCallIndirect, 2, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECT3(index, table, func, a, b, c) \
+ func, a, b, c, kExprCallIndirect, 3, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECT4(index, table, func, a, b, c, d) \
+ func, a, b, c, d, kExprCallIndirect, 4, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECT5(index, table, func, a, b, c, d, e) \
+ func, a, b, c, d, e, kExprCallIndirect, 5, static_cast<byte>(index), table
+#define WASM_CALL_INDIRECTN(arity, table, index, func, ...) \
+ func, __VA_ARGS__, kExprCallIndirect, U32V_1(arity), \
+ static_cast<byte>(index), table
#define WASM_NOT(x) x, kExprI32Eqz
#define WASM_SEQ(...) __VA_ARGS__
@@ -589,6 +590,9 @@ class LocalDeclEncoder {
#define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0
#define SIZEOF_SIG_ENTRY_v_v 3
+#define SIG_ENTRY_ANYFUNC kWasmFunctionTypeForm, 1, kLocalVoid, 0
+#define SIZEOF_SIG_ENTRY_ANYFUNC 3
+
#define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0
#define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0
#define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698