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::ControlFlowFinally Struct Reference

#include <qv4compilercontrolflow_p.h>

Inheritance diagram for QV4::Compiler::ControlFlowFinally:
Collaboration diagram for QV4::Compiler::ControlFlowFinally:

Classes

struct  Completion

Public Member Functions

 ControlFlowFinally (Codegen *cg, QQmlJS::AST::Finally *finally, bool hasCatchBlock)
virtual bool requiresUnwind () override
bool interceptUnwind (UnwindType typetype, const QString &labellabel, int levellevel, UnwindTarget *targettarget) override
BytecodeGenerator::ExceptionHandler * unwindHandler () override
 ~ControlFlowFinally ()
Public Member Functions inherited from QV4::Compiler::ControlFlowUnwind
 ControlFlowUnwind (Codegen *cg, Type typetype)
void setupUnwindHandler ()
void emitUnwindHandler ()
Public Member Functions inherited from QV4::Compiler::ControlFlow
 ControlFlow (Codegen *cg, Type typetype)
virtual ~ControlFlow ()
UnwindTarget unwindTarget (UnwindType typetype, const QString &labellabel=QString())
void unwind (const UnwindTarget &targettarget)
virtual QString label () const
bool hasLoop () const
BytecodeGenerator::ExceptionHandler * parentUnwindHandler ()

Public Attributes

QQmlJS::AST::Finally * finally
bool insideFinally = false
int completionRegister
QVarLengthArray< Completion, 4 > completions
Public Attributes inherited from QV4::Compiler::ControlFlowUnwind
BytecodeGenerator::ExceptionHandler unwindLabel
Public Attributes inherited from QV4::Compiler::ControlFlow
Codegen * cg
ControlFlow * parent
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
BytecodeGenerator * generator () const

Detailed Description

Definition at line 361 of file qv4compilercontrolflow_p.h.

Constructor & Destructor Documentation

◆ ControlFlowFinally()

QV4::Compiler::ControlFlowFinally::ControlFlowFinally ( Codegen * cg,
QQmlJS::AST::Finally * finally,
bool hasCatchBlock )
inline

Definition at line 378 of file qv4compilercontrolflow_p.h.

References ControlFlowFinally(), completionRegister, QV4::Compiler::ControlFlow::Finally, and QV4::Compiler::ControlFlowUnwind::setupUnwindHandler().

Referenced by ControlFlowFinally().

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

◆ ~ControlFlowFinally()

QV4::Compiler::ControlFlowFinally::~ControlFlowFinally ( )
inline

Definition at line 424 of file qv4compilercontrolflow_p.h.

References QV4::Compiler::ControlFlowUnwind::emitUnwindHandler(), and insideFinally.

Here is the call graph for this function:

Member Function Documentation

◆ interceptUnwind()

bool QV4::Compiler::ControlFlowFinally::interceptUnwind ( UnwindType type,
const QString & label,
int level,
UnwindTarget * target )
inlineoverridevirtual

◆ requiresUnwind()

virtual bool QV4::Compiler::ControlFlowFinally::requiresUnwind ( )
inlineoverridevirtual

Reimplemented from QV4::Compiler::ControlFlow.

Definition at line 394 of file qv4compilercontrolflow_p.h.

References insideFinally.

◆ unwindHandler()

BytecodeGenerator::ExceptionHandler * QV4::Compiler::ControlFlowFinally::unwindHandler ( )
inlineoverridevirtual

Reimplemented from QV4::Compiler::ControlFlowUnwind.

Definition at line 420 of file qv4compilercontrolflow_p.h.

Member Data Documentation

◆ completionRegister

int QV4::Compiler::ControlFlowFinally::completionRegister

Definition at line 375 of file qv4compilercontrolflow_p.h.

Referenced by ControlFlowFinally(), and interceptUnwind().

◆ completions

QVarLengthArray<Completion, 4> QV4::Compiler::ControlFlowFinally::completions

Definition at line 376 of file qv4compilercontrolflow_p.h.

◆ finally

QQmlJS::AST::Finally* QV4::Compiler::ControlFlowFinally::finally

Definition at line 373 of file qv4compilercontrolflow_p.h.

◆ insideFinally

bool QV4::Compiler::ControlFlowFinally::insideFinally = false

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