3#ifndef QMLJS_ENVIRONMENT_H
4#define QMLJS_ENVIRONMENT_H
27#define ExecutionContextMembers(class, Member) \
28 Member(class, Pointer, ExecutionContext *, outer) \
29 Member(class, Pointer, Object *, activation)
35 Type_GlobalContext = 0x1,
36 Type_WithContext = 0x2,
37 Type_QmlContext = 0x3,
38 Type_BlockContext = 0x4,
39 Type_CallContext = 0x5
42 void init(ContextType
t)
49 const VTable *vtable()
const {
50 return internalClass->vtable;
55#if QT_POINTER_SIZE == 8
66#define CallContextMembers(class, Member) \
67 Member(class, Pointer, FunctionObject *, function) \
68 Member(class, ValueArray, ValueArray, locals)
75 ExecutionContext::init(Type_CallContext);
79 return static_cast<int>(nArgs);
82 return locals.
data() + locals.size;
86 template <
typename BlockOrFunction>
87 void setupLocalTemporalDeadZone(BlockOrFunction *bof) {
88 for (
uint i = bof->nLocals - bof->sizeOfLocalTemporalDeadZone;
i < bof->nLocals; ++
i)
109 IsExecutionContext =
true
118 Heap::CallContext *callContext);
120 Heap::ExecutionContext *newWithContext(Heap::Object *with)
const;
123 void createMutableBinding(
String *
name,
bool deletable);
162 return d()->type == Heap::ExecutionContext::Type_CallContext ?
static_cast<CallContext *
>(
this) :
nullptr;
167 return d()->type == Heap::ExecutionContext::Type_CallContext ?
static_cast<const CallContext *
>(
this) :
nullptr;
object setProperty("down", true)
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
#define Q_STATIC_ASSERT(Condition)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLsizei const GLfloat * v
[13]
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
#define V4_MANAGED(DataClass, superClass)
#define Q_MANAGED_TYPE(type)
#define V4_INTERNALCLASS(c)
#define DECLARE_HEAP_OBJECT(name, base)
#define DECLARE_MARKOBJECTS(class)
const Value * args() const
static bool virtualDeleteProperty(Managed *, PropertyKey)
CallContext * asCallContext()
static constexpr Value emptyValue()