Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4::Compiler::Codegen Class Reference

#include <qv4codegen_p.h>

Inheritance diagram for QV4::Compiler::Codegen:
Collaboration diagram for QV4::Compiler::Codegen:

Classes

class  VolatileMemoryLocations
class  RValue
struct  Reference
struct  RegisterScope
struct  ObjectPropertyValue
class  Result
struct  Arguments
struct  OptionalChainState
class  TailCallBlocker
class  VolatileMemoryLocationScanner

Public Types

enum  ErrorType { NoError , SyntaxError , ReferenceError }

Public Member Functions

 Codegen (QV4::Compiler::JSUnitGenerator *jsUnitGenerator, bool strict, CodegenWarningInterface *iface=defaultCodegenWarningInterface(), bool storeSourceLocations=false)
void generateFromProgram (const QString &sourceCode, QQmlJS::AST::Program *ast, Module *module, ContextType contextType=ContextType::Global)
void generateFromModule (const QString &sourceCode, QQmlJS::AST::ESModule *ast, Module *module)
void generateFromModule (const Value &valuevalue, Module *module)
Context * enterBlock (QQmlJS::AST::Node *node)
int leaveBlock ()
int registerString (const QString &namename)
int registerConstant (QV4::ReturnedValue vv)
int registerGetterLookup (int nameIndex, JSUnitGenerator::LookupMode modemode)
int registerSetterLookup (int nameIndex)
int registerGlobalGetterLookup (int nameIndex, JSUnitGenerator::LookupMode modemode)
int registerQmlContextPropertyGetterLookup (int nameIndex, JSUnitGenerator::LookupMode modemode)
int defineFunction (const QString &namename, QQmlJS::AST::Node *ast, QQmlJS::AST::FormalParameterList *formals, QQmlJS::AST::StatementList *body)
ErrorType errorType () const
bool hasError () const
QQmlJS::DiagnosticMessage error () const
QUrl url () const
Reference binopHelper (QQmlJS::AST::BinaryExpression *ast, QSOperator::Op oper, Reference &leftleft, Reference &rightright)
Reference jumpBinop (QSOperator::Op oper, Reference &leftleft, Reference &rightright)
Arguments pushArgs (QQmlJS::AST::ArgumentList *args)
void handleCall (Reference &base, Arguments calldata, int slotForFunction, int slotForThisObject, bool optional=false)
Arguments pushTemplateArgs (QQmlJS::AST::TemplateLiteral *args)
bool handleTaggedTemplate (Reference base, QQmlJS::AST::TaggedTemplate *ast)
void createTemplateObject (QQmlJS::AST::TemplateLiteral *tt)
void setUseFastLookups (bool bb)
void handleTryCatch (QQmlJS::AST::TryStatement *ast)
void handleTryFinally (QQmlJS::AST::TryStatement *ast)
Reference referenceForName (const QString &namename, bool lhs, const QQmlJS::SourceLocation &accessLocation=QQmlJS::SourceLocation())
QQmlRefPointer< QV4::CompiledData::CompilationUnit > generateCompilationUnit (bool generateUnitData=true)
Context * currentContext () const
BytecodeGenerator * generator () const
void loadClosure (int indexindex)
Module * module () const
BytecodeGenerator::Label returnLabel ()

Static Public Member Functions

static bool isNameGlobal (QAnyStringView namename)
static bool isNameKeyword (QAnyStringView namename)
static void forEachGlobalName (qxp::function_ref< void(QLatin1StringView)> &&handler)
static QQmlRefPointer< QV4::CompiledData::CompilationUnit > compileModule (Moth::DebugInstructionPass debugInstructionPass, const QString &url, const QString &sourceCode, const QDateTime &sourceTimeStamp, QList< QQmlJS::DiagnosticMessage > *diagnostics)
static const QV4::CompiledData::Unit * generateNativeModuleUnitData (Moth::DebugInstructionPass debugInstructionPass, const QString &url, const QV4::Value &valuevalue)

Protected Types

enum  Format { ex , cx , nx }
enum  UnaryOperation {
  UPlus , UMinus , PreIncrement , PreDecrement ,
  PostIncrement , PostDecrement , Not , Compl
}
using BytecodeGenerator = QV4::Moth::BytecodeGenerator
using Instruction = QV4::Moth::Instruction
using OptionalChainStates = std::stack<OptionalChainState, std::vector<OptionalChainState>>

Protected Member Functions

void enterContext (QQmlJS::AST::Node *node)
int leaveContext ()
void leaveLoop ()
Reference unop (UnaryOperation op, const Reference &expr)
void addCJump ()
void statement (QQmlJS::AST::Statement *ast)
void statement (QQmlJS::AST::ExpressionNode *ast)
void condition (QQmlJS::AST::ExpressionNode *ast, const BytecodeGenerator::Label *iftrue, const BytecodeGenerator::Label *iffalse, bool trueBlockFollowsCondition)
Reference expression (QQmlJS::AST::ExpressionNode *ast, const QString &namename=QString())
void accept (QQmlJS::AST::Node *node)
void program (QQmlJS::AST::Program *ast)
void statementList (QQmlJS::AST::StatementList *ast)
void variableDeclaration (QQmlJS::AST::PatternElement *ast)
void variableDeclarationList (QQmlJS::AST::VariableDeclarationList *ast)
Reference targetForPatternElement (QQmlJS::AST::PatternElement *pp)
Reference referenceForFormalParameter (int argIndex)
void initializeAndDestructureBindingElement (QQmlJS::AST::PatternElement *e, const Reference &baseRef=Reference(), bool isDefinition=false)
void destructurePropertyList (const Reference &objectobject, QQmlJS::AST::PatternPropertyList *bindingList, bool isDefinition=false)
void destructureElementList (const Reference &arrayarray, QQmlJS::AST::PatternElementList *bindingList, bool isDefinition=false)
void destructurePattern (QQmlJS::AST::Pattern *pp, const Reference &rhs)
Reference referenceForPropertyName (const Codegen::Reference &objectobject, QQmlJS::AST::PropertyName *namename)
void emitReturn (const Reference &expr)
bool visit (QQmlJS::AST::ArgumentList *ast) override
bool visit (QQmlJS::AST::CaseBlock *ast) override
bool visit (QQmlJS::AST::CaseClause *ast) override
bool visit (QQmlJS::AST::CaseClauses *ast) override
bool visit (QQmlJS::AST::Catch *ast) override
bool visit (QQmlJS::AST::DefaultClause *ast) override
bool visit (QQmlJS::AST::Elision *ast) override
bool visit (QQmlJS::AST::Finally *ast) override
bool visit (QQmlJS::AST::FormalParameterList *ast) override
bool visit (QQmlJS::AST::Program *ast) override
bool visit (QQmlJS::AST::StatementList *ast) override
bool visit (QQmlJS::AST::UiArrayMemberList *ast) override
bool visit (QQmlJS::AST::UiImport *ast) override
bool visit (QQmlJS::AST::UiHeaderItemList *ast) override
bool visit (QQmlJS::AST::UiPragmaValueList *ast) override
bool visit (QQmlJS::AST::UiPragma *ast) override
bool visit (QQmlJS::AST::UiObjectInitializer *ast) override
bool visit (QQmlJS::AST::UiObjectMemberList *ast) override
bool visit (QQmlJS::AST::UiParameterList *ast) override
bool visit (QQmlJS::AST::UiProgram *ast) override
bool visit (QQmlJS::AST::UiQualifiedId *ast) override
bool visit (QQmlJS::AST::VariableDeclarationList *ast) override
bool visit (QQmlJS::AST::PatternElement *ast) override
bool visit (QQmlJS::AST::PatternElementList *ast) override
bool visit (QQmlJS::AST::PatternProperty *ast) override
bool visit (QQmlJS::AST::PatternPropertyList *ast) override
bool visit (QQmlJS::AST::ExportDeclaration *ast) override
bool visit (QQmlJS::AST::TypeAnnotation *ast) override
bool visit (QQmlJS::AST::ArrayPattern *ast) override
bool visit (QQmlJS::AST::ArrayMemberExpression *ast) override
bool visit (QQmlJS::AST::BinaryExpression *ast) override
bool visit (QQmlJS::AST::CallExpression *ast) override
void endVisit (QQmlJS::AST::CallExpression *ast) override
bool visit (QQmlJS::AST::CommaExpression *ast) override
bool visit (QQmlJS::AST::ConditionalExpression *ast) override
bool visit (QQmlJS::AST::DeleteExpression *ast) override
void endVisit (QQmlJS::AST::DeleteExpression *ast) override
bool visit (QQmlJS::AST::FalseLiteral *ast) override
bool visit (QQmlJS::AST::SuperLiteral *ast) override
bool visit (QQmlJS::AST::FieldMemberExpression *ast) override
void endVisit (QQmlJS::AST::FieldMemberExpression *ast) override
bool visit (QQmlJS::AST::TaggedTemplate *ast) override
bool visit (QQmlJS::AST::FunctionExpression *ast) override
bool visit (QQmlJS::AST::IdentifierExpression *ast) override
bool visit (QQmlJS::AST::NestedExpression *ast) override
bool visit (QQmlJS::AST::NewExpression *ast) override
bool visit (QQmlJS::AST::NewMemberExpression *ast) override
bool visit (QQmlJS::AST::NotExpression *ast) override
bool visit (QQmlJS::AST::NullExpression *ast) override
bool visit (QQmlJS::AST::NumericLiteral *ast) override
bool visit (QQmlJS::AST::ObjectPattern *ast) override
bool visit (QQmlJS::AST::PostDecrementExpression *ast) override
bool visit (QQmlJS::AST::PostIncrementExpression *ast) override
bool visit (QQmlJS::AST::PreDecrementExpression *ast) override
bool visit (QQmlJS::AST::PreIncrementExpression *ast) override
bool visit (QQmlJS::AST::RegExpLiteral *ast) override
bool visit (QQmlJS::AST::StringLiteral *ast) override
bool visit (QQmlJS::AST::TemplateLiteral *ast) override
bool visit (QQmlJS::AST::ThisExpression *ast) override
bool visit (QQmlJS::AST::TildeExpression *ast) override
bool visit (QQmlJS::AST::TrueLiteral *ast) override
bool visit (QQmlJS::AST::TypeOfExpression *ast) override
bool visit (QQmlJS::AST::UnaryMinusExpression *ast) override
bool visit (QQmlJS::AST::UnaryPlusExpression *ast) override
bool visit (QQmlJS::AST::VoidExpression *ast) override
bool visit (QQmlJS::AST::FunctionDeclaration *ast) override
bool visit (QQmlJS::AST::YieldExpression *ast) override
bool visit (QQmlJS::AST::ClassExpression *ast) override
bool visit (QQmlJS::AST::ClassDeclaration *ast) override
bool visit (QQmlJS::AST::Block *ast) override
bool visit (QQmlJS::AST::BreakStatement *ast) override
bool visit (QQmlJS::AST::ContinueStatement *ast) override
bool visit (QQmlJS::AST::DebuggerStatement *ast) override
bool visit (QQmlJS::AST::DoWhileStatement *ast) override
bool visit (QQmlJS::AST::EmptyStatement *ast) override
bool visit (QQmlJS::AST::ExpressionStatement *ast) override
bool visit (QQmlJS::AST::ForEachStatement *ast) override
bool visit (QQmlJS::AST::ForStatement *ast) override
bool visit (QQmlJS::AST::IfStatement *ast) override
bool visit (QQmlJS::AST::LabelledStatement *ast) override
bool visit (QQmlJS::AST::ReturnStatement *ast) override
bool visit (QQmlJS::AST::SwitchStatement *ast) override
bool visit (QQmlJS::AST::ThrowStatement *ast) override
bool visit (QQmlJS::AST::TryStatement *ast) override
bool visit (QQmlJS::AST::VariableStatement *ast) override
bool visit (QQmlJS::AST::WhileStatement *ast) override
bool visit (QQmlJS::AST::WithStatement *ast) override
bool visit (QQmlJS::AST::UiArrayBinding *ast) override
bool visit (QQmlJS::AST::UiObjectBinding *ast) override
bool visit (QQmlJS::AST::UiObjectDefinition *ast) override
bool visit (QQmlJS::AST::UiPublicMember *ast) override
bool visit (QQmlJS::AST::UiScriptBinding *ast) override
bool visit (QQmlJS::AST::UiSourceElement *ast) override
bool throwSyntaxErrorOnEvalOrArgumentsInStrictMode (const Reference &rr, const QQmlJS::SourceLocation &loc)
virtual void throwSyntaxError (const QQmlJS::SourceLocation &loc, const QString &detail)
virtual void throwReferenceError (const QQmlJS::SourceLocation &loc, const QString &detail)
void throwRecursionDepthError () override
void setExprResult (const Reference &resultresult)
void setExprResult (Reference &&resultresult)
Reference exprResult () const
void clearExprResultName ()
bool exprAccept (Format ff)
const Result & currentExpr () const
void pushExpr (Result &&expr)
void pushExpr (const Result &expr)
void pushExpr (const QString &namename=QString())
Result popExpr ()
Reference popResult ()
Protected Member Functions inherited from QQmlJS::AST::Visitor
 Visitor (quint16 parentRecursionDepth=0)
