Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::VTable Struct Reference

#include <qv4vtable_p.h>

+ Collaboration diagram for QV4::VTable:

Public Types

typedef void(* Destroy) (Heap::Base *)
 
typedef void(* MarkObjects) (Heap::Base *, MarkStack *markStack)
 
typedef bool(* IsEqualTo) (Managed *m, Managed *other)
 
typedef ReturnedValue(* Get) (const Managed *, PropertyKey id, const Value *receiver, bool *hasProperty)
 
typedef bool(* Put) (Managed *, PropertyKey id, const Value &value, Value *receiver)
 
typedef bool(* DeleteProperty) (Managed *m, PropertyKey id)
 
typedef bool(* HasProperty) (const Managed *m, PropertyKey id)
 
typedef PropertyAttributes(* GetOwnProperty) (const Managed *m, PropertyKey id, Property *p)
 
typedef bool(* DefineOwnProperty) (Managed *m, PropertyKey id, const Property *p, PropertyAttributes attrs)
 
typedef bool(* IsExtensible) (const Managed *)
 
typedef bool(* PreventExtensions) (Managed *)
 
typedef Heap::Object *(* GetPrototypeOf) (const Managed *)
 
typedef bool(* SetPrototypeOf) (Managed *, const Object *)
 
typedef qint64(* GetLength) (const Managed *m)
 
typedef OwnPropertyKeyIterator *(* OwnPropertyKeys) (const Object *m, Value *target)
 
typedef ReturnedValue(* InstanceOf) (const Object *typeObject, const Value &var)
 
typedef ReturnedValue(* Call) (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
typedef void(* CallWithMetaTypes) (const FunctionObject *, QObject *, void **, const QMetaType *, int)
 
typedef ReturnedValue(* CallAsConstructor) (const FunctionObject *, const Value *argv, int argc, const Value *newTarget)
 
typedef ReturnedValue(* ResolveLookupGetter) (const Object *, ExecutionEngine *, Lookup *)
 
typedef bool(* ResolveLookupSetter) (Object *, ExecutionEngine *, Lookup *, const Value &)
 
typedef int(* Metacall) (Object *, QMetaObject::Call, int, void **)
 

Public Attributes

const VTable *const parent
 
quint16 inlinePropertyOffset
 
quint16 nInlineProperties
 
quint8 isExecutionContext
 
quint8 isString
 
quint8 isObject
 
quint8 isFunctionObject
 
quint8 isErrorObject
 
quint8 isArrayData
 
quint8 isStringOrSymbol
 
quint8 type
 
quint8 unused [4]
 
const char * className
 
Destroy destroy
 
MarkObjects markObjects
 
IsEqualTo isEqualTo
 
Get get
 
Put put
 
DeleteProperty deleteProperty
 
HasProperty hasProperty
 
GetOwnProperty getOwnProperty
 
DefineOwnProperty defineOwnProperty
 
IsExtensible isExtensible
 
PreventExtensions preventExtensions
 
GetPrototypeOf getPrototypeOf
 
SetPrototypeOf setPrototypeOf
 
GetLength getLength
 
OwnPropertyKeys ownPropertyKeys
 
InstanceOf instanceOf
 
Call call
 
CallAsConstructor callAsConstructor
 
CallWithMetaTypes callWithMetaTypes
 
ResolveLookupGetter resolveLookupGetter
 
ResolveLookupSetter resolveLookupSetter
 
Metacall metacall
 

Detailed Description

Definition at line 32 of file qv4vtable_p.h.

Member Typedef Documentation

◆ Call

typedef ReturnedValue(* QV4::VTable::Call) (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)

Definition at line 52 of file qv4vtable_p.h.

◆ CallAsConstructor

typedef ReturnedValue(* QV4::VTable::CallAsConstructor) (const FunctionObject *, const Value *argv, int argc, const Value *newTarget)

Definition at line 54 of file qv4vtable_p.h.

◆ CallWithMetaTypes

typedef void(* QV4::VTable::CallWithMetaTypes) (const FunctionObject *, QObject *, void **, const QMetaType *, int)

Definition at line 53 of file qv4vtable_p.h.

◆ DefineOwnProperty

typedef bool(* QV4::VTable::DefineOwnProperty) (Managed *m, PropertyKey id, const Property *p, PropertyAttributes attrs)

Definition at line 43 of file qv4vtable_p.h.

◆ DeleteProperty

typedef bool(* QV4::VTable::DeleteProperty) (Managed *m, PropertyKey id)

Definition at line 40 of file qv4vtable_p.h.

◆ Destroy

typedef void(* QV4::VTable::Destroy) (Heap::Base *)

Definition at line 34 of file qv4vtable_p.h.

◆ Get

typedef ReturnedValue(* QV4::VTable::Get) (const Managed *, PropertyKey id, const Value *receiver, bool *hasProperty)

Definition at line 38 of file qv4vtable_p.h.

◆ GetLength

typedef qint64(* QV4::VTable::GetLength) (const Managed *m)

Definition at line 48 of file qv4vtable_p.h.

◆ GetOwnProperty

typedef PropertyAttributes(* QV4::VTable::GetOwnProperty) (const Managed *m, PropertyKey id, Property *p)

Definition at line 42 of file qv4vtable_p.h.

◆ GetPrototypeOf

typedef Heap::Object *(* QV4::VTable::GetPrototypeOf) (const Managed *)

Definition at line 46 of file qv4vtable_p.h.

◆ HasProperty

typedef bool(* QV4::VTable::HasProperty) (const Managed *m, PropertyKey id)

Definition at line 41 of file qv4vtable_p.h.

◆ InstanceOf

typedef ReturnedValue(* QV4::VTable::InstanceOf) (const Object *typeObject, const Value &var)

Definition at line 50 of file qv4vtable_p.h.

◆ IsEqualTo

typedef bool(* QV4::VTable::IsEqualTo) (Managed *m, Managed *other)

Definition at line 36 of file qv4vtable_p.h.

◆ IsExtensible

typedef bool(* QV4::VTable::IsExtensible) (const Managed *)

Definition at line 44 of file qv4vtable_p.h.

◆ MarkObjects

typedef void(* QV4::VTable::MarkObjects) (Heap::Base *, MarkStack *markStack)

Definition at line 35 of file qv4vtable_p.h.

◆ Metacall

typedef int(* QV4::VTable::Metacall) (Object *, QMetaObject::Call, int, void **)

Definition at line 59 of file qv4vtable_p.h.

◆ OwnPropertyKeys

typedef OwnPropertyKeyIterator *(* QV4::VTable::OwnPropertyKeys) (const Object *m, Value *target)

Definition at line 49 of file qv4vtable_p.h.

◆ PreventExtensions

typedef bool(* QV4::VTable::PreventExtensions) (Managed *)

Definition at line 45 of file qv4vtable_p.h.

◆ Put

typedef bool(* QV4::VTable::Put) (Managed *, PropertyKey id, const Value &value, Value *receiver)

Definition at line 39 of file qv4vtable_p.h.

◆ ResolveLookupGetter

typedef ReturnedValue(* QV4::VTable::ResolveLookupGetter) (const Object *, ExecutionEngine *, Lookup *)

Definition at line 56 of file qv4vtable_p.h.

◆ ResolveLookupSetter

typedef bool(* QV4::VTable::ResolveLookupSetter) (Object *, ExecutionEngine *, Lookup *, const Value &)

Definition at line 57 of file qv4vtable_p.h.

◆ SetPrototypeOf

typedef bool(* QV4::VTable::SetPrototypeOf) (Managed *, const Object *)

Definition at line 47 of file qv4vtable_p.h.

Member Data Documentation

◆ call

Call QV4::VTable::call

Definition at line 93 of file qv4vtable_p.h.

◆ callAsConstructor

CallAsConstructor QV4::VTable::callAsConstructor

Definition at line 94 of file qv4vtable_p.h.

◆ callWithMetaTypes

CallWithMetaTypes QV4::VTable::callWithMetaTypes

Definition at line 95 of file qv4vtable_p.h.

◆ className

const char* QV4::VTable::className

Definition at line 73 of file qv4vtable_p.h.

◆ defineOwnProperty

DefineOwnProperty QV4::VTable::defineOwnProperty

Definition at line 84 of file qv4vtable_p.h.

◆ deleteProperty

DeleteProperty QV4::VTable::deleteProperty

Definition at line 81 of file qv4vtable_p.h.

◆ destroy

Destroy QV4::VTable::destroy

Definition at line 75 of file qv4vtable_p.h.

Referenced by QV4::Chunk::sweep().

◆ get

Get QV4::VTable::get

Definition at line 79 of file qv4vtable_p.h.

◆ getLength

GetLength QV4::VTable::getLength

Definition at line 89 of file qv4vtable_p.h.

◆ getOwnProperty

GetOwnProperty QV4::VTable::getOwnProperty

Definition at line 83 of file qv4vtable_p.h.

◆ getPrototypeOf

GetPrototypeOf QV4::VTable::getPrototypeOf

Definition at line 87 of file qv4vtable_p.h.

◆ hasProperty

HasProperty QV4::VTable::hasProperty

Definition at line 82 of file qv4vtable_p.h.

◆ inlinePropertyOffset

quint16 QV4::VTable::inlinePropertyOffset

Definition at line 62 of file qv4vtable_p.h.

Referenced by QV4::MemoryManager::allocObjectWithMemberData().

◆ instanceOf

InstanceOf QV4::VTable::instanceOf

Definition at line 91 of file qv4vtable_p.h.

◆ isArrayData

quint8 QV4::VTable::isArrayData

Definition at line 69 of file qv4vtable_p.h.

◆ isEqualTo

IsEqualTo QV4::VTable::isEqualTo

Definition at line 77 of file qv4vtable_p.h.

◆ isErrorObject

quint8 QV4::VTable::isErrorObject

Definition at line 68 of file qv4vtable_p.h.

◆ isExecutionContext

quint8 QV4::VTable::isExecutionContext

Definition at line 64 of file qv4vtable_p.h.

◆ isExtensible

IsExtensible QV4::VTable::isExtensible

Definition at line 85 of file qv4vtable_p.h.

◆ isFunctionObject

quint8 QV4::VTable::isFunctionObject

Definition at line 67 of file qv4vtable_p.h.

◆ isObject

quint8 QV4::VTable::isObject

Definition at line 66 of file qv4vtable_p.h.

◆ isString

quint8 QV4::VTable::isString

Definition at line 65 of file qv4vtable_p.h.

◆ isStringOrSymbol

quint8 QV4::VTable::isStringOrSymbol

Definition at line 70 of file qv4vtable_p.h.

◆ markObjects

MarkObjects QV4::VTable::markObjects

Definition at line 76 of file qv4vtable_p.h.

◆ metacall

Metacall QV4::VTable::metacall

Definition at line 100 of file qv4vtable_p.h.

◆ nInlineProperties

quint16 QV4::VTable::nInlineProperties

Definition at line 63 of file qv4vtable_p.h.

Referenced by QV4::MemoryManager::allocObjectWithMemberData().

◆ ownPropertyKeys

OwnPropertyKeys QV4::VTable::ownPropertyKeys

Definition at line 90 of file qv4vtable_p.h.

◆ parent

const VTable* const QV4::VTable::parent

Definition at line 61 of file qv4vtable_p.h.

Referenced by QV4::Value::as().

◆ preventExtensions

PreventExtensions QV4::VTable::preventExtensions

Definition at line 86 of file qv4vtable_p.h.

◆ put

Put QV4::VTable::put

Definition at line 80 of file qv4vtable_p.h.

◆ resolveLookupGetter

ResolveLookupGetter QV4::VTable::resolveLookupGetter

Definition at line 97 of file qv4vtable_p.h.

◆ resolveLookupSetter

ResolveLookupSetter QV4::VTable::resolveLookupSetter

Definition at line 98 of file qv4vtable_p.h.

◆ setPrototypeOf

SetPrototypeOf QV4::VTable::setPrototypeOf

Definition at line 88 of file qv4vtable_p.h.

◆ type

quint8 QV4::VTable::type

Definition at line 71 of file qv4vtable_p.h.

◆ unused

quint8 QV4::VTable::unused[4]

Definition at line 72 of file qv4vtable_p.h.


The documentation for this struct was generated from the following file: