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

Unified Diff: test/cctest/wasm/test-run-wasm-64.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.cc ('k') | test/cctest/wasm/test-run-wasm-interpreter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm-64.cc
diff --git a/test/cctest/wasm/test-run-wasm-64.cc b/test/cctest/wasm/test-run-wasm-64.cc
index a978bdf1f7beccecc2a12823dcc3ec96b733931b..af45d606ab300924c59f556d8d0dfeb3320d8a55 100644
--- a/test/cctest/wasm/test-run-wasm-64.cc
+++ b/test/cctest/wasm/test-run-wasm-64.cc
@@ -1157,7 +1157,7 @@ WASM_EXEC_TEST(LoadStoreI64_sx) {
ZERO_OFFSET // --
};
- r.Build(code, code + arraysize(code));
+ r.Build(code, code + arraysize(code), false);
// Try a bunch of different negative values.
for (int i = -1; i >= -128; i -= 11) {
@@ -1470,9 +1470,8 @@ static void CompileCallIndirectMany(LocalType param) {
TestingModule module(kExecuteCompiled);
FunctionSig* sig = sigs.many(&zone, kAstStmt, param, num_params);
- module.AddSignature(sig);
- module.AddSignature(sig);
- module.AddIndirectFunctionTable(nullptr, 0);
+ byte index = module.AddSignature(sig);
+ module.AddIndirectFunctionTable(sig, index, nullptr, 0);
WasmFunctionCompiler t(sig, &module);
@@ -1481,9 +1480,9 @@ static void CompileCallIndirectMany(LocalType param) {
for (byte p = 0; p < num_params; p++) {
ADD_CODE(code, kExprGetLocal, p);
}
- ADD_CODE(code, kExprCallIndirect, static_cast<byte>(num_params), 1);
+ ADD_CODE(code, kExprCallIndirect, static_cast<byte>(num_params), index, 0);
- t.Build(&code[0], &code[0] + code.size());
+ t.Build(&code[0], &code[0] + code.size(), false);
t.Compile();
}
}
@@ -1551,7 +1550,7 @@ static void Run_WasmMixedCall_N(WasmExecutionMode execution_mode, int start) {
// Return the expected value.
ADD_CODE(code, WASM_I32V_2(kExpected));
- r.Build(&code[0], &code[0] + code.size());
+ r.Build(&code[0], &code[0] + code.size(), false);
// Run the code.
for (int t = 0; t < 10; t++) {
« no previous file with comments | « test/cctest/wasm/test-run-wasm.cc ('k') | test/cctest/wasm/test-run-wasm-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698