bool preVisit (Node *) override
void postVisit (Node *) override
Protected Member Functions inherited from QQmlJS::AST::BaseVisitor
 BaseVisitor (quint16 parentRecursionDepth=0)
virtual ~BaseVisitor ()
quint16 recursionDepth () const

Protected Attributes

std::vector< Result > m_expressions
VolatileMemoryLocations _volatileMemoryLocations
Module * _module
int _returnAddress
Context * _context
Context * _functionContext = nullptr
QQmlJS::AST::LabelledStatement * _labelledStatement
QV4::Compiler::JSUnitGenerator * jsUnitGenerator
BytecodeGenerator * bytecodeGenerator = nullptr
Moth::BytecodeGenerator::Label * _returnLabel = nullptr
bool _strictMode
bool useFastLookups = true
bool requiresReturnValue = false
bool insideSwitch = false
bool inFormalParameterList = false
bool _tailCallsAreAllowed = true
bool storeSourceLocations = false
QSet< QQmlJS::AST::Node * > m_seenOptionalChainNodes
OptionalChainStates * m_optionalChainsStates = nullptr
ControlFlow * controlFlow = nullptr
bool _fileNameIsUrl
ErrorType _errorType = NoError
QQmlJS::DiagnosticMessage _error
CodegenWarningInterface * _interface
Protected Attributes inherited from QQmlJS::AST::BaseVisitor
quint16 m_recursionDepth = 0

Friends

class ScanFunctions
struct ControlFlow
struct ControlFlowCatch
struct ControlFlowFinally

Detailed Description

Definition at line 87 of file qv4codegen_p.h.

Member Typedef Documentation

◆ BytecodeGenerator

◆ Instruction

Definition at line 91 of file qv4codegen_p.h.

◆ OptionalChainStates

Definition at line 839 of file qv4codegen_p.h.

Member Enumeration Documentation

◆ ErrorType

Enumerator
NoError 
SyntaxError 
ReferenceError 

Definition at line 728 of file qv4codegen_p.h.

◆ Format

Enumerator
ex 
cx 
nx 

Definition at line 441 of file qv4codegen_p.h.

◆ UnaryOperation

Enumerator
UPlus 
UMinus 
PreIncrement 
PreDecrement 
PostIncrement 
PostDecrement 
Not 
Compl 

Definition at line 529 of file qv4codegen_p.h.

Constructor & Destructor Documentation

◆ Codegen()

Codegen::Codegen ( QV4::Compiler::JSUnitGenerator * jsUnitGenerator,
bool strict,
CodegenWarningInterface * iface = defaultCodegenWarningInterface(),
bool storeSourceLocations = false )

Definition at line 103 of file qv4codegen.cpp.

Member Function Documentation

◆ accept()

void QV4::Compiler::Codegen::accept ( QQmlJS::AST::Node * node)
inlineprotected

Definition at line 591 of file qv4codegen_p.h.

◆ addCJump()

void Codegen::addCJump ( )
protected

Definition at line 462 of file qv4codegen.cpp.

◆ binopHelper()

Codegen::Reference Codegen::binopHelper ( QQmlJS::AST::BinaryExpression * ast,
QSOperator::Op oper,
Reference & left,
Reference & right )

Definition at line 1694 of file qv4codegen.cpp.

◆ clearExprResultName()

void QV4::Compiler::Codegen::clearExprResultName ( )
inlineprotected

Definition at line 792 of file qv4codegen_p.h.

◆ compileModule()

QQmlRefPointer< QV4::CompiledData::CompilationUnit > Codegen::compileModule ( Moth::DebugInstructionPass debugInstructionPass,
const QString & url,
const QString & sourceCode,
const QDateTime & sourceTimeStamp,
QList< QQmlJS::DiagnosticMessage > * diagnostics )
static

Definition at line 4283 of file qv4codegen.cpp.

◆ condition()

void Codegen::condition ( QQmlJS::AST::ExpressionNode * ast,
const BytecodeGenerator::Label * iftrue,
const BytecodeGenerator::Label * iffalse,
bool trueBlockFollowsCondition )
protected

Definition at line 506 of file qv4codegen.cpp.

◆ createTemplateObject()

void Codegen::createTemplateObject ( QQmlJS::AST::TemplateLiteral * t)

Definition at line 2714 of file qv4codegen.cpp.

◆ currentContext()

Context * QV4::Compiler::Codegen::currentContext ( ) const
inline

Definition at line 770 of file qv4codegen_p.h.

◆ currentExpr()

const Result & QV4::Compiler::Codegen::currentExpr ( ) const
inlineprotected

Definition at line 796 of file qv4codegen_p.h.

◆ defineFunction()

int Codegen::defineFunction ( const QString & name,
QQmlJS::AST::Node * ast,
QQmlJS::AST::FormalParameterList * formals,
QQmlJS::AST::StatementList * body )

Definition at line 3435 of file qv4codegen.cpp.

◆ destructureElementList()

void Codegen::destructureElementList ( const Reference & array,
QQmlJS::AST::PatternElementList * bindingList,
bool isDefinition = false )
protected

Definition at line 816 of file qv4codegen.cpp.

◆ destructurePattern()

void Codegen::destructurePattern ( QQmlJS::AST::Pattern * p,
const Reference & rhs )
protected

Definition at line 904 of file qv4codegen.cpp.

◆ destructurePropertyList()

void Codegen::destructurePropertyList ( const Reference & object,
QQmlJS::AST::PatternPropertyList * bindingList,
bool isDefinition = false )
protected

Definition at line 796 of file qv4codegen.cpp.

◆ emitReturn()

void Codegen::emitReturn ( const Reference & expr)
protected

Definition at line 3942 of file qv4codegen.cpp.

◆ endVisit() [1/3]

void Codegen::endVisit ( QQmlJS::AST::CallExpression * ast)
overrideprotected

Definition at line 2186 of file qv4codegen.cpp.

◆ endVisit() [2/3]

void Codegen::endVisit ( QQmlJS::AST::DeleteExpression * ast)
overrideprotected

Definition at line 2486 of file qv4codegen.cpp.

◆ endVisit() [3/3]

void Codegen::endVisit ( QQmlJS::AST::FieldMemberExpression * ast)
overrideprotected

Definition at line 2657 of file qv4codegen.cpp.

◆ enterBlock()

