10#include <private/qv4mm_p.h>
11#include <private/qv4identifiertable_p.h>
12#include <private/qv4functiontable_p.h>
13#include <assembler/MacroAssemblerCodeRef.h>
14#include <private/qv4vme_moth_p.h>
15#include <private/qqmlglobal_p.h>
16#include <private/qv4jscall_p.h>
17#include <private/qqmlpropertycachecreator_p.h>
30 return call(thisObject, argv, argc, context);
40 return !
frame.isReturnValueUndefined();
49 frame.init(self, argv, argc);
52 engine->jsStackTop +=
frame.requiredJSStackFrameSize();
67 call(thisObject, a, types, argc, context);
73 return doCall(this, thisObject, argv, argc, context);
96 return type.typeNameIndexOrCommonType()
108 , aotCompiledFunction(aotFunction)
109 , kind(aotFunction ? AotCompiled : JsUntyped)
125 enforceJsTypes =
false;
142 if (
param.indexIsCommonType()) {
187 for (
int i = 0, ei = parameters.
size();
i != ei; ++
i) {
191 for (
int j =
i - 1;
j >= 0; --
j) {
193 if (
param == prevParam) {
199 if (duplicate == -1) {
202 const QString dup = parameterNames[duplicate];
203 parameterNames.append(dup);
204 parameterNames[duplicate] =
222 for (
const QString ¶meterName : parameterNames) {
223 arg =
engine->newIdentifier(parameterName);
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
void append(parameter_type t)
QQmlTypeLoader typeLoader
static QQmlEnginePrivate * get(QQmlEngine *e)
QV4::ExecutableCompilationUnit * compilationUnit() const
QQmlRefPointer< QQmlTypeData > getType(const QUrl &unNormalizedUrl, Mode mode=PreferSynchronous)
Returns a QQmlTypeData for the specified url.
Result query(const QHashedStringRef &key) const
bool isInlineComponentType() const
QString elementName() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString & append(QChar c)
QString & prepend(QChar c)
bool ignoresFunctionSignature() const
QQmlRefPointer< QQmlTypeNameCache > typeNameCache
QQmlType qmlTypeForComponent(const QString &inlineComponentName=QString()) const
static void exec(MetaTypesStackFrame *frame, ExecutionEngine *engine)
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
ReturnedValue convertAndCall(ExecutionEngine *engine, const QQmlPrivate::AOTCompiledFunction *aotFunction, const Value *thisObject, const Value *argv, int argc, Callable call)
ReturnedValue coerceAndCall(ExecutionEngine *engine, const Function::JSTypedFunction *typedFunction, const CompiledData::Function *compiledFunction, const Value *thisObject, const Value *argv, int argc, Callable call)
static ReturnedValue doCall(QV4::Function *self, const QV4::Value *thisObject, const QV4::Value *argv, int argc, QV4::ExecutionContext *context)
void destroyFunctionTable(Function *function, JSC::MacroAssemblerCodeRef *codeRef)
static bool isSpecificType(const CompiledData::ParameterType &type)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
GLboolean GLboolean GLboolean GLboolean a
[7]
GLsizei GLenum GLenum * types
GLenum const GLint * param
QLatin1StringView QLatin1String
\inmodule QtCore \reentrant
static QMetaType metaTypeForPropertyType(QV4::CompiledData::CommonType type)
Heap::String ** runtimeStrings
QString stringAt(uint index) const
const quint32_le * localsTable() const
const Parameter * formalsTable() const
CompiledData::CompilationUnitBase * compilationUnit
QList< QQmlType > argumentTypes
static Function * create(ExecutionEngine *engine, ExecutableCompilationUnit *unit, const CompiledData::Function *function, const QQmlPrivate::AOTCompiledFunction *aotFunction)
Function(ExecutionEngine *engine, ExecutableCompilationUnit *unit, const CompiledData::Function *function, const QQmlPrivate::AOTCompiledFunction *aotFunction)
QString sourceFile() const
static QString prettyName(const Function *function, const void *address)
const JSTypedFunction * jsTypedFunction
const CompiledData::Function * compiledFunction
JSC::MacroAssemblerCodeRef * codeRef
const QQmlPrivate::AOTCompiledFunction * aotCompiledFunction
void updateInternalClass(ExecutionEngine *engine, const QList< QByteArray > ¶meters)
QQmlSourceLocation sourceLocation() const
bool call(QObject *thisObject, void **a, const QMetaType *types, int argc, ExecutionContext *context)
Heap::InternalClass * internalClass
static void addMember(QV4::Object *object, PropertyKey id, PropertyAttributes data, InternalClassEntry *entry)
static constexpr Value undefinedValue()