|
static void | SetFatalErrorHandler (FatalErrorCallback that) |
|
static void | SetAllowCodeGenerationFromStringsCallback (AllowCodeGenerationFromStringsCallback that) |
|
static void | SetArrayBufferAllocator (ArrayBuffer::Allocator *allocator) |
|
static bool | IsDead () |
|
static StartupData::CompressionAlgorithm | GetCompressedStartupDataAlgorithm () |
|
static int | GetCompressedStartupDataCount () |
|
static void | GetCompressedStartupData (StartupData *compressed_data) |
|
static void | SetDecompressedStartupData (StartupData *decompressed_data) |
|
static void | SetNativesDataBlob (StartupData *startup_blob) |
|
static void | SetSnapshotDataBlob (StartupData *startup_blob) |
|
static bool | AddMessageListener (MessageCallback that, Handle< Value > data=Handle< Value >()) |
|
static void | RemoveMessageListeners (MessageCallback that) |
|
static 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 void | SetFailedAccessCheckCallbackFunction (FailedAccessCheckCallback) |
|
static void | AddGCPrologueCallback (GCPrologueCallback callback, GCType gc_type_filter=kGCTypeAll) |
|
static void | RemoveGCPrologueCallback (GCPrologueCallback callback) |
|
static void | AddGCEpilogueCallback (GCEpilogueCallback callback, GCType gc_type_filter=kGCTypeAll) |
|
static void | RemoveGCEpilogueCallback (GCEpilogueCallback callback) |
|
static void | AddMemoryAllocationCallback (MemoryAllocationCallback callback, ObjectSpace space, AllocationAction action) |
|
static void | RemoveMemoryAllocationCallback (MemoryAllocationCallback callback) |
|
static bool | Initialize () |
|
static void | SetEntropySource (EntropySource source) |
|
static void | SetReturnAddressLocationResolver (ReturnAddressLocationResolver return_address_resolver) |
|
static bool | SetFunctionEntryHook (Isolate *isolate, FunctionEntryHook entry_hook) |
|
static void | SetJitCodeEventHandler (JitCodeEventOptions options, JitCodeEventHandler event_handler) |
|
static void | TerminateExecution (Isolate *isolate) |
|
static bool | IsExecutionTerminating (Isolate *isolate=NULL) |
|
static void | CancelTerminateExecution (Isolate *isolate) |
|
static bool | Dispose () |
|
static void | VisitExternalResources (ExternalResourceVisitor *visitor) |
|
static void | VisitHandlesWithClassIds (PersistentHandleVisitor *visitor) |
|
static void | VisitHandlesForPartialDependence (Isolate *isolate, PersistentHandleVisitor *visitor) |
|
static bool | InitializeICU (const char *icu_data_file=NULL) |
|
static void | InitializePlatform (Platform *platform) |
|
static void | ShutdownPlatform () |
|
Container class for static utility functions.
Definition at line 4693 of file v8.h.
static void CancelTerminateExecution |
( |
Isolate * |
isolate | ) |
|
|
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.
- Parameters
-
isolate | The isolate in which to resume execution capability. |
The following 4 functions are to be used when V8 is built with the 'compress_startup_data' flag enabled. In this case, the embedder must decompress startup data prior to initializing V8.
This is how interaction with V8 should look like: int compressed_data_count = v8::V8::GetCompressedStartupDataCount(); v8::StartupData* compressed_data = new v8::StartupData[compressed_data_count]; v8::V8::GetCompressedStartupData(compressed_data); ... decompress data (compressed_data can be updated in-place) ... v8::V8::SetDecompressedStartupData(compressed_data); ... now V8 can be initialized ... make sure the decompressed data stays valid until V8 shutdown
A helper class StartupDataDecompressor is provided. It implements the protocol of the interaction described above, and can be used in most cases instead of calling these API functions directly.