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

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: [wasm] Patching in the change to have only one runtime check, instead of two. 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
Index: src/wasm/wasm-module.h
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
index 4a9faf0b000f63efbdabf051d0afbd4ee7a789d6..51c979ae660af7e21a8610b69c158c1fd1f0eb6c 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -101,6 +101,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.
@@ -229,6 +232,8 @@ struct WasmModuleInstance {
size_t mem_size; // size of the linear memory.
// -- raw globals -----------------------------------------------------------
byte* globals_start; // start of the globals area.
+ // -- indirect function table information -----------------------------------
+ int padded_entries; // number of entries padded to the indirect func. table
explicit WasmModuleInstance(const WasmModule* m)
: module(m),

Powered by Google App Engine
This is Rietveld 408576698