Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::Moth::BytecodeGenerator::Label Struct Reference

#include <qv4bytecodegenerator_p.h>

+ Inheritance diagram for QV4::Moth::BytecodeGenerator::Label:
+ Collaboration diagram for QV4::Moth::BytecodeGenerator::Label:

Public Types

enum  LinkMode { LinkNow , LinkLater }
 

Public Member Functions

 Label ()=default
 
 Label (BytecodeGenerator *generator, LinkMode mode=LinkNow)
 
void link () const
 
bool isValid () const
 

Public Attributes

BytecodeGeneratorgenerator = nullptr
 
int index = -1
 

Detailed Description

Definition at line 47 of file qv4bytecodegenerator_p.h.

Member Enumeration Documentation

◆ LinkMode

Enumerator
LinkNow 
LinkLater 

Definition at line 48 of file qv4bytecodegenerator_p.h.

Constructor & Destructor Documentation

◆ Label() [1/2]

QV4::Moth::BytecodeGenerator::Label::Label ( )
default

◆ Label() [2/2]

QV4::Moth::BytecodeGenerator::Label::Label ( BytecodeGenerator * generator,
LinkMode mode = LinkNow )
inline

Definition at line 53 of file qv4bytecodegenerator_p.h.

References generator, link(), and LinkNow.

+ Here is the call graph for this function:

Member Function Documentation

◆ isValid()

bool QV4::Moth::BytecodeGenerator::Label::isValid ( ) const
inline

Definition at line 67 of file qv4bytecodegenerator_p.h.

References generator.

Referenced by QV4::Compiler::ControlFlow::unwindTarget().

+ Here is the caller graph for this function:

◆ link()

void QV4::Moth::BytecodeGenerator::Label::link ( ) const
inline

Member Data Documentation

◆ generator

◆ index

int QV4::Moth::BytecodeGenerator::Label::index = -1

Definition at line 70 of file qv4bytecodegenerator_p.h.

Referenced by link(), and QV4::Moth::BytecodeGenerator::Jump::link().


The documentation for this struct was generated from the following file: