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

Unified Diff: src/wasm/wasm-module.h

Issue 2049513003: [wasm] Support undefined indirect table entries, behind a flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« src/messages.h ('K') | « src/messages.h ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-module.h
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
index 2ac04253d72b27b09897a5620f6a569b7bdf064f..51f5fee9cd0dfb22fec7aed7244ddd066277746f 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -105,6 +105,9 @@ static const size_t kDeclDataSegmentSize = 13;
static const uint32_t kMaxReturnCount = 1;
+// minimum number of entries in the table for JITing
+static const uint32_t kMinimumIndirectTableSize = 1024;
+
// Static representation of a WASM function.
struct WasmFunction {
FunctionSig* sig; // signature of the function.
@@ -235,6 +238,8 @@ struct WasmModuleInstance {
// -- raw globals -----------------------------------------------------------
byte* globals_start; // start of the globals area.
size_t globals_size; // size of the globals area.
+ // -- indirect function table information -----------------------------------
+ int padded_entries; // number of entries padded to the indirect func. table
explicit WasmModuleInstance(WasmModule* m)
: module(m),
« src/messages.h ('K') | « src/messages.h ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698