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

Unified Diff: include/v8.h

Issue 2772203005: [wasm] Deleted old way of checking embedder limits on wasm size. (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') | no next file with comments »
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 3af8bc68e216c2fa1eeca0c4a4311c4010249f03..4e445d2144f8fe48ccb8945f1d45501f244372de 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5994,20 +5994,6 @@ typedef void (*FailedAccessCheckCallback)(Local<Object> target,
typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
// --- WASM compilation callbacks ---
-
-/**
- * Callback to check if a buffer source may be compiled to WASM, given
- * the compilation is attempted as a promise or not.
- */
-
-typedef bool (*AllowWasmCompileCallback)(Isolate* isolate, Local<Value> source,
- bool as_promise);
-
-typedef bool (*AllowWasmInstantiateCallback)(Isolate* isolate,
- Local<Value> module_or_bytes,
- MaybeLocal<Value> ffi,
- bool as_promise);
-
typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&);
// --- Garbage Collection Callbacks ---
@@ -7244,15 +7230,8 @@ class V8_EXPORT Isolate {
AllowCodeGenerationFromStringsCallback callback);
/**
- * Set the callback to invoke to check if wasm compilation from
- * the specified object is allowed. By default, wasm compilation
- * is allowed.
- *
- * Similar for instantiate.
+ * Embedder over{ride|load} injection points for wasm APIs.
*/
- void SetAllowWasmCompileCallback(AllowWasmCompileCallback callback);
- void SetAllowWasmInstantiateCallback(AllowWasmInstantiateCallback callback);
-
void SetWasmModuleCallback(ExtensionCallback callback);
void SetWasmCompileCallback(ExtensionCallback callback);
void SetWasmInstanceCallback(ExtensionCallback callback);
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698