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::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, index, link(), and LinkNow.

Referenced by QV4::Moth::BytecodeGenerator::ExceptionHandler::ExceptionHandler(), QV4::Moth::BytecodeGenerator::label(), and QV4::Moth::BytecodeGenerator::newLabel().

Here is the call graph for this function:
Here is the caller 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.

◆ link()

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

Definition at line 61 of file qv4bytecodegenerator_p.h.

References QV4::Moth::BytecodeGenerator::clearLastInstruction(), generator, and index.

Referenced by Label().

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

Member Data Documentation

◆ generator

◆ index

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

Definition at line 70 of file qv4bytecodegenerator_p.h.

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


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