4#ifndef QV4ARGUMENTSOBJECTS_H
5#define QV4ARGUMENTSOBJECTS_H
26#define ArgumentsObjectMembers(class, Member)
27 Member(class, Pointer, CallContext *, context)
28 Member(class, NoMark, bool, fullyCreated)
29 Member(class, NoMark, uint, argCount)
30 Member(class, NoMark, quint64, mapped)
33 DECLARE_MARKOBJECTS(ArgumentsObject)
35 LengthPropertyIndex = 0,
36 SymbolIteratorPropertyIndex = 1,
37 CalleePropertyIndex = 2
39 void init(CppStackFrame *frame);
42#define StrictArgumentsObjectMembers(class, Member)
46 LengthPropertyIndex = 0,
47 SymbolIteratorPropertyIndex = 1,
48 CalleePropertyIndex = 2,
49 CalleeSetterPropertyIndex = 3
51 void init(JSTypesStackFrame *frame);
64 return m->vtable() == staticVTable();
80 return arg < 64 && (d()->mapped & (1ull << arg));
85 (d()->mapped &= ~(1ull << arg));
DECLARE_HEAP_OBJECT(StrictArgumentsObject, Object)
DECLARE_HEAP_OBJECT(ArgumentsObject, Object)
DEFINE_OBJECT_VTABLE(StrictArgumentsObject)
DEFINE_OBJECT_VTABLE(ArgumentsObject)
#define Q_MANAGED_TYPE(type)
static qint64 virtualGetLength(const Managed *m)
static bool virtualDefineOwnProperty(Managed *m, PropertyKey id, const Property *desc, PropertyAttributes attrs)
Heap::CallContext * context() const
static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty)
static OwnPropertyKeyIterator * virtualOwnPropertyKeys(const Object *m, Value *target)
static bool isNonStrictArgumentsObject(Managed *m)
static bool virtualDeleteProperty(Managed *m, PropertyKey id)
bool fullyCreated() const
void removeMapping(uint arg)
static PropertyAttributes virtualGetOwnProperty(const Managed *m, PropertyKey id, Property *p)
bool isMapped(uint arg) const
static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver)