Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmljscodegenerator.cpp File Reference
#include "qqmljscodegenerator_p.h"
#include "qqmljsmetatypes_p.h"
#include "qqmljsregistercontent_p.h"
#include "qqmljsscope_p.h"
#include "qqmljsutils_p.h"
#include <private/qqmljstypepropagator_p.h>
#include <private/qqmlirbuilder_p.h>
#include <private/qqmljsscope_p.h>
#include <private/qqmljsutils_p.h>
#include <private/qv4compilerscanfunctions_p.h>
#include <private/qduplicatetracker_p.h>
#include <QtCore/qdir.h>
#include <QtCore/qfileinfo.h>
+ Include dependency graph for qqmljscodegenerator.cpp:

Go to the source code of this file.

Macros

#define BYTECODE_UNIMPLEMENTED()   Q_ASSERT_X(false, Q_FUNC_INFO, "not implemented");
 
#define INJECT_TRACE_INFO(function)
 

Functions

static bool isTypeStorable (const QQmlJSTypeResolver *resolver, const QQmlJSScope::ConstPtr &type)
 
static QString toNumericString (double value)
 
static QString maxExpression (int argc)
 
static QString minExpression (int argc)
 
static QString messageTypeForMethod (const QString &method)
 

Macro Definition Documentation

◆ BYTECODE_UNIMPLEMENTED

#define BYTECODE_UNIMPLEMENTED ( )    Q_ASSERT_X(false, Q_FUNC_INFO, "not implemented");

Definition at line 34 of file qqmljscodegenerator.cpp.

◆ INJECT_TRACE_INFO

#define INJECT_TRACE_INFO (   function)
Value:
static const bool injectTraceInfo = true; \
if (injectTraceInfo) { \
m_body += u"// "_s + QStringLiteral(#function) + u'\n'; \
}
#define QStringLiteral(str)

Definition at line 36 of file qqmljscodegenerator.cpp.

Function Documentation

◆ isTypeStorable()

static bool isTypeStorable ( const QQmlJSTypeResolver resolver,
const QQmlJSScope::ConstPtr type 
)
static

Definition at line 43 of file qqmljscodegenerator.cpp.

References QQmlJSTypeResolver::equals(), QQmlJSTypeResolver::nullType(), and QQmlJSTypeResolver::voidType().

Referenced by QQmlJSCodeGenerator::AccumulatorConverter::AccumulatorConverter(), QQmlJSCodeGenerator::run(), and QQmlJSCodeGenerator::startInstruction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ maxExpression()

static QString maxExpression ( int  argc)
static

Definition at line 1509 of file qqmljscodegenerator.cpp.

References QString::arg(), i, QString::number(), Q_ASSERT_X, and Q_FUNC_INFO.

+ Here is the call graph for this function:

◆ messageTypeForMethod()

static QString messageTypeForMethod ( const QString method)
static

Definition at line 1665 of file qqmljscodegenerator.cpp.

References method.

◆ minExpression()

static QString minExpression ( int  argc)
static

Definition at line 1525 of file qqmljscodegenerator.cpp.

References QString::arg(), i, QString::number(), Q_ASSERT_X, and Q_FUNC_INFO.

+ Here is the call graph for this function:

◆ toNumericString()

static QString toNumericString ( double  value)
static

Definition at line 299 of file qqmljscodegenerator.cpp.

References i, QString::number(), and qFpClassify().

Referenced by QQmlJSCodeGenerator::generate_LoadConst(), and QQmlJSCodeGenerator::generate_MoveConst().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: