![]() |
Qt 6.x
The Qt SDK
|
#include "qqmljscompiler_p.h"#include <private/qqmlirbuilder_p.h>#include <private/qqmljsbasicblocks_p.h>#include <private/qqmljscodegenerator_p.h>#include <private/qqmljsfunctioninitializer_p.h>#include <private/qqmljsimportvisitor_p.h>#include <private/qqmljslexer_p.h>#include <private/qqmljsloadergenerator_p.h>#include <private/qqmljsparser_p.h>#include <private/qqmljsshadowcheck_p.h>#include <private/qqmljsstoragegeneralizer_p.h>#include <private/qqmljstypepropagator_p.h>#include <QtCore/qfile.h>#include <QtCore/qfileinfo.h>#include <QtCore/qloggingcategory.h>#include <limits>
Include dependency graph for qqmljscompiler.cpp:Go to the source code of this file.
Classes | |
| class | BindingOrFunction |
Variables | |
| static const int | FileScopeCodeIndex = -1 |
| static const char * | wrapCallCode |
| static const char * | funcHeaderCode |
|
static |
Definition at line 86 of file qqmljscompiler.cpp.
References QString::isEmpty(), QmlIR::Binding::next, QString::prepend(), QStringLiteral, and QV4::CompiledData::Binding::Type_Script.
Referenced by qCompileQmlFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 118 of file qqmljscompiler.cpp.
References QV4::Compiler::Context::ArgumentsObjectUsed, QString::at(), error, QV4::Compiler::Module::functions, QChar::isUpper(), QmlIR::Document::jsModule, QString::number(), QmlIR::Document::objects, QString::size(), QString::startsWith(), QmlIR::Document::stringAt(), and QV4::CompiledData::Binding::Type_Script.
Referenced by qCompileQmlFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 55 of file qqmljscompiler.cpp.
References fileName, and QString::number().
Referenced by QQmlJSCompileError::appendDiagnostic(), and qCompileQmlFile().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 32 of file qqmljscompiler.cpp.
References QString::fromLatin1(), QSet< T >::insert(), and QV4::Compiler::Codegen::s_globalNames.
Here is the call graph for this function:
|
static |
Definition at line 666 of file qqmljscompiler.cpp.
References QmlIR::Document::pragmas, and QmlIR::Pragma::Strict.
Referenced by QQmlJSAotCompiler::diagnose(), and QV4::EvalFunction::evalCall().
Here is the caller graph for this function:| Q_GLOBAL_STATIC_WITH_ARGS | ( | QSet< QString > | , |
| illegalNames | , | ||
| (getIllegalNames()) | |||
| ) |
| Q_LOGGING_CATEGORY | ( | lcAotCompiler | , |
| "qt.qml.compiler.aot" | , | ||
| QtFatalMsg | |||
| ) |
| bool qCompileJSFile | ( | const QString & | inputFileName, |
| const QString & | inputFileUrl, | ||
| QQmlJSSaveFunction | saveFunction, | ||
| QQmlJSCompileError * | error | ||
| ) |
Definition at line 374 of file qqmljscompiler.cpp.
References QString::clear(), QV4::Compiler::Codegen::compileModule(), QV4::CompiledData::CompilationUnit::data, QString::endsWith(), engine, error, QV4::Compiler::Codegen::error(), QV4::Compiler::Module::fileName, QV4::Compiler::Module::finalUrl, QString::fromUtf8(), QRandomGenerator::generate(), QV4::Compiler::Codegen::generateCompilationUnit(), QV4::Compiler::Codegen::generateFromProgram(), generator, QV4::Compiler::Codegen::hasError(), QmlIR::Document::javaScriptCompilationUnit, QmlIR::Document::jsModule, QmlIR::Document::jsParserEngine, QFileDevice::NoError, Q_ASSERT, qScopeGuard(), QStringLiteral, QIODeviceBase::ReadOnly, QV4::Compiler::ScriptImportedByQML, QQmlJS::Lexer::setCode(), QV4::CompiledData::CompilationUnit::unitData(), and url.
Here is the call graph for this function:| bool qCompileQmlFile | ( | const QString & | inputFileName, |
| QQmlJSSaveFunction | saveFunction, | ||
| QQmlJSAotCompiler * | aotCompiler, | ||
| QQmlJSCompileError * | error, | ||
| bool | storeSourceLocation, | ||
| QV4::Compiler::CodegenWarningInterface * | interface, | ||
| const QString * | fileContents | ||
| ) |
Definition at line 180 of file qqmljscompiler.cpp.
References error, interface, and qCompileQmlFile().
Referenced by QQmlJSLinter::lintFile(), and qCompileQmlFile().
Here is the call graph for this function:
Here is the caller graph for this function:| bool qCompileQmlFile | ( | QmlIR::Document & | irDocument, |
| const QString & | inputFileName, | ||
| QQmlJSSaveFunction | saveFunction, | ||
| QQmlJSAotCompiler * | aotCompiler, | ||
| QQmlJSCompileError * | error, | ||
| bool | storeSourceLocation, | ||
| QV4::Compiler::CodegenWarningInterface * | interface, | ||
| const QString * | fileContents | ||
| ) |
Definition at line 190 of file qqmljscompiler.cpp.
References annotateListElements(), checkArgumentsObjectUseInSignalHandlers(), QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), QV4::Compiler::Module::contextMap, QV4::CompiledData::CompilationUnit::data, diagnosticErrorMessage(), error, QV4::Compiler::Codegen::error(), QmlIR::IRBuilder::errors, FileScopeCodeIndex, QString::fromUtf8(), function, BindingOrFunction::function(), QRandomGenerator::generate(), QmlIR::IRBuilder::generateFromQml(), QmlIR::JSCodeGen::generateRuntimeFunctions(), generator, QQmlJSAotCompiler::globalCode(), QV4::Compiler::Codegen::hasError(), if(), BindingOrFunction::index(), interface, it, QmlIR::Document::javaScriptCompilationUnit, QV4::Compiler::Codegen::module(), QFileDevice::NoError, QmlIR::Document::objects, QV4::CompiledData::Unit::PendingTypeCompilation, Q_ASSERT, qCDebug, QIODeviceBase::ReadOnly, QQmlJSAotCompiler::setDocument(), QQmlJSAotCompiler::setScope(), and QV4::CompiledData::Unit::StaticData.
Here is the call graph for this function:| bool qSaveQmlJSUnitAsCpp | ( | const QString & | inputFileName, |
| const QString & | outputFileName, | ||
| const QV4::CompiledData::SaveableUnitPointer & | unit, | ||
| const QQmlJSAotFunctionMap & | aotFunctions, | ||
| QString * | errorString | ||
| ) |
Definition at line 486 of file qqmljscompiler.cpp.
References arg, begin(), QMap< Key, T >::constBegin(), QByteArray::constData(), QMap< Key, T >::constEnd(), FileScopeCodeIndex, QString::fromUtf8(), funcHeaderCode, function, Qt::hex(), QString::isEmpty(), QMap< Key, T >::isEmpty(), it, QByteArrayLiteral, qQmlJSSymbolNamespaceForPath(), QStringLiteral, QV4::CompiledData::SaveableUnitPointer::saveToDisk(), QMap< Key, T >::size(), QString::toUtf8(), QIODeviceBase::Truncate, wrapCallCode, QIODeviceBase::WriteOnly, and writeStr().
Here is the call graph for this function:
|
static |
Definition at line 30 of file qqmljscompiler.cpp.
Referenced by qCompileQmlFile(), and qSaveQmlJSUnitAsCpp().
|
static |
Definition at line 479 of file qqmljscompiler.cpp.
Referenced by qSaveQmlJSUnitAsCpp().
|
static |
Definition at line 461 of file qqmljscompiler.cpp.
Referenced by qSaveQmlJSUnitAsCpp().