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

Unified Diff: test/mjsunit/wasm/wasm-module-builder.js

Issue 2174123002: [wasm] Add support for multiple indirect function tables (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix GC issue 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
« no previous file with comments | « test/mjsunit/wasm/wasm-constants.js ('k') | test/unittests/wasm/module-decoder-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/wasm-module-builder.js
diff --git a/test/mjsunit/wasm/wasm-module-builder.js b/test/mjsunit/wasm/wasm-module-builder.js
index 5c5df798fbc9126c780a50a2a26eb9f37a82f4f6..fecd164b56b00430af074f7f55da9b586484f259 100644
--- a/test/mjsunit/wasm/wasm-module-builder.js
+++ b/test/mjsunit/wasm/wasm-module-builder.js
@@ -227,6 +227,10 @@ class WasmModuleBuilder {
if (debug) print("emitting table @ " + binary.length);
binary.emit_section(kDeclTable, section => {
section.emit_varint(wasm.table.length);
+ if (wasm.pad !== null) {
+ if (debug) print("emitting table padding @ " + binary.length);
+ section.emit_varint(wasm.pad);
+ }
for (let index of wasm.table) {
section.emit_varint(index);
}
@@ -338,19 +342,6 @@ class WasmModuleBuilder {
});
}
- // Add an indirect function table pad section.
- if (wasm.pad !== null) {
- if (debug)
- print("emitting indirect function table pad @ " + binary.length);
- binary.emit_section(kDeclFunctionTablePad, section => {
- section.emit_varint(wasm.pad);
- });
- }
-
- // End the module.
- if (debug) print("emitting end @ " + binary.length);
- binary.emit_section(kDeclEnd, section => {});
-
return binary;
}
« no previous file with comments | « test/mjsunit/wasm/wasm-constants.js ('k') | test/unittests/wasm/module-decoder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698