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

Unified Diff: include/v8.h

Issue 2773063002: [wasm] Override mechanism for wasm js APIs (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | src/api.cc » ('j') | src/runtime/runtime-test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 66bd22053649b689e0d8f8333bb9b060bcb55a38..3af8bc68e216c2fa1eeca0c4a4311c4010249f03 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6008,6 +6008,8 @@ typedef bool (*AllowWasmInstantiateCallback)(Isolate* isolate,
MaybeLocal<Value> ffi,
bool as_promise);
+typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&);
bradnelson 2017/03/24 17:45:24 This is pretty generic name, is the idea we'd even
Mircea Trofin 2017/03/24 17:57:55 The hope is we'd delete this in favor of a "Extras
+
// --- Garbage Collection Callbacks ---
/**
@@ -7251,6 +7253,11 @@ class V8_EXPORT Isolate {
void SetAllowWasmCompileCallback(AllowWasmCompileCallback callback);
void SetAllowWasmInstantiateCallback(AllowWasmInstantiateCallback callback);
+ void SetWasmModuleCallback(ExtensionCallback callback);
+ void SetWasmCompileCallback(ExtensionCallback callback);
+ void SetWasmInstanceCallback(ExtensionCallback callback);
+ void SetWasmInstantiateCallback(ExtensionCallback callback);
+
/**
* Check if V8 is dead and therefore unusable. This is the case after
* fatal errors such as out-of-memory situations.
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/runtime/runtime-test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698