Context * Codegen::enterBlock ( QQmlJS::AST::Node * node)

Definition at line 336 of file qv4codegen.cpp.

◆ enterContext()

void Codegen::enterContext ( QQmlJS::AST::Node * node)
protected

Definition at line 322 of file qv4codegen.cpp.

◆ error()

QQmlJS::DiagnosticMessage Codegen::error ( ) const

Definition at line 4269 of file qv4codegen.cpp.

◆ errorType()

ErrorType QV4::Compiler::Codegen::errorType ( ) const
inline

Definition at line 734 of file qv4codegen_p.h.

◆ exprAccept()

bool QV4::Compiler::Codegen::exprAccept ( Format f)
inlineprotected

Definition at line 794 of file qv4codegen_p.h.

◆ expression()

Reference QV4::Compiler::Codegen::expression ( QQmlJS::AST::ExpressionNode * ast,
const QString & name = QString() )
inlineprotected

Definition at line 581 of file qv4codegen_p.h.

◆ exprResult()

Reference QV4::Compiler::Codegen::exprResult ( ) const
inlineprotected

Definition at line 791 of file qv4codegen_p.h.

◆ forEachGlobalName()

void Codegen::forEachGlobalName ( qxp::function_ref< void(QLatin1StringView)> && handler)
static

Definition at line 215 of file qv4codegen.cpp.

◆ generateCompilationUnit()

QQmlRefPointer< QV4::CompiledData::CompilationUnit > Codegen::generateCompilationUnit ( bool generateUnitData = true)

Definition at line 4274 of file qv4codegen.cpp.

◆ generateFromModule() [1/2]

void Codegen::generateFromModule ( const QString & sourceCode,
QQmlJS::AST::ESModule * ast,
Module * module )

Definition at line 238 of file qv4codegen.cpp.

◆ generateFromModule() [2/2]

void Codegen::generateFromModule ( const Value & value,
Module * module )

Definition at line 276 of file qv4codegen.cpp.

◆ generateFromProgram()

void Codegen::generateFromProgram ( const QString & sourceCode,
QQmlJS::AST::Program * ast,
Module * module,
ContextType contextType = ContextType::Global )

Definition at line 221 of file qv4codegen.cpp.

◆ generateNativeModuleUnitData()

const QV4::CompiledData::Unit * Codegen::generateNativeModuleUnitData ( Moth::DebugInstructionPass debugInstructionPass,
const QString & url,
const QV4::Value & value )
static

Definition at line 4323 of file qv4codegen.cpp.

◆ generator()

BytecodeGenerator * QV4::Compiler::Codegen::generator ( ) const
inline

Definition at line 771 of file qv4codegen_p.h.

◆ handleCall()

void Codegen::handleCall ( Reference & base,
Arguments calldata,
int slotForFunction,
int slotForThisObject,
bool optional = false )

Definition at line 2191 of file qv4codegen.cpp.

◆ handleTaggedTemplate()

bool Codegen::handleTaggedTemplate ( Reference base,
QQmlJS::AST::TaggedTemplate * ast )

Definition at line 2674 of file qv4codegen.cpp.

◆ handleTryCatch()

void Codegen::handleTryCatch ( QQmlJS::AST::TryStatement * ast)

Definition at line 4086 of file qv4codegen.cpp.

◆ handleTryFinally()

void Codegen::handleTryFinally ( QQmlJS::AST::TryStatement * ast)

Definition at line 4098 of file qv4codegen.cpp.

◆ hasError()

bool QV4::Compiler::Codegen::hasError ( ) const
inline

Definition at line 735 of file qv4codegen_p.h.

◆ initializeAndDestructureBindingElement()

void Codegen::initializeAndDestructureBindingElement ( QQmlJS::AST::PatternElement * e,
const Reference & baseRef = Reference(),
bool isDefinition = false )
protected

Definition at line 698 of file qv4codegen.cpp.

◆ isNameGlobal()

bool Codegen::isNameGlobal ( QAnyStringView name)
static

Definition at line 189 of file qv4codegen.cpp.

◆ isNameKeyword()

bool Codegen::isNameKeyword ( QAnyStringView name)
static

Returns true if name is one of the global names that are resolved before anything else, including the context object. These are the names the engine provides as keywords.

Definition at line 199 of file qv4codegen.cpp.

◆ jumpBinop()

Codegen::Reference Codegen::jumpBinop ( QSOperator::Op oper,
Reference & left,
Reference & right )

Definition at line 1965 of file qv4codegen.cpp.

◆ leaveBlock()

int QV4::Compiler::Codegen::leaveBlock ( )
inline

Definition at line 525 of file qv4codegen_p.h.

◆ leaveContext()

int Codegen::leaveContext ( )
protected

Definition at line 328 of file qv4codegen.cpp.

◆ leaveLoop()

void QV4::Compiler::Codegen::leaveLoop ( )
protected

◆ loadClosure()

void Codegen::loadClosure ( int index)

Definition at line 2819 of file qv4codegen.cpp.

◆ module()

Module * QV4::Compiler::Codegen::module ( ) const
inline

Definition at line 775 of file qv4codegen_p.h.

◆ popExpr()

Result QV4::Compiler::Codegen::popExpr ( )
inlineprotected

Definition at line 802 of file qv4codegen_p.h.

◆ popResult()

Reference QV4::Compiler::Codegen::popResult ( )
inlineprotected

Definition at line 809 of file qv4codegen_p.h.

◆ program()

void Codegen::program ( QQmlJS::AST::Program * ast)
protected

Definition at line 535 of file qv4codegen.cpp.

◆ pushArgs()

Codegen::Arguments Codegen::pushArgs ( QQmlJS::AST::ArgumentList * args)

Definition at line 2287 of file qv4codegen.cpp.

◆ pushExpr() [1/3]

void QV4::Compiler::Codegen::pushExpr ( const QString & name = QString())
inlineprotected

Definition at line 800 of file qv4codegen_p.h.

◆ pushExpr() [2/3]

void QV4::Compiler::Codegen::pushExpr ( const Result & expr)
inlineprotected

Definition at line 799 of file qv4codegen_p.h.

◆ pushExpr() [3/3]

void QV4::Compiler::Codegen::pushExpr ( Result && expr)
inlineprotected

Definition at line 798 of file qv4codegen_p.h.

◆ pushTemplateArgs()

Codegen::Arguments Codegen::pushTemplateArgs ( QQmlJS::AST::TemplateLiteral * args)

Definition at line 2330 of file qv4codegen.cpp.

◆ referenceForFormalParameter()

Codegen::Reference Codegen::referenceForFormalParameter ( int argIndex)
protected

Definition at line 690 of file qv4codegen.cpp.

◆ referenceForName()

Codegen::Reference Codegen::referenceForName ( const QString & name,
bool lhs,
const QQmlJS::SourceLocation & accessLocation = QQmlJS::SourceLocation() )

Definition at line 2748 of file qv4codegen.cpp.

◆ referenceForPropertyName()

Codegen::Reference Codegen::referenceForPropertyName ( const Codegen::Reference & object,
QQmlJS::AST::PropertyName * name )
protected

Definition at line 779 of file qv4codegen.cpp.

◆ registerConstant()

int QV4::Compiler::Codegen::registerConstant ( QV4::ReturnedValue v)
inline

Definition at line 548 of file qv4codegen_p.h.

◆ registerGetterLookup()

int QV4::Compiler::Codegen::registerGetterLookup ( int nameIndex,
JSUnitGenerator::LookupMode mode )
inline

Definition at line 552 of file qv4codegen_p.h.

◆ registerGlobalGetterLookup()

int QV4::Compiler::Codegen::registerGlobalGetterLookup ( int nameIndex,
JSUnitGenerator::LookupMode mode )
inline

Definition at line 560 of file qv4codegen_p.h.

◆ registerQmlContextPropertyGetterLookup()

int QV4::Compiler::Codegen::registerQmlContextPropertyGetterLookup ( int nameIndex,
JSUnitGenerator::LookupMode mode )
inline

Definition at line 564 of file qv4codegen_p.h.

◆ registerSetterLookup()

int QV4::Compiler::Codegen::registerSetterLookup ( int nameIndex)
inline

Definition at line 556 of file qv4codegen_p.h.

◆ registerString()

int QV4::Compiler::Codegen::registerString ( const QString & name)
inline

Definition at line 545 of file qv4codegen_p.h.

◆ returnLabel()

BytecodeGenerator::Label QV4::Compiler::Codegen::returnLabel ( )
inline

Definition at line 777 of file qv4codegen_p.h.

◆ setExprResult() [1/2]

void QV4::Compiler::Codegen::setExprResult ( const Reference & result)
inlineprotected

Definition at line 789 of file qv4codegen_p.h.

◆ setExprResult() [2/2]

void QV4::Compiler::Codegen::setExprResult ( Reference && result)
inlineprotected

Definition at line 790 of file qv4codegen_p.h.

◆ setUseFastLookups()

void QV4::Compiler::Codegen::setUseFastLookups ( bool b)
inline

Definition at line 750 of file qv4codegen_p.h.

◆ statement() [1/2]

void Codegen::statement ( QQmlJS::AST::ExpressionNode * ast)
protected

Definition at line 482 of file qv4codegen.cpp.

◆ statement() [2/2]

void Codegen::statement ( QQmlJS::AST::Statement * ast)
protected

Definition at line 469 of file qv4codegen.cpp.

◆ statementList()

void Codegen::statementList ( QQmlJS::AST::StatementList * ast)
protected

Definition at line 599 of file qv4codegen.cpp.

◆ targetForPatternElement()

Codegen::Reference Codegen::targetForPatternElement ( QQmlJS::AST::PatternElement * p)
protected

Definition at line 669 of file qv4codegen.cpp.

◆ throwRecursionDepthError()

void QV4::Compiler::Codegen::throwRecursionDepthError ( )
inlineoverrideprotectedvirtual

Implements QQmlJS::AST::BaseVisitor.

Definition at line 721 of file qv4codegen_p.h.

◆ throwReferenceError()

void Codegen::throwReferenceError ( const QQmlJS::SourceLocation & loc,
const QString & detail )
protectedvirtual

Reimplemented in QV4::RuntimeCodegen.

Definition at line 4264 of file qv4codegen.cpp.

◆ throwSyntaxError()

void Codegen::throwSyntaxError ( const QQmlJS::SourceLocation & loc,
const QString & detail )
protectedvirtual

Reimplemented in QV4::RuntimeCodegen.

Definition at line 4259 of file qv4codegen.cpp.

◆ throwSyntaxErrorOnEvalOrArgumentsInStrictMode()

bool Codegen::throwSyntaxErrorOnEvalOrArgumentsInStrictMode ( const Reference & r,
const QQmlJS::SourceLocation & loc )
protected

Definition at line 4231 of file qv4codegen.cpp.

◆ unop()

Codegen::Reference Codegen::unop ( UnaryOperation op,
const Reference & expr )
protected

Definition at line 342 of file qv4codegen.cpp.

◆ url()

QUrl Codegen::url ( ) const

Definition at line 4468 of file qv4codegen.cpp.

◆ variableDeclaration()

void Codegen::variableDeclaration ( QQmlJS::AST::PatternElement * ast)
protected

Definition at line 646 of file qv4codegen.cpp.

◆ variableDeclarationList()

void Codegen::variableDeclarationList ( QQmlJS::AST::VariableDeclarationList * ast)
protected

Definition at line 662 of file qv4codegen.cpp.

◆ visit() [1/90]

bool Codegen::visit ( QQmlJS::AST::ArgumentList * ast)
overrideprotected

Definition at line 916 of file qv4codegen.cpp.

◆ visit() [2/90]

bool Codegen::visit ( QQmlJS::AST::ArrayMemberExpression * ast)
overrideprotected

Definition at line 1370 of file qv4codegen.cpp.

◆ visit() [3/90]

bool Codegen::visit ( QQmlJS::AST::ArrayPattern * ast)
overrideprotected

Definition at line 1212 of file qv4codegen.cpp.

◆ visit() [4/90]

bool Codegen::visit ( QQmlJS::AST::BinaryExpression * ast)
overrideprotected

Definition at line 1452 of file qv4codegen.cpp.

◆ visit() [5/90]

bool Codegen::visit ( QQmlJS::AST::Block * ast)
overrideprotected

Definition at line 3599 of file qv4codegen.cpp.

◆ visit() [6/90]

bool Codegen::visit ( QQmlJS::AST::BreakStatement * ast)
overrideprotected

Definition at line 3611 of file qv4codegen.cpp.

◆ visit() [7/90]

bool Codegen::visit ( QQmlJS::AST::CallExpression * ast)
overrideprotected

Definition at line 2085 of file qv4codegen.cpp.

◆ visit() [8/90]

bool Codegen::visit ( QQmlJS::AST::CaseBlock * ast)
overrideprotected

Definition at line 921 of file qv4codegen.cpp.

◆ visit() [9/90]

bool Codegen::visit ( QQmlJS::AST::CaseClause * ast)
overrideprotected

