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

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

Issue 2174123002: [wasm] Add support for multiple indirect function tables (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix loop bug, cleanups, style Created 4 years, 5 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
Index: test/cctest/wasm/test-run-wasm.cc
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc
index 88a1a442fb006721140ecaf154215f304b7a520d..b53136e8d5aa05272b77720452a3ab1900d4d5dc 100644
--- a/test/cctest/wasm/test-run-wasm.cc
+++ b/test/cctest/wasm/test-run-wasm.cc
@@ -2407,8 +2407,8 @@ WASM_EXEC_TEST(SimpleCallIndirect) {
module.AddSignature(sigs.d_dd());
// Function table.
- int table[] = {0, 1};
- module.AddIndirectFunctionTable(table, 2);
+ uint16_t table[] = {0, 1};
+ module.AddIndirectFunctionTable(table, arraysize(table));
Mircea Trofin 2016/07/26 03:37:27 rename to "indirect_function_table" for clarity
ddchen 2016/07/26 05:44:44 Done.
module.PopulateIndirectFunctionTable();
// Builder the caller function.
@@ -2438,8 +2438,8 @@ WASM_EXEC_TEST(MultipleCallIndirect) {
module.AddSignature(sigs.d_dd());
// Function table.
- int table[] = {0, 1};
- module.AddIndirectFunctionTable(table, 2);
+ uint16_t table[] = {0, 1};
Mircea Trofin 2016/07/26 03:37:27 "indirect_function_table"
ddchen 2016/07/26 05:44:44 Done.
+ module.AddIndirectFunctionTable(table, arraysize(table));
module.PopulateIndirectFunctionTable();
// Builder the caller function.

Powered by Google App Engine
This is Rietveld 408576698