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::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.

References nextInstructionOffset().

Here is the call graph for this function:

◆ currentInstructionOffset()

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

Definition at line 69 of file qv4bytecodehandler_p.h.

◆ decode()

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

Definition at line 32 of file qv4bytecodehandler.cpp.

◆ 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 absoluteOffset().

Here is the caller graph for this function:

◆ reset()

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

Definition at line 67 of file qv4bytecodehandler_p.h.

◆ startInstruction()

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

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