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

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

Issue 2456193006: Revert of [wasm] Support for restricted table imports. (Closed)
Patch Set: Created 4 years, 2 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 | « src/wasm/wasm-js.cc ('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 3ac410476d7c6fc9a6a0752f1b7fccb5016a384d..2376a5feba889b33edd3e41e3b67dd93dfb37e94 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -133,10 +133,8 @@
// Static representation of a wasm indirect call table.
struct WasmIndirectFunctionTable {
- uint32_t min_size; // minimum table size.
+ uint32_t size; // initial table size.
uint32_t max_size; // maximum table size.
- bool has_max; // true if there is a maximum size.
- // TODO(titzer): Move this to WasmInstance. Needed by interpreter only.
std::vector<int32_t> values; // function table, -1 indicating invalid.
bool imported; // true if imported.
bool exported; // true if exported.
@@ -175,9 +173,9 @@
// Static representation of a module.
struct V8_EXPORT_PRIVATE WasmModule {
static const uint32_t kPageSize = 0x10000; // Page size, 64kb.
+ static const uint32_t kMaxLegalPages = 65536; // Maximum legal pages
static const uint32_t kMinMemPages = 1; // Minimum memory size = 64kb
- static const size_t kV8MaxPages = 16384; // Maximum memory size = 1gb
- static const size_t kV8MaxTableSize = 16 * 1024 * 1024;
+ static const uint32_t kMaxMemPages = 16384; // Maximum memory size = 1gb
Zone* owned_zone;
const byte* module_start = nullptr; // starting address for the module bytes
@@ -559,9 +557,6 @@
int32_t GrowInstanceMemory(Isolate* isolate, Handle<JSObject> instance,
uint32_t pages);
-void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
- int index, Handle<JSFunction> js_function);
-
namespace testing {
void ValidateInstancesChain(Isolate* isolate, Handle<JSObject> wasm_module,
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698