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

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

Issue 2454503005: [wasm] Support for restricted table imports. (Closed)
Patch Set: Fix GC stress issue; tables weren't being reset correctly 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-interpreter.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-js.h
diff --git a/src/wasm/wasm-js.h b/src/wasm/wasm-js.h
index c7e11ce924453d62b11fe43cc0ec00255a4d47f3..3cd7bacaa4027eece52cec25b9c94dec382c7ad4 100644
--- a/src/wasm/wasm-js.h
+++ b/src/wasm/wasm-js.h
@@ -24,16 +24,25 @@ class WasmJs {
Handle<JSGlobalObject> global,
Handle<Context> context);
+ // WebAssembly.Table.
+ static Handle<JSObject> CreateWasmTableObject(
+ Isolate* isolate, uint32_t initial, bool has_maximum, uint32_t maximum,
+ Handle<FixedArray>* js_functions);
+
+ static bool IsWasmTableObject(Isolate* isolate, Handle<Object> value);
+
+ static Handle<FixedArray> GetWasmTableFunctions(Isolate* isolate,
+ Handle<JSObject> object);
+
+ static Handle<FixedArray> AddWasmTableDispatchTable(
+ Isolate* isolate, Handle<JSObject> table_obj, Handle<JSObject> instance,
+ int table_index, Handle<FixedArray> dispatch_table);
+
+ // WebAssembly.Memory
static Handle<JSObject> CreateWasmMemoryObject(Isolate* isolate,
Handle<JSArrayBuffer> buffer,
bool has_maximum, int maximum);
- static Handle<JSObject> CreateWasmTableObject(Isolate* isolate,
- uint32_t initial,
- bool has_maximum,
- uint32_t maximum,
- Handle<FixedArray>* array);
-
static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value);
static Handle<JSArrayBuffer> GetWasmMemoryArrayBuffer(Isolate* isolate,
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698