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

Side by Side Diff: include/v8.h

Issue 2772203005: [wasm] Deleted old way of checking embedder limits on wasm size. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 5976 matching lines...) Expand 10 before | Expand all | Expand 10 after
5987 5987
5988 // --- AllowCodeGenerationFromStrings callbacks --- 5988 // --- AllowCodeGenerationFromStrings callbacks ---
5989 5989
5990 /** 5990 /**
5991 * Callback to check if code generation from strings is allowed. See 5991 * Callback to check if code generation from strings is allowed. See
5992 * Context::AllowCodeGenerationFromStrings. 5992 * Context::AllowCodeGenerationFromStrings.
5993 */ 5993 */
5994 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context); 5994 typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context);
5995 5995
5996 // --- WASM compilation callbacks --- 5996 // --- WASM compilation callbacks ---
5997
5998 /**
5999 * Callback to check if a buffer source may be compiled to WASM, given
6000 * the compilation is attempted as a promise or not.
6001 */
6002
6003 typedef bool (*AllowWasmCompileCallback)(Isolate* isolate, Local<Value> source,
6004 bool as_promise);
6005
6006 typedef bool (*AllowWasmInstantiateCallback)(Isolate* isolate,
6007 Local<Value> module_or_bytes,
6008 MaybeLocal<Value> ffi,
6009 bool as_promise);
6010
6011 typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&); 5997 typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&);
6012 5998
6013 // --- Garbage Collection Callbacks --- 5999 // --- Garbage Collection Callbacks ---
6014 6000
6015 /** 6001 /**
6016 * Applications can register callback functions which will be called before and 6002 * Applications can register callback functions which will be called before and
6017 * after certain garbage collection operations. Allocations are not allowed in 6003 * after certain garbage collection operations. Allocations are not allowed in
6018 * the callback functions, you therefore cannot manipulate objects (set or 6004 * the callback functions, you therefore cannot manipulate objects (set or
6019 * delete properties for example) since it is possible such operations will 6005 * delete properties for example) since it is possible such operations will
6020 * result in the allocation of objects. 6006 * result in the allocation of objects.
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
7237 void SetOOMErrorHandler(OOMErrorCallback that); 7223 void SetOOMErrorHandler(OOMErrorCallback that);
7238 7224
7239 /** 7225 /**
7240 * Set the callback to invoke to check if code generation from 7226 * Set the callback to invoke to check if code generation from
7241 * strings should be allowed. 7227 * strings should be allowed.
7242 */ 7228 */
7243 void SetAllowCodeGenerationFromStringsCallback( 7229 void SetAllowCodeGenerationFromStringsCallback(
7244 AllowCodeGenerationFromStringsCallback callback); 7230 AllowCodeGenerationFromStringsCallback callback);
7245 7231
7246 /** 7232 /**
7247 * Set the callback to invoke to check if wasm compilation from 7233 * Embedder over{ride|load} injection points for wasm APIs.
7248 * the specified object is allowed. By default, wasm compilation
7249 * is allowed.
7250 *
7251 * Similar for instantiate.
7252 */ 7234 */
7253 void SetAllowWasmCompileCallback(AllowWasmCompileCallback callback);
7254 void SetAllowWasmInstantiateCallback(AllowWasmInstantiateCallback callback);
7255
7256 void SetWasmModuleCallback(ExtensionCallback callback); 7235 void SetWasmModuleCallback(ExtensionCallback callback);
7257 void SetWasmCompileCallback(ExtensionCallback callback); 7236 void SetWasmCompileCallback(ExtensionCallback callback);
7258 void SetWasmInstanceCallback(ExtensionCallback callback); 7237 void SetWasmInstanceCallback(ExtensionCallback callback);
7259 void SetWasmInstantiateCallback(ExtensionCallback callback); 7238 void SetWasmInstantiateCallback(ExtensionCallback callback);
7260 7239
7261 /** 7240 /**
7262 * Check if V8 is dead and therefore unusable. This is the case after 7241 * Check if V8 is dead and therefore unusable. This is the case after
7263 * fatal errors such as out-of-memory situations. 7242 * fatal errors such as out-of-memory situations.
7264 */ 7243 */
7265 bool IsDead(); 7244 bool IsDead();
(...skipping 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after
9924 */ 9903 */
9925 9904
9926 9905
9927 } // namespace v8 9906 } // namespace v8
9928 9907
9929 9908
9930 #undef TYPE_CHECK 9909 #undef TYPE_CHECK
9931 9910
9932 9911
9933 #endif // INCLUDE_V8_H_ 9912 #endif // INCLUDE_V8_H_
OLDNEW
« 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