Definition at line 926 of file qv4codegen.cpp.

◆ visit() [10/90]

bool Codegen::visit ( QQmlJS::AST::CaseClauses * ast)
overrideprotected

Definition at line 931 of file qv4codegen.cpp.

◆ visit() [11/90]

bool Codegen::visit ( QQmlJS::AST::Catch * ast)
overrideprotected

Definition at line 936 of file qv4codegen.cpp.

◆ visit() [12/90]

bool Codegen::visit ( QQmlJS::AST::ClassDeclaration * ast)
overrideprotected

Definition at line 1190 of file qv4codegen.cpp.

◆ visit() [13/90]

bool Codegen::visit ( QQmlJS::AST::ClassExpression * ast)
overrideprotected

Definition at line 1084 of file qv4codegen.cpp.

◆ visit() [14/90]

bool Codegen::visit ( QQmlJS::AST::CommaExpression * ast)
overrideprotected

Definition at line 1199 of file qv4codegen.cpp.

◆ visit() [15/90]

bool Codegen::visit ( QQmlJS::AST::ConditionalExpression * ast)
overrideprotected

Definition at line 2354 of file qv4codegen.cpp.

◆ visit() [16/90]

bool Codegen::visit ( QQmlJS::AST::ContinueStatement * ast)
overrideprotected

Definition at line 3636 of file qv4codegen.cpp.

◆ visit() [17/90]

bool Codegen::visit ( QQmlJS::AST::DebuggerStatement * ast)
overrideprotected

Definition at line 3663 of file qv4codegen.cpp.

◆ visit() [18/90]

bool Codegen::visit ( QQmlJS::AST::DefaultClause * ast)
overrideprotected

Definition at line 941 of file qv4codegen.cpp.

◆ visit() [19/90]

bool Codegen::visit ( QQmlJS::AST::DeleteExpression * ast)
overrideprotected

Definition at line 2389 of file qv4codegen.cpp.

◆ visit() [20/90]

bool Codegen::visit ( QQmlJS::AST::DoWhileStatement * ast)
overrideprotected

Definition at line 3669 of file qv4codegen.cpp.

◆ visit() [21/90]

bool Codegen::visit ( QQmlJS::AST::Elision * ast)
overrideprotected

Definition at line 946 of file qv4codegen.cpp.

◆ visit() [22/90]

bool Codegen::visit ( QQmlJS::AST::EmptyStatement * ast)
overrideprotected

Definition at line 3709 of file qv4codegen.cpp.

◆ visit() [23/90]

bool Codegen::visit ( QQmlJS::AST::ExportDeclaration * ast)
overrideprotected

Definition at line 986 of file qv4codegen.cpp.

◆ visit() [24/90]

bool Codegen::visit ( QQmlJS::AST::ExpressionStatement * ast)
overrideprotected

Definition at line 3714 of file qv4codegen.cpp.

◆ visit() [25/90]

bool Codegen::visit ( QQmlJS::AST::FalseLiteral * ast)
overrideprotected

Definition at line 2490 of file qv4codegen.cpp.

◆ visit() [26/90]

bool Codegen::visit ( QQmlJS::AST::FieldMemberExpression * ast)
overrideprotected

Definition at line 2608 of file qv4codegen.cpp.

◆ visit() [27/90]

bool Codegen::visit ( QQmlJS::AST::Finally * ast)
overrideprotected

Definition at line 951 of file qv4codegen.cpp.

◆ visit() [28/90]

bool Codegen::visit ( QQmlJS::AST::ForEachStatement * ast)
overrideprotected

Definition at line 3733 of file qv4codegen.cpp.

◆ visit() [29/90]

bool Codegen::visit ( QQmlJS::AST::FormalParameterList * ast)
overrideprotected

Definition at line 956 of file qv4codegen.cpp.

◆ visit() [30/90]

bool Codegen::visit ( QQmlJS::AST::ForStatement * ast)
overrideprotected

Definition at line 3835 of file qv4codegen.cpp.

◆ visit() [31/90]

bool Codegen::visit ( QQmlJS::AST::FunctionDeclaration * ast)
overrideprotected

Definition at line 3346 of file qv4codegen.cpp.

◆ visit() [32/90]

bool Codegen::visit ( QQmlJS::AST::FunctionExpression * ast)
overrideprotected

Definition at line 2731 of file qv4codegen.cpp.

◆ visit() [33/90]

bool Codegen::visit ( QQmlJS::AST::IdentifierExpression * ast)
overrideprotected

Definition at line 2830 of file qv4codegen.cpp.

◆ visit() [34/90]

bool Codegen::visit ( QQmlJS::AST::IfStatement * ast)
overrideprotected

Definition at line 3880 of file qv4codegen.cpp.

◆ visit() [35/90]

bool Codegen::visit ( QQmlJS::AST::LabelledStatement * ast)
overrideprotected

Definition at line 3907 of file qv4codegen.cpp.

◆ visit() [36/90]

bool Codegen::visit ( QQmlJS::AST::NestedExpression * ast)
overrideprotected

Definition at line 2839 of file qv4codegen.cpp.

◆ visit() [37/90]

bool Codegen::visit ( QQmlJS::AST::NewExpression * ast)
overrideprotected

Definition at line 2888 of file qv4codegen.cpp.

◆ visit() [38/90]

bool Codegen::visit ( QQmlJS::AST::NewMemberExpression * ast)
overrideprotected

Definition at line 2908 of file qv4codegen.cpp.

◆ visit() [39/90]

bool Codegen::visit ( QQmlJS::AST::NotExpression * ast)
overrideprotected

Definition at line 2928 of file qv4codegen.cpp.

◆ visit() [40/90]

bool Codegen::visit ( QQmlJS::AST::NullExpression * ast)
overrideprotected

Definition at line 2941 of file qv4codegen.cpp.

◆ visit() [41/90]

bool Codegen::visit ( QQmlJS::AST::NumericLiteral * ast)
overrideprotected

Definition at line 2954 of file qv4codegen.cpp.

◆ visit() [42/90]

bool Codegen::visit ( QQmlJS::AST::ObjectPattern * ast)
overrideprotected

Definition at line 2963 of file qv4codegen.cpp.

◆ visit() [43/90]

bool Codegen::visit ( QQmlJS::AST::PatternElement * ast)
overrideprotected

Definition at line 966 of file qv4codegen.cpp.

◆ visit() [44/90]

bool Codegen::visit ( QQmlJS::AST::PatternElementList * ast)
overrideprotected

Definition at line 971 of file qv4codegen.cpp.

