|
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) |
|
|
enum | DebugEvent {
Break = 1,
Exception = 2,
NewFunction = 3,
BeforeCompile = 4,
AfterCompile = 5,
ScriptCollected = 6,
BreakForCommand = 7
} |
|
enum | PropertyAttribute { None = 0,
ReadOnly = 1 << 0,
DontEnum = 1 << 1,
DontDelete = 1 << 2
} |
|
enum | ExternalArrayType {
kExternalByteArray = 1,
kExternalUnsignedByteArray,
kExternalShortArray,
kExternalUnsignedShortArray,
kExternalIntArray,
kExternalUnsignedIntArray,
kExternalFloatArray,
kExternalDoubleArray,
kExternalPixelArray
} |
|
enum | AccessControl { DEFAULT = 0,
ALL_CAN_READ = 1,
ALL_CAN_WRITE = 1 << 1,
PROHIBITS_OVERWRITING = 1 << 2
} |
|
enum | AccessType {
ACCESS_GET,
ACCESS_SET,
ACCESS_HAS,
ACCESS_DELETE,
ACCESS_KEYS
} |
|
enum | ObjectSpace {
kObjectSpaceNewSpace = 1 << 0,
kObjectSpaceOldPointerSpace = 1 << 1,
kObjectSpaceOldDataSpace = 1 << 2,
kObjectSpaceCodeSpace = 1 << 3,
kObjectSpaceMapSpace = 1 << 4,
kObjectSpaceLoSpace = 1 << 5,
kObjectSpaceAll
} |
|
enum | AllocationAction { kAllocationActionAllocate = 1 << 0,
kAllocationActionFree = 1 << 1,
kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree
} |
|
enum | GCType { kGCTypeScavenge = 1 << 0,
kGCTypeMarkSweepCompact = 1 << 1,
kGCTypeAll = kGCTypeScavenge | kGCTypeMarkSweepCompact
} |
|
enum | GCCallbackFlags { kNoGCCallbackFlags = 0,
kGCCallbackFlagCompacted = 1 << 0
} |
|
enum | JitCodeEventOptions { kJitCodeEventDefault = 0,
kJitCodeEventEnumExisting = 1
} |
|
enum | CompressedStartupDataItems {
kSnapshot = 0,
kSnapshotContext,
kLibraries,
kExperimentalLibraries,
kCompressedStartupDataCount
} |
|
|
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) |
|
i::Handle< i::String > | NewExternalStringHandle (i::Isolate *isolate, v8::String::ExternalStringResource *resource) |
|
i::Handle< i::String > | NewExternalAsciiStringHandle (i::Isolate *isolate, v8::String::ExternalAsciiStringResource *resource) |
|
| REGEXP_FLAG_ASSERT_EQ (kNone, NONE) |
|
| REGEXP_FLAG_ASSERT_EQ (kGlobal, GLOBAL) |
|
| REGEXP_FLAG_ASSERT_EQ (kIgnoreCase, IGNORE_CASE) |
|
| REGEXP_FLAG_ASSERT_EQ (kMultiline, MULTILINE) |
|
template<typename T > |
T | ToCData (v8::internal::Object *obj) |
|
template<typename T > |
v8::internal::Handle
< v8::internal::Object > | FromCData (T obj) |
|
template<class T > |
T * | ToApi (v8::internal::Handle< v8::internal::Object > obj) |
|
void | HandleDebugEvent (DebugEvent event, Handle< Object > exec_state, Handle< Object > event_data, Handle< Value > data) |
|
void | RunRemoteDebugger (int port) |
|
int | CompareKeys (const void *a, const void *b) |
|
int | isfinite (double x) |
|
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.
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 |
|
Definition at line 1470 of file v8.h.
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.
Definition at line 486 of file api.cc.
References ENTER_V8, Isolate::heap(), Handle< T >::IsEmpty(), Isolate::ScheduleThrow(), and Undefined().
Referenced by Shell::ArrayBuffer(), Shell::ArrayBufferSlice(), Shell::ArraySet(), Shell::ArraySubArray(), Shell::ChangeDirectory(), CThrowCountDown(), ExternalizeStringExtension::Externalize(), ExecArgs::Init(), ExternalizeStringExtension::IsAscii(), Load(), Shell::Load(), Shell::MakeDirectory(), Read(), Shell::Read(), Shell::ReadBuffer(), ReadLine(), Shell::RemoveDirectory(), Shell::SetEnvironment(), Shell::SetUMask(), Shell::System(), ThrowFromC(), ThrowingDirectApiCallback(), ThrowingDirectGetterCallback(), ThrowValue(), Shell::UnsetEnvironment(), and TryCatch::~TryCatch().