![]() |
v8
4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
|
Namespaces | |
internal | |
platform | |
Typedefs | |
typedef uint32_t | SnapshotObjectId |
typedef uintptr_t | PersistentContainerValue |
template<class T > | |
using | Handle = Local< T > |
template<class T > | |
using | PhantomCallbackData = WeakCallbackInfo< T > |
template<class T > | |
using | UniquePersistent = Global< T > |
typedef void(* | AccessorGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info) |
typedef void(* | AccessorNameGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info) |
typedef void(* | AccessorSetterCallback) (Local< String > property, Local< Value > value, const PropertyCallbackInfo< void > &info) |
typedef void(* | AccessorNameSetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info) |
typedef void(* | FunctionCallback) (const FunctionCallbackInfo< Value > &info) |
typedef void(* | NamedPropertyGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info) |
typedef void(* | NamedPropertySetterCallback) (Local< String > property, Local< Value > value, const PropertyCallbackInfo< Value > &info) |
typedef void(* | NamedPropertyQueryCallback) (Local< String > property, const PropertyCallbackInfo< Integer > &info) |
typedef void(* | NamedPropertyDeleterCallback) (Local< String > property, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* | NamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef void(* | GenericNamedPropertyGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info) |
typedef void(* | GenericNamedPropertySetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< Value > &info) |
typedef void(* | GenericNamedPropertyQueryCallback) (Local< Name > property, const PropertyCallbackInfo< Integer > &info) |
typedef void(* | GenericNamedPropertyDeleterCallback) (Local< Name > property, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* | GenericNamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef void(* | IndexedPropertyGetterCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info) |
typedef void(* | IndexedPropertySetterCallback) (uint32_t index, Local< Value > value, const PropertyCallbackInfo< Value > &info) |
typedef void(* | IndexedPropertyQueryCallback) (uint32_t index, const PropertyCallbackInfo< Integer > &info) |
typedef void(* | IndexedPropertyDeleterCallback) (uint32_t index, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* | IndexedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef bool(* | NamedSecurityCallback) (Local< Object > host, Local< Value > key, AccessType type, Local< Value > data) |
typedef bool(* | IndexedSecurityCallback) (Local< Object > host, uint32_t index, AccessType type, Local< Value > data) |
typedef void(* | FatalErrorCallback) (const char *location, const char *message) |
typedef void(* | MessageCallback) (Local< Message > message, Local< Value > error) |
typedef void(* | LogEventCallback) (const char *name, int event) |
typedef int *(* | CounterLookupCallback) (const char *name) |
typedef void *(* | CreateHistogramCallback) (const char *name, int min, int max, size_t buckets) |
typedef void(* | AddHistogramSampleCallback) (void *histogram, int sample) |
typedef void(* | MemoryAllocationCallback) (ObjectSpace space, AllocationAction action, int size) |
typedef void(* | CallCompletedCallback) () |
typedef void(* | PromiseRejectCallback) (PromiseRejectMessage message) |
typedef void(* | MicrotaskCallback) (void *data) |
typedef void(* | FailedAccessCheckCallback) (Local< Object > target, AccessType type, Local< Value > data) |
typedef bool(* | AllowCodeGenerationFromStringsCallback) (Local< Context > context) |
typedef void(* | GCPrologueCallback) (GCType type, GCCallbackFlags flags) |
typedef void(* | GCEpilogueCallback) (GCType type, GCCallbackFlags flags) |
typedef void(* | InterruptCallback) (Isolate *isolate, void *data) |
typedef void(* | FunctionEntryHook) (uintptr_t function, uintptr_t return_addr_location) |
typedef void(* | JitCodeEventHandler) (const JitCodeEvent *event) |
typedef bool(* | EntropySource) (unsigned char *buffer, size_t length) |
typedef uintptr_t(* | ReturnAddressLocationResolver) (uintptr_t return_addr_location) |
Functions | |
void V8_EXPORT | RegisterExtension (Extension *extension) |
V8_INLINE Local< Primitive > | Undefined (Isolate *isolate) |
V8_INLINE Local< Primitive > | Null (Isolate *isolate) |
V8_INLINE Local< Boolean > | True (Isolate *isolate) |
V8_INLINE Local< Boolean > | False (Isolate *isolate) |
template<class T > | |
Maybe< T > | Nothing () |
template<class T > | |
Maybe< T > | Just (const T &t) |
Debugger support for the V8 JavaScript engine.
Profiler support for the V8 JavaScript engine.
Testing support for the V8 JavaScript engine.
Support for Persistent containers.
C++11 embedders can use STL containers with Global values, but pre-C++11 does not support the required move semantic and hence may want these container classes.
The v8 JavaScript engine.
typedef void(* AccessorGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info) |
Accessor[Getter|Setter] are used as callback functions when setting|getting a particular property. See Object and ObjectTemplate's method SetAccessor.
typedef void(* AccessorNameGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info) |
typedef void(* AccessorNameSetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info) |
typedef void(* AccessorSetterCallback) (Local< String > property, Local< Value > value, const PropertyCallbackInfo< void > &info) |
typedef void(* AddHistogramSampleCallback) (void *histogram, int sample) |
Callback to check if code generation from strings is allowed. See Context::AllowCodeGenerationFromStrings.
typedef void*(* CreateHistogramCallback) (const char *name, int min, int max, size_t buckets) |
typedef bool(* EntropySource) (unsigned char *buffer, size_t length) |
typedef void(* FailedAccessCheckCallback) (Local< Object > target, AccessType type, Local< Value > data) |
typedef void(* FatalErrorCallback) (const char *location, const char *message) |
typedef void(* FunctionCallback) (const FunctionCallbackInfo< Value > &info) |
typedef void(* FunctionEntryHook) (uintptr_t function, uintptr_t return_addr_location) |
FunctionEntryHook is the type of the profile entry hook called at entry to any generated function when function-level profiling is enabled.
function | the address of the function that's being entered. |
return_addr_location | points to a location on stack where the machine return address resides. This can be used to identify the caller of function , and/or modified to divert execution when function exits. |
typedef void(* GCEpilogueCallback) (GCType type, GCCallbackFlags flags) |
typedef void(* GCPrologueCallback) (GCType type, GCCallbackFlags flags) |
typedef void(* GenericNamedPropertyDeleterCallback) (Local< Name > property, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* GenericNamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef void(* GenericNamedPropertyGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info) |
GenericNamedProperty[Getter|Setter] are used as interceptors on object. See ObjectTemplate::SetNamedPropertyHandler.
typedef void(* GenericNamedPropertyQueryCallback) (Local< Name > property, const PropertyCallbackInfo< Integer > &info) |
Returns a non-empty handle if the interceptor intercepts the request. The result is an integer encoding property attributes (like v8::None, v8::DontEnum, etc.)
typedef void(* IndexedPropertyDeleterCallback) (uint32_t index, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* IndexedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef void(* IndexedPropertyGetterCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info) |
typedef void(* IndexedPropertyQueryCallback) (uint32_t index, const PropertyCallbackInfo< Integer > &info) |
typedef void(* IndexedPropertySetterCallback) (uint32_t index, Local< Value > value, const PropertyCallbackInfo< Value > &info) |
typedef bool(* IndexedSecurityCallback) (Local< Object > host, uint32_t index, AccessType type, Local< Value > data) |
typedef void(* InterruptCallback) (Isolate *isolate, void *data) |
typedef void(* JitCodeEventHandler) (const JitCodeEvent *event) |
typedef void(* LogEventCallback) (const char *name, int event) |
typedef void(* MemoryAllocationCallback) (ObjectSpace space, AllocationAction action, int size) |
typedef void(* NamedPropertyDeleterCallback) (Local< String > property, const PropertyCallbackInfo< Boolean > &info) |
typedef void(* NamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info) |
typedef void(* NamedPropertyGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info) |
NamedProperty[Getter|Setter] are used as interceptors on object. See ObjectTemplate::SetNamedPropertyHandler.
typedef void(* NamedPropertyQueryCallback) (Local< String > property, const PropertyCallbackInfo< Integer > &info) |
Returns a non-empty handle if the interceptor intercepts the request. The result is an integer encoding property attributes (like v8::None, v8::DontEnum, etc.)
typedef uintptr_t PersistentContainerValue |
using PhantomCallbackData = WeakCallbackInfo<T> |
typedef void(* PromiseRejectCallback) (PromiseRejectMessage message) |
typedef uintptr_t(* ReturnAddressLocationResolver) (uintptr_t return_addr_location) |
ReturnAddressLocationResolver is used as a callback function when v8 is resolving the location of a return address on the stack. Profilers that change the return address on the stack can use this to resolve the stack location to whereever the profiler stashed the original return address.
return_addr_location | points to a location on stack where a machine return address resides. |
typedef uint32_t SnapshotObjectId |
Definition at line 19 of file v8-profiler.h.
using UniquePersistent = Global<T> |
enum AccessControl |
Access control specifications.
Some accessors should be accessible across contexts. These accessors have an explicit access control parameter which specifies the kind of cross-context access that should be allowed.
TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused.
Enumerator | |
---|---|
DEFAULT | |
ALL_CAN_READ | |
ALL_CAN_WRITE | |
PROHIBITS_OVERWRITING |
enum AccessType |
enum AllocationAction |
|
strong |
enum DebugEvent |
Enumerator | |
---|---|
Break | |
Exception | |
NewFunction | |
BeforeCompile | |
AfterCompile | |
CompileError | |
PromiseEvent | |
AsyncTaskEvent |
Definition at line 16 of file v8-debug.h.
enum GCCallbackFlags |
enum GCType |
Applications can register callback functions which will be called before and after a garbage collection. Allocations are not allowed in the callback functions, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects.
Enumerator | |
---|---|
kGCTypeScavenge | |
kGCTypeMarkSweepCompact | |
kGCTypeAll |
enum JitCodeEventOptions |
|
strong |
enum ObjectSpace |
enum PromiseRejectEvent |
enum PropertyAttribute |
|
strong |
|
strong |