v8
4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Static Public Member Functions | |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void SetFatalErrorHandler(FatalErrorCallback that)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void SetAllowCodeGenerationFromStringsCallback(AllowCodeGenerationFromStringsCallback that)) |
static | V8_DEPRECATE_SOON ("Use isolate version", void SetArrayBufferAllocator(ArrayBuffer::Allocator *allocator)) |
static V8_INLINE | V8_DEPRECATE_SOON ("no alternative", bool IsDead()) |
static void | SetNativesDataBlob (StartupData *startup_blob) |
static void | SetSnapshotDataBlob (StartupData *startup_blob) |
static StartupData | CreateSnapshotDataBlob (const char *custom_source=NULL) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", bool AddMessageListener(MessageCallback that, Local< Value > data=Local< Value >())) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void RemoveMessageListeners(MessageCallback that)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void SetCaptureStackTraceForUncaughtExceptions(bool capture, int frame_limit=10, StackTrace::StackTraceOptions options=StackTrace::kOverview)) |
static void | SetFlagsFromString (const char *str, int length) |
static void | SetFlagsFromCommandLine (int *argc, char **argv, bool remove_flags) |
static const char * | GetVersion () |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback)) |
static | V8_DEPRECATE_SOON ("Use isolate version", void AddGCPrologueCallback(GCPrologueCallback callback, GCType gc_type_filter=kGCTypeAll)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void RemoveGCPrologueCallback(GCPrologueCallback callback)) |
static | V8_DEPRECATE_SOON ("Use isolate version", void AddGCEpilogueCallback(GCEpilogueCallback callback, GCType gc_type_filter=kGCTypeAll)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void RemoveGCEpilogueCallback(GCEpilogueCallback callback)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void AddMemoryAllocationCallback(MemoryAllocationCallback callback, ObjectSpace space, AllocationAction action)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback)) |
static bool | Initialize () |
static void | SetEntropySource (EntropySource source) |
static void | SetReturnAddressLocationResolver (ReturnAddressLocationResolver return_address_resolver) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void TerminateExecution(Isolate *isolate)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", bool IsExecutionTerminating(Isolate *isolate=NULL)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void CancelTerminateExecution(Isolate *isolate)) |
static bool | Dispose () |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isoalte version", void VisitExternalResources(ExternalResourceVisitor *visitor)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void VisitHandlesWithClassIds(PersistentHandleVisitor *visitor)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void VisitHandlesWithClassIds(Isolate *isolate, PersistentHandleVisitor *visitor)) |
static V8_INLINE | V8_DEPRECATE_SOON ("Use isolate version", void VisitHandlesForPartialDependence(Isolate *isolate, PersistentHandleVisitor *visitor)) |
static bool | InitializeICU (const char *icu_data_file=NULL) |
static void | InitializePlatform (Platform *platform) |
static void | ShutdownPlatform () |
Friends | |
template<class T > | |
class | Local |
template<class T > | |
class | MaybeLocal |
template<class T > | |
class | Maybe |
template<class T > | |
class | WeakCallbackInfo |
template<class T > | |
class | Eternal |
template<class T > | |
class | PersistentBase |
template<class T , class M > | |
class | Persistent |
class | Context |
|
static |
Create a new isolate and context for the purpose of capturing a snapshot Returns { NULL, 0 } on failure. The caller owns the data array in the return value.
|
static |
Releases any resources used by v8 and stops any utility threads that may be running. Note that disposing v8 is permanent, it cannot be reinitialized.
It should generally not be necessary to dispose v8 before exiting a process, this should happen automatically. It is only necessary to use if the process needs the resources taken up by v8.
|
static |
Get the version string.
|
static |
|
static |
|
static |
Sets the v8::Platform to use. This should be invoked before V8 is initialized.
|
static |
Allows the host application to provide a callback which can be used as a source of entropy for random number generators.
|
static |
Sets V8 flags from the command line.
|
static |
Sets V8 flags from a string.
|
static |
Hand startup data to V8, in case the embedder has chosen to build V8 with external startup data.
Note:
|
static |
Allows the host application to provide a callback that allows v8 to cooperate with a profiler that rewrites return addresses on stack.
|
static |
|
static |
Clears all references to the v8::Platform. This should be invoked after V8 was disposed.
|
static |
Check if V8 is dead and therefore unusable. This is the case after fatal errors such as out-of-memory situations.
|
static |
Iterates through all external resources referenced from current isolate heap. GC is not invoked prior to iterating, therefore there is no guarantee that visited objects are still alive.
|
static |
Adds a message listener.
The same message listener can be added more than once and in that case it will be called more than once for each message.
If data is specified, it will be passed to the callback when it is called. Otherwise, the exception object will be passed to the callback instead.
|
static |
Is V8 terminating JavaScript execution.
Returns true if JavaScript execution is currently terminating because of a call to TerminateExecution. In that case there are still JavaScript frames on the stack and the termination exception is still active.
isolate | The isolate in which to check. |
|
static |
Enables the host application to receive a notification after a garbage collection. Allocations are not allowed in the callback function, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects. It is possible to specify the GCType filter for your callback. But it is not possible to register the same callback function two times with different GCType filters.
|
static |
Enables the host application to receive a notification before a garbage collection. Allocations are not allowed in the callback function, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects. It is possible to specify the GCType filter for your callback. But it is not possible to register the same callback function two times with different GCType filters.
|
static |
Enables the host application to provide a mechanism to be notified and perform custom logging when V8 Allocates Executable Memory.
|
static |
Resume execution capability in the given isolate, whose execution was previously forcefully terminated using TerminateExecution().
When execution is forcefully terminated using TerminateExecution(), the isolate can not resume execution until all JavaScript frames have propagated the uncatchable exception which is generated. This method allows the program embedding the engine to handle the termination event and resume execution capability, even if JavaScript frames remain on the stack.
This method can be used by any thread even if that thread has not acquired the V8 lock with a Locker object.
isolate | The isolate in which to resume execution capability. |
|
static |
This function removes callback which was installed by AddGCEpilogueCallback function.
|
static |
This function removes callback which was installed by AddGCPrologueCallback function.
|
static |
Removes callback that was installed by AddMemoryAllocationCallback.
|
static |
Remove all message listeners from the specified callback function.
|
static |
Set the callback to invoke to check if code generation from strings should be allowed.
|
static |
Set allocator to use for ArrayBuffer memory. The allocator should be set only once. The allocator should be set before any code tha uses ArrayBuffers is executed. This allocator is used in all isolates.
|
static |
Tells V8 to capture current stack trace when uncaught exception occurs and report it to the message listeners. The option is off by default.
|
static |
Callback function for reporting failed access checks.
|
static |
Set the callback to invoke in case of fatal errors.
|
static |
|
static |
Iterates through all the persistent handles in the current isolate's heap that have class_ids and are candidates to be marked as partially dependent handles. This will visit handles to young objects created since the last garbage collection but is free to visit an arbitrary superset of these objects.
|
static |
Iterates through all the persistent handles in isolate's heap that have class_ids.
|
static |
Iterates through all the persistent handles in the current isolate's heap that have class_ids.
|
friend |
Definition at line 6294 of file v8.h.
Referenced by v8::Just().
|
friend |
|
friend |
|
friend |
|
friend |