v8
3.14.5 (node 0.10.48)
V8 is Google's open source JavaScript engine
|
Namespaces | |
internal | |
Typedefs | |
typedef uint32_t | SnapshotObjectId |
typedef void(* | WeakReferenceCallback) (Persistent< Value > object, void *parameter) |
typedef Handle< Value >(* | AccessorGetter) (Local< String > property, const AccessorInfo &info) |
typedef void(* | AccessorSetter) (Local< String > property, Local< Value > value, const AccessorInfo &info) |
typedef Handle< Value >(* | InvocationCallback) (const Arguments &args) |
typedef Handle< Value >(* | NamedPropertyGetter) (Local< String > property, const AccessorInfo &info) |
typedef Handle< Value >(* | NamedPropertySetter) (Local< String > property, Local< Value > value, const AccessorInfo &info) |
typedef Handle< Integer >(* | NamedPropertyQuery) (Local< String > property, const AccessorInfo &info) |
typedef Handle< Boolean >(* | NamedPropertyDeleter) (Local< String > property, const AccessorInfo &info) |
typedef Handle< Array >(* | NamedPropertyEnumerator) (const AccessorInfo &info) |
typedef Handle< Value >(* | IndexedPropertyGetter) (uint32_t index, const AccessorInfo &info) |
typedef Handle< Value >(* | IndexedPropertySetter) (uint32_t index, Local< Value > value, const AccessorInfo &info) |
typedef Handle< Integer >(* | IndexedPropertyQuery) (uint32_t index, const AccessorInfo &info) |
typedef Handle< Boolean >(* | IndexedPropertyDeleter) (uint32_t index, const AccessorInfo &info) |
typedef Handle< Array >(* | IndexedPropertyEnumerator) (const AccessorInfo &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) (Handle< Message > message, Handle< Value > error) |
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(* | 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(* | GCCallback) () |
typedef bool(* | EntropySource) (unsigned char *buffer, size_t length) |
typedef uintptr_t(* | ReturnAddressLocationResolver) (uintptr_t return_addr_location) |
typedef void(* | FunctionEntryHook) (uintptr_t function, uintptr_t return_addr_location) |
typedef void(* | JitCodeEventHandler) (const JitCodeEvent *event) |
Functions | |
PreParserData V8EXPORT | Preparse (UnicodeInputStream *input, size_t max_stack_size) |
void V8EXPORT | RegisterExtension (Extension *extension) |
Handle< Primitive > V8EXPORT | Undefined () |
Handle< Primitive > V8EXPORT | Null () |
Handle< Boolean > V8EXPORT | True () |
Handle< Boolean > V8EXPORT | False () |
Handle< Primitive > | Undefined (Isolate *isolate) |
Handle< Primitive > | Null (Isolate *isolate) |
Handle< Boolean > | True (Isolate *isolate) |
Handle< Boolean > | False (Isolate *isolate) |
bool V8EXPORT | SetResourceConstraints (ResourceConstraints *constraints) |
Handle< Value > V8EXPORT | ThrowException (Handle< Value > exception) |
Debugger support for the V8 JavaScript engine.
Profiler support for the V8 JavaScript engine.
Testing support for the V8 JavaScript engine.
The v8 JavaScript engine.
typedef Handle<Value>(* AccessorGetter) (Local< String > property, const AccessorInfo &info) |
Accessor[Getter|Setter] are used as callback functions when setting|getting a particular property. See Object and ObjectTemplate's method SetAccessor.
typedef void(* AccessorSetter) (Local< String > property, Local< Value > value, const AccessorInfo &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(* 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 Handle<Boolean>(* IndexedPropertyDeleter) (uint32_t index, const AccessorInfo &info) |
typedef Handle<Array>(* IndexedPropertyEnumerator) (const AccessorInfo &info) |
typedef Handle<Value>(* IndexedPropertyGetter) (uint32_t index, const AccessorInfo &info) |
typedef Handle<Integer>(* IndexedPropertyQuery) (uint32_t index, const AccessorInfo &info) |
typedef Handle<Value>(* IndexedPropertySetter) (uint32_t index, Local< Value > value, const AccessorInfo &info) |
typedef bool(* IndexedSecurityCallback) (Local< Object > host, uint32_t index, AccessType type, Local< Value > data) |
typedef void(* JitCodeEventHandler) (const JitCodeEvent *event) |
typedef void(* MemoryAllocationCallback) (ObjectSpace space, AllocationAction action, int size) |
typedef Handle<Boolean>(* NamedPropertyDeleter) (Local< String > property, const AccessorInfo &info) |
typedef Handle<Array>(* NamedPropertyEnumerator) (const AccessorInfo &info) |
typedef Handle<Value>(* NamedPropertyGetter) (Local< String > property, const AccessorInfo &info) |
NamedProperty[Getter|Setter] are used as interceptors on object. See ObjectTemplate::SetNamedPropertyHandler.
typedef Handle<Integer>(* NamedPropertyQuery) (Local< String > property, const AccessorInfo &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(* 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 68 of file v8-profiler.h.
typedef void(* WeakReferenceCallback) (Persistent< Value > object, void *parameter) |
A weak reference callback function.
This callback should either explicitly invoke Dispose on |object| if V8 wrapper is not needed anymore, or 'revive' it by invocation of MakeWeak.
object | the weak global object to be reclaimed by the garbage collector |
parameter | the value passed in when making the weak global object |
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.
Additionally, for security, accessors can prohibit overwriting by accessors defined in JavaScript. For objects that have such accessors either locally or in their prototype chain it is not possible to overwrite the accessor by using defineGetter or defineSetter from JavaScript code.
Enumerator | |
---|---|
DEFAULT | |
ALL_CAN_READ | |
ALL_CAN_WRITE | |
PROHIBITS_OVERWRITING |
enum AccessType |
enum AllocationAction |
enum DebugEvent |
Enumerator | |
---|---|
Break | |
Exception | |
NewFunction | |
BeforeCompile | |
AfterCompile | |
ScriptCollected | |
BreakForCommand |
Definition at line 73 of file v8-debug.h.
enum ExternalArrayType |
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 |
enum ObjectSpace |
enum PropertyAttribute |
Referenced by False(), and Boolean::New().
Definition at line 4660 of file v8.h.
References False(), Internals::GetRoot(), Handle< T >::Handle(), V8::Handle, Internals::IsInitialized(), and Internals::kFalseValueRootIndex.
Definition at line 4642 of file v8.h.
References Internals::GetRoot(), Handle< T >::Handle(), V8::Handle, Internals::IsInitialized(), Internals::kNullValueRootIndex, and Null().
PreParserData V8EXPORT v8::Preparse | ( | UnicodeInputStream * | input, |
size_t | max_stack_size | ||
) |
Referenced by DeclareExtension::DeclareExtension().
bool V8EXPORT v8::SetResourceConstraints | ( | ResourceConstraints * | constraints | ) |
Schedules an exception to be thrown when returning to JavaScript. When an exception has been scheduled it is illegal to invoke any JavaScript operation; the caller must return immediately and only after the exception has been handled does it become legal to invoke JavaScript operations.
Referenced by Boolean::New(), and True().
Definition at line 4651 of file v8.h.
References Internals::GetRoot(), Handle< T >::Handle(), V8::Handle, Internals::IsInitialized(), Internals::kTrueValueRootIndex, and True().
Referenced by Arguments::operator[](), and Undefined().
Definition at line 4633 of file v8.h.
References Internals::GetRoot(), Handle< T >::Handle(), V8::Handle, Internals::IsInitialized(), Internals::kUndefinedValueRootIndex, and Undefined().