◆ visit() [45/90]

bool Codegen::visit ( QQmlJS::AST::PatternProperty * ast)
overrideprotected

Definition at line 976 of file qv4codegen.cpp.

◆ visit() [46/90]

bool Codegen::visit ( QQmlJS::AST::PatternPropertyList * ast)
overrideprotected

Definition at line 981 of file qv4codegen.cpp.

◆ visit() [47/90]

bool Codegen::visit ( QQmlJS::AST::PostDecrementExpression * ast)
overrideprotected

Definition at line 3081 of file qv4codegen.cpp.

◆ visit() [48/90]

bool Codegen::visit ( QQmlJS::AST::PostIncrementExpression * ast)
overrideprotected

Definition at line 3101 of file qv4codegen.cpp.

◆ visit() [49/90]

bool Codegen::visit ( QQmlJS::AST::PreDecrementExpression * ast)
overrideprotected

Definition at line 3120 of file qv4codegen.cpp.

◆ visit() [50/90]

bool Codegen::visit ( QQmlJS::AST::PreIncrementExpression * ast)
overrideprotected

Definition at line 3138 of file qv4codegen.cpp.

◆ visit() [51/90]

bool Codegen::visit ( QQmlJS::AST::Program * ast)
overrideprotected

Definition at line 961 of file qv4codegen.cpp.

◆ visit() [52/90]

bool Codegen::visit ( QQmlJS::AST::RegExpLiteral * ast)
overrideprotected

Definition at line 3157 of file qv4codegen.cpp.

◆ visit() [53/90]

bool Codegen::visit ( QQmlJS::AST::ReturnStatement * ast)
overrideprotected

Definition at line 3958 of file qv4codegen.cpp.

◆ visit() [54/90]

bool Codegen::visit ( QQmlJS::AST::StatementList * ast)
overrideprotected

Definition at line 1024 of file qv4codegen.cpp.

◆ visit() [55/90]

bool Codegen::visit ( QQmlJS::AST::StringLiteral * ast)
overrideprotected

Definition at line 3173 of file qv4codegen.cpp.

◆ visit() [56/90]

bool Codegen::visit ( QQmlJS::AST::SuperLiteral * ast)
overrideprotected

Definition at line 2499 of file qv4codegen.cpp.

◆ visit() [57/90]

bool Codegen::visit ( QQmlJS::AST::SwitchStatement * ast)
overrideprotected

Definition at line 3981 of file qv4codegen.cpp.

◆ visit() [58/90]

bool Codegen::visit ( QQmlJS::AST::TaggedTemplate * ast)
overrideprotected

Definition at line 2662 of file qv4codegen.cpp.

◆ visit() [59/90]

bool Codegen::visit ( QQmlJS::AST::TemplateLiteral * ast)
overrideprotected

Definition at line 3188 of file qv4codegen.cpp.

◆ visit() [60/90]

bool Codegen::visit ( QQmlJS::AST::ThisExpression * ast)
overrideprotected

Definition at line 3235 of file qv4codegen.cpp.

◆ visit() [61/90]

bool Codegen::visit ( QQmlJS::AST::ThrowStatement * ast)
overrideprotected

Definition at line 4068 of file qv4codegen.cpp.

◆ visit() [62/90]

bool Codegen::visit ( QQmlJS::AST::TildeExpression * ast)
overrideprotected

Definition at line 3255 of file qv4codegen.cpp.

◆ visit() [63/90]

bool Codegen::visit ( QQmlJS::AST::TrueLiteral * ast)
overrideprotected

Definition at line 3269 of file qv4codegen.cpp.

◆ visit() [64/90]

bool Codegen::visit ( QQmlJS::AST::TryStatement * ast)
overrideprotected

Definition at line 4113 of file qv4codegen.cpp.

◆ visit() [65/90]

bool Codegen::visit ( QQmlJS::AST::TypeAnnotation * ast)
overrideprotected

Definition at line 1018 of file qv4codegen.cpp.

◆ visit() [66/90]

bool Codegen::visit ( QQmlJS::AST::TypeOfExpression * ast)
overrideprotected

Definition at line 3278 of file qv4codegen.cpp.

◆ visit() [67/90]

bool Codegen::visit ( QQmlJS::AST::UiArrayBinding * ast)
overrideprotected

Definition at line 4195 of file qv4codegen.cpp.

◆ visit() [68/90]

bool Codegen::visit ( QQmlJS::AST::UiArrayMemberList * ast)
overrideprotected

Definition at line 1029 of file qv4codegen.cpp.

◆ visit() [69/90]

bool Codegen::visit ( QQmlJS::AST::UiHeaderItemList * ast)
overrideprotected

Definition at line 1039 of file qv4codegen.cpp.

◆ visit() [70/90]

bool Codegen::visit ( QQmlJS::AST::UiImport * ast)
overrideprotected

Definition at line 1034 of file qv4codegen.cpp.

◆ visit() [71/90]

bool Codegen::visit ( QQmlJS::AST::UiObjectBinding * ast)
overrideprotected

Definition at line 4201 of file qv4codegen.cpp.

◆ visit() [72/90]

bool Codegen::visit ( QQmlJS::AST::UiObjectDefinition * ast)
overrideprotected

Definition at line 4207 of file qv4codegen.cpp.

◆ visit() [73/90]

bool Codegen::visit ( QQmlJS::AST::UiObjectInitializer * ast)
overrideprotected

Definition at line 1054 of file qv4codegen.cpp.

◆ visit() [74/90]

bool Codegen::visit ( QQmlJS::AST::UiObjectMemberList * ast)
overrideprotected

Definition at line 1059 of file qv4codegen.cpp.

◆ visit() [75/90]

bool Codegen::visit ( QQmlJS::AST::UiParameterList * ast)
overrideprotected

Definition at line 1064 of file qv4codegen.cpp.

◆ visit() [76/90]

bool Codegen::visit ( QQmlJS::AST::UiPragma * ast)
overrideprotected

Definition at line 1049 of file qv4codegen.cpp.

◆ visit() [77/90]

bool Codegen::visit ( QQmlJS::AST::UiPragmaValueList * ast)
overrideprotected

Definition at line 1044 of file qv4codegen.cpp.

◆ visit() [78/90]

bool Codegen::visit ( QQmlJS::AST::UiProgram * ast)
overrideprotected

Definition at line 1069 of file qv4codegen.cpp.

◆ visit() [79/90]

bool Codegen::visit ( QQmlJS::AST::UiPublicMember * ast)
overrideprotected

Definition at line 4213 of file qv4codegen.cpp.

◆ visit() [80/90]

