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::Compiler::ControlFlowUnwindCleanup Struct Reference

#include <qv4compilercontrolflow_p.h>

+ Inheritance diagram for QV4::Compiler::ControlFlowUnwindCleanup:
+ Collaboration diagram for QV4::Compiler::ControlFlowUnwindCleanup:

Public Member Functions

 ControlFlowUnwindCleanup (Codegen *cg, std::function< void()> cleanup, Type type=Block)
 
 ~ControlFlowUnwindCleanup ()
 
bool requiresUnwind () override
 
- Public Member Functions inherited from QV4::Compiler::ControlFlowUnwind
 ControlFlowUnwind (Codegen *cg, Type type)
 
void setupUnwindHandler ()
 
void emitUnwindHandler ()
 
virtual BytecodeGenerator::ExceptionHandlerunwindHandler () override
 
- Public Member Functions inherited from QV4::Compiler::ControlFlow
 ControlFlow (Codegen *cg, Type type)
 
virtual ~ControlFlow ()
 
UnwindTarget unwindTarget (UnwindType type, const QString &label=QString())
 
virtual QString label () const
 
bool hasLoop () const
 
BytecodeGenerator::ExceptionHandlerparentUnwindHandler ()
 

Public Attributes

std::function< void()> cleanup = nullptr
 
- Public Attributes inherited from QV4::Compiler::ControlFlowUnwind
BytecodeGenerator::ExceptionHandler unwindLabel
 
- Public Attributes inherited from QV4::Compiler::ControlFlow
Codegencg
 
ControlFlowparent
 
Type type
 

Additional Inherited Members

- Public Types inherited from QV4::Compiler::ControlFlow
enum  Type {
  Loop , With , Block , Finally ,
  Catch
}
 
enum  UnwindType { Break , Continue , Return }
 
using Reference = Codegen::Reference
 
using BytecodeGenerator = Moth::BytecodeGenerator
 
using Instruction = Moth::Instruction
 
- Protected Member Functions inherited from QV4::Compiler::ControlFlow
virtual BytecodeGenerator::Label getUnwindTarget (UnwindType, const QString &=QString())
 
QString loopLabel () const
 
BytecodeGeneratorgenerator () const
 

Detailed Description

Definition at line 154 of file qv4compilercontrolflow_p.h.

Constructor & Destructor Documentation

◆ ControlFlowUnwindCleanup()

QV4::Compiler::ControlFlowUnwindCleanup::ControlFlowUnwindCleanup ( Codegen * cg,
std::function< void()> cleanup,
Type type = Block )
inline

Definition at line 158 of file qv4compilercontrolflow_p.h.

References cleanup, QV4::Compiler::ControlFlow::generator(), QV4::Moth::BytecodeGenerator::setUnwindHandler(), QV4::Compiler::ControlFlowUnwind::setupUnwindHandler(), and QV4::Compiler::ControlFlowUnwind::unwindLabel.

+ Here is the call graph for this function:

◆ ~ControlFlowUnwindCleanup()

QV4::Compiler::ControlFlowUnwindCleanup::~ControlFlowUnwindCleanup ( )
inline

Member Function Documentation

◆ requiresUnwind()

bool QV4::Compiler::ControlFlowUnwindCleanup::requiresUnwind ( )
inlineoverridevirtual

Reimplemented from QV4::Compiler::ControlFlow.

Definition at line 176 of file qv4compilercontrolflow_p.h.

References cleanup.

Member Data Documentation

◆ cleanup

std::function<void()> QV4::Compiler::ControlFlowUnwindCleanup::cleanup = nullptr

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