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::ByteCodeHandler Class Referenceabstract

#include <qv4bytecodehandler_p.h>

+ Inheritance diagram for QV4::Moth::ByteCodeHandler:
+ Collaboration diagram for QV4::Moth::ByteCodeHandler:

Public Member Functions

 ByteCodeHandler ()=default
 
virtual ~ByteCodeHandler ()
 
void decode (const char *code, uint len)
 
void reset ()
 
int currentInstructionOffset () const
 
int nextInstructionOffset () const
 
int absoluteOffset (int relativeOffset) const
 

Protected Types

enum  Verdict { ProcessInstruction , SkipInstruction }
 

Protected Member Functions

virtual Verdict startInstruction (Moth::Instr::Type instr)=0
 
virtual void endInstruction (Moth::Instr::Type instr)=0
 

Detailed Description

Definition at line 59 of file qv4bytecodehandler_p.h.

Member Enumeration Documentation

◆ Verdict

Enumerator
ProcessInstruction 
SkipInstruction 

Definition at line 77 of file qv4bytecodehandler_p.h.

Constructor & Destructor Documentation

◆ ByteCodeHandler()

QV4::Moth::ByteCodeHandler::ByteCodeHandler ( )
default

◆ ~ByteCodeHandler()

ByteCodeHandler::~ByteCodeHandler ( )
virtual

Definition at line 10 of file qv4bytecodehandler.cpp.

Member Function Documentation

◆ absoluteOffset()

int QV4::Moth::ByteCodeHandler::absoluteOffset ( int relativeOffset) const
inline

Definition at line 71 of file qv4bytecodehandler_p.h.

◆ currentInstructionOffset()

◆ decode()

void ByteCodeHandler::decode ( const char * code,
uint len )

◆ endInstruction()

virtual void QV4::Moth::ByteCodeHandler::endInstruction ( Moth::Instr::Type instr)
protectedpure virtual

◆ nextInstructionOffset()

int QV4::Moth::ByteCodeHandler::nextInstructionOffset ( ) const
inline

Definition at line 70 of file qv4bytecodehandler_p.h.

Referenced by QQmlJSBasicBlocks::endInstruction(), and QQmlJSCodeGenerator::generateSetInstructionPointer().

+ Here is the caller graph for this function:

◆ reset()

void QV4::Moth::ByteCodeHandler::reset ( )
inline

Definition at line 67 of file qv4bytecodehandler_p.h.

Referenced by QQmlJSBasicBlocks::run(), and QQmlJSTypePropagator::run().

+ Here is the caller graph for this function:

◆ startInstruction()

virtual Verdict QV4::Moth::ByteCodeHandler::startInstruction ( Moth::Instr::Type instr)
protectedpure virtual

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