bool Codegen::visit ( QQmlJS::AST::UiQualifiedId * ast)
overrideprotected

Definition at line 1074 of file qv4codegen.cpp.

◆ visit() [81/90]

bool Codegen::visit ( QQmlJS::AST::UiScriptBinding * ast)
overrideprotected

Definition at line 4219 of file qv4codegen.cpp.

◆ visit() [82/90]

bool Codegen::visit ( QQmlJS::AST::UiSourceElement * ast)
overrideprotected

Definition at line 4225 of file qv4codegen.cpp.

◆ visit() [83/90]

bool Codegen::visit ( QQmlJS::AST::UnaryMinusExpression * ast)
overrideprotected

Definition at line 3305 of file qv4codegen.cpp.

◆ visit() [84/90]

bool Codegen::visit ( QQmlJS::AST::UnaryPlusExpression * ast)
overrideprotected

Definition at line 3319 of file qv4codegen.cpp.

◆ visit() [85/90]

bool Codegen::visit ( QQmlJS::AST::VariableDeclarationList * ast)
overrideprotected

Definition at line 1079 of file qv4codegen.cpp.

◆ visit() [86/90]

bool Codegen::visit ( QQmlJS::AST::VariableStatement * ast)
overrideprotected

Definition at line 4129 of file qv4codegen.cpp.

◆ visit() [87/90]

bool Codegen::visit ( QQmlJS::AST::VoidExpression * ast)
overrideprotected

Definition at line 3333 of file qv4codegen.cpp.

◆ visit() [88/90]

bool Codegen::visit ( QQmlJS::AST::WhileStatement * ast)
overrideprotected

Definition at line 4138 of file qv4codegen.cpp.

◆ visit() [89/90]

bool Codegen::visit ( QQmlJS::AST::WithStatement * ast)
overrideprotected

Definition at line 4170 of file qv4codegen.cpp.

◆ visit() [90/90]

bool Codegen::visit ( QQmlJS::AST::YieldExpression * ast)
overrideprotected

Definition at line 3360 of file qv4codegen.cpp.

◆ ControlFlow

friend struct ControlFlow
friend

Definition at line 785 of file qv4codegen_p.h.

◆ ControlFlowCatch

friend struct ControlFlowCatch
friend

Definition at line 786 of file qv4codegen_p.h.

◆ ControlFlowFinally

friend struct ControlFlowFinally
friend

Definition at line 787 of file qv4codegen_p.h.

◆ ScanFunctions

friend class ScanFunctions
friend

Definition at line 784 of file qv4codegen_p.h.

Member Data Documentation

◆ _context

Context* QV4::Compiler::Codegen::_context
protected

Definition at line 819 of file qv4codegen_p.h.

◆ _error

QQmlJS::DiagnosticMessage QV4::Compiler::Codegen::_error
protected

Definition at line 848 of file qv4codegen_p.h.

◆ _errorType

ErrorType QV4::Compiler::Codegen::_errorType = NoError
protected

Definition at line 847 of file qv4codegen_p.h.

◆ _fileNameIsUrl

bool QV4::Compiler::Codegen::_fileNameIsUrl
protected

Definition at line 846 of file qv4codegen_p.h.

◆ _functionContext

Context* QV4::Compiler::Codegen::_functionContext = nullptr
protected

Definition at line 820 of file qv4codegen_p.h.

◆ _interface

CodegenWarningInterface* QV4::Compiler::Codegen::_interface
protected

Definition at line 849 of file qv4codegen_p.h.

◆ _labelledStatement

QQmlJS::AST::LabelledStatement* QV4::Compiler::Codegen::_labelledStatement
protected

Definition at line 821 of file qv4codegen_p.h.

◆ _module

Module* QV4::Compiler::Codegen::_module
protected

Definition at line 817 of file qv4codegen_p.h.

◆ _returnAddress

int QV4::Compiler::Codegen::_returnAddress
protected

Definition at line 818 of file qv4codegen_p.h.

◆ _returnLabel

Moth::BytecodeGenerator::Label* QV4::Compiler::Codegen::_returnLabel = nullptr
protected

Definition at line 824 of file qv4codegen_p.h.

◆ _strictMode

bool QV4::Compiler::Codegen::_strictMode
protected

Definition at line 825 of file qv4codegen_p.h.

◆ _tailCallsAreAllowed

bool QV4::Compiler::Codegen::_tailCallsAreAllowed = true
protected

Definition at line 830 of file qv4codegen_p.h.

◆ _volatileMemoryLocations

VolatileMemoryLocations QV4::Compiler::Codegen::_volatileMemoryLocations
protected

Definition at line 816 of file qv4codegen_p.h.

◆ bytecodeGenerator

BytecodeGenerator* QV4::Compiler::Codegen::bytecodeGenerator = nullptr
protected

Definition at line 823 of file qv4codegen_p.h.

◆ controlFlow

ControlFlow* QV4::Compiler::Codegen::controlFlow = nullptr
protected

Definition at line 844 of file qv4codegen_p.h.

◆ inFormalParameterList

bool QV4::Compiler::Codegen::inFormalParameterList = false
protected

Definition at line 829 of file qv4codegen_p.h.

◆ insideSwitch

bool QV4::Compiler::Codegen::insideSwitch = false
protected

Definition at line 828 of file qv4codegen_p.h.

◆ jsUnitGenerator

QV4::Compiler::JSUnitGenerator* QV4::Compiler::Codegen::jsUnitGenerator
protected

Definition at line 822 of file qv4codegen_p.h.

◆ m_expressions

std::vector<Result> QV4::Compiler::Codegen::m_expressions
protected

Definition at line 815 of file qv4codegen_p.h.

◆ m_optionalChainsStates

OptionalChainStates* QV4::Compiler::Codegen::m_optionalChainsStates = nullptr
protected

Definition at line 842 of file qv4codegen_p.h.

◆ m_seenOptionalChainNodes

QSet<QQmlJS::AST::Node*> QV4::Compiler::Codegen::m_seenOptionalChainNodes
protected

Definition at line 841 of file qv4codegen_p.h.

◆ requiresReturnValue

bool QV4::Compiler::Codegen::requiresReturnValue = false
protected

Definition at line 827 of file qv4codegen_p.h.

◆ storeSourceLocations

bool QV4::Compiler::Codegen::storeSourceLocations = false
protected

Definition at line 831 of file qv4codegen_p.h.

◆ useFastLookups

bool QV4::Compiler::Codegen::useFastLookups = true
protected

Definition at line 826 of file qv4codegen_p.h.


The documentation for this class was generated from the following files: