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

Unified Diff: test/cctest/wasm/test-run-wasm-js.cc

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-interpreter.cc ('k') | test/cctest/wasm/test-signatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm-js.cc
diff --git a/test/cctest/wasm/test-run-wasm-js.cc b/test/cctest/wasm/test-run-wasm-js.cc
index 827cb3ab1b01d88f72e45ef572f33c4474d18a07..7f04acdc757f2729e31266ff59ba5e9a87ad306d 100644
--- a/test/cctest/wasm/test-run-wasm-js.cc
+++ b/test/cctest/wasm/test-run-wasm-js.cc
@@ -19,10 +19,16 @@ using namespace v8::internal;
using namespace v8::internal::compiler;
using namespace v8::internal::wasm;
-#define BUILD(r, ...) \
- do { \
- byte code[] = {__VA_ARGS__}; \
- r.Build(code, code + arraysize(code)); \
+#define BUILD(r, ...) \
+ do { \
+ byte code[] = {__VA_ARGS__}; \
+ r.Build(code, code + arraysize(code), false); \
+ } while (false)
+
+#define BUILD_FAIL(r, ...) \
+ do { \
+ byte code[] = {__VA_ARGS__}; \
+ r.Build(code, code + arraysize(code), true); \
} while (false)
#define ADD_CODE(vec, ...) \
@@ -182,7 +188,7 @@ void RunJSSelectTest(int which) {
size_t end = code.size();
code.push_back(0);
- t.Build(&code[0], &code[end]);
+ t.Build(&code[0], &code[end], false);
}
Handle<JSFunction> jsfunc = module.WrapCode(t.CompileAndAdd());
@@ -370,7 +376,7 @@ void RunJSSelectAlignTest(int num_args, int num_params) {
uint32_t js_index = AddJSSelector(&module, &sig, which);
CHECK_EQ(0, js_index);
WasmFunctionCompiler t(&sig, &module);
- t.Build(&code[0], &code[end]);
+ t.Build(&code[0], &code[end], false);
Handle<JSFunction> jsfunc = module.WrapCode(t.CompileAndAdd());
« no previous file with comments | « test/cctest/wasm/test-run-wasm-interpreter.cc ('k') | test/cctest/wasm/test-signatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698