![]() |
Qt 6.x
The Qt SDK
|
#include <qv4arraydata_p.h>
Static Public Member Functions | |
static uint | allocate (Object *o, bool doubleSlot=false) |
static void | free (Heap::ArrayData *d, uint idx) |
static Heap::ArrayData * | reallocate (Object *o, uint n, bool enforceAttributes) |
static ReturnedValue | get (const Heap::ArrayData *d, uint index) |
static bool | put (Object *o, uint index, const Value &value) |
static bool | putArray (Object *o, uint index, const Value *values, uint n) |
static bool | del (Object *o, uint index) |
static void | setAttribute (Object *o, uint index, PropertyAttributes attrs) |
static void | push_front (Object *o, const Value *values, uint n) |
static ReturnedValue | pop_front (Object *o) |
static uint | truncate (Object *o, uint newLen) |
static uint | length (const Heap::ArrayData *d) |
![]() | |
static void | ensureAttributes (Object *o) |
static void | realloc (Object *o, Type newType, uint alloc, bool enforceAttributes) |
static void | sort (ExecutionEngine *engine, Object *thisObject, const Value &comparefn, uint dataLen) |
static uint | append (Object *obj, ArrayObject *otherObj, uint n) |
static void | insert (Object *o, uint index, const Value *v, bool isAccessor=false) |
![]() | |
static constexpr Value | fromStaticValue (StaticValue staticValue) |
static Value | fromHeapObject (HeapBasePtr m) |
static bool | toBooleanImpl (Value val) |
static double | toNumberImpl (Value v) |
static Heap::String * | toString (ExecutionEngine *e, Value val) |
static Heap::Object * | toObject (ExecutionEngine *e, Value val) |
static constexpr Value | fromReturnedValue (ReturnedValue val) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
static constexpr Value | emptyValue () |
static constexpr Value | fromBoolean (bool b) |
static constexpr Value | fromInt32 (int i) |
static constexpr Value | undefinedValue () |
static constexpr Value | nullValue () |
static Value | fromDouble (double d) |
static Value | fromUInt32 (uint i) |
![]() | |
static int | valueOffset () |
static int | tagOffset () |
static constexpr quint64 | tagValue (quint32 tag, quint32 value) |
static constexpr quint64 | tagBitMask (TagBit bit) |
static bool | integerCompatible (StaticValue a, StaticValue b) |
static bool | bothDouble (StaticValue a, StaticValue b) |
static QV4_NEARLY_ALWAYS_INLINE bool | isInt32 (double d) |
static constexpr StaticValue | fromReturnedValue (ReturnedValue val) |
static constexpr StaticValue | emptyValue () |
static constexpr StaticValue | fromBoolean (bool b) |
static constexpr StaticValue | fromInt32 (int i) |
static constexpr StaticValue | undefinedValue () |
static constexpr StaticValue | nullValue () |
static StaticValue | fromDouble (double d) |
static StaticValue | fromUInt32 (uint i) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
Definition at line 208 of file qv4arraydata_p.h.
Definition at line 323 of file qv4arraydata.cpp.
References QV4::ArrayData::alloc(), QV4::Attr_Accessor, QV4::Attr_Data, QV4::ArrayData::attrs(), QV4::StaticValue::int_32(), QV4::StaticValue::isInteger(), o, Q_ASSERT, and reallocate().
Referenced by QV4::ArrayData::insert(), push_front(), put(), and setAttribute().
Definition at line 388 of file qv4arraydata.cpp.
References QV4::Attr_Data, QV4::ArrayData::attrs(), QV4::PropertyAttributes::isAccessor(), QV4::PropertyAttributes::isConfigurable(), QV4::ArrayData::isEmpty(), o, Q_ASSERT, QV4::ArrayData::type(), and QV4::StaticValue::value().
Definition at line 300 of file qv4arraydata.cpp.
Referenced by pop_front(), setAttribute(), and truncate().
|
static |
Definition at line 362 of file qv4arraydata.cpp.
References QV4::StaticValue::asReturnedValue(), d, QV4::Value::emptyValue(), and QV4::Heap::SparseArrayData::mappedIndex().
|
static |
Definition at line 491 of file qv4arraydata.cpp.
References d.
Definition at line 220 of file qv4arraydata_p.h.
References d.
|
static |
Definition at line 451 of file qv4arraydata.cpp.
References d, free(), o, Q_ASSERT, and QV4::Encode::undefined().
Definition at line 439 of file qv4arraydata.cpp.
References allocate(), d, i, o, and Q_ASSERT.
Definition at line 371 of file qv4arraydata.cpp.
References allocate(), QV4::Attr_Data, o, Q_ASSERT, and QV4::ArrayData::setArrayData().
Referenced by putArray().
Definition at line 316 of file qv4arraydata.cpp.
References o, and QV4::ArrayData::realloc().
Referenced by allocate().
|
static |
Definition at line 422 of file qv4arraydata.cpp.
References allocate(), QV4::ArrayData::attrs(), d, free(), QV4::PropertyAttributes::isAccessor(), and o.
|
inline |
Definition at line 215 of file qv4arraydata_p.h.
References d.
|
inline |
Definition at line 214 of file qv4arraydata_p.h.
References d.