The virtual machine running in local. More...
#include <LocalVirtualMachine.h>
Public Member Functions | |
virtual bool | clearBreakpoint (unsigned line) |
virtual void | clearBreakpoints () |
virtual bool | connect () |
void | emitArrayAccessOutOfBounds (unsigned short pc, unsigned short sp, unsigned short index) |
void | emitDivisionByZero (unsigned short pc, unsigned short sp) |
void | emitEvent (unsigned short id, unsigned short start, unsigned short length) |
virtual const TargetDescription *const | getConstDescription () |
virtual TargetDescription * | getDescription () |
LocalVirtualMachine () | |
Constructor, build an initial description. | |
virtual void | next () |
virtual void | runBackground () |
virtual void | runStepSwitch () |
virtual bool | setBreakpoint (unsigned line) |
virtual void | setupEvent (unsigned id) |
virtual void | sizesChanged () |
virtual void | stop () |
virtual void | uploadBytecode (const BytecodeVector &bytecode) |
Protected Member Functions | |
void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
BytecodeVector | debugBytecode |
bytecode with debug information | |
TargetDescription | description |
description of the virtual machine, can be modified by GUI | |
bool | runEvent |
when true, mode is run, otherwise step by step | |
std::valarray< uint16 > | vmBytecode |
bytecodes content | |
std::valarray< sint16 > | vmStack |
stack content | |
AsebaVMState | vmState |
state of virtual machine | |
std::valarray< sint16 > | vmVariables |
variables content |
The virtual machine running in local.
Definition at line 34 of file LocalVirtualMachine.h.
Aseba::LocalVirtualMachine::LocalVirtualMachine | ( | ) |
Constructor, build an initial description.
Definition at line 85 of file LocalVirtualMachine.cpp.
bool Aseba::LocalVirtualMachine::clearBreakpoint | ( | unsigned | line | ) | [virtual] |
Definition at line 201 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::clearBreakpoints | ( | ) | [virtual] |
Definition at line 209 of file LocalVirtualMachine.cpp.
virtual bool Aseba::LocalVirtualMachine::connect | ( | ) | [inline, virtual] |
Definition at line 40 of file LocalVirtualMachine.h.
void Aseba::LocalVirtualMachine::emitArrayAccessOutOfBounds | ( | unsigned short | pc, | |
unsigned short | sp, | |||
unsigned short | index | |||
) |
Definition at line 259 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::emitDivisionByZero | ( | unsigned short | pc, | |
unsigned short | sp | |||
) |
Definition at line 271 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::emitEvent | ( | unsigned short | id, | |
unsigned short | start, | |||
unsigned short | length | |||
) |
Definition at line 253 of file LocalVirtualMachine.cpp.
virtual const TargetDescription* const Aseba::LocalVirtualMachine::getConstDescription | ( | ) | [inline, virtual] |
Definition at line 42 of file LocalVirtualMachine.h.
virtual TargetDescription* Aseba::LocalVirtualMachine::getDescription | ( | ) | [inline, virtual] |
Definition at line 43 of file LocalVirtualMachine.h.
void Aseba::LocalVirtualMachine::next | ( | ) | [virtual] |
Definition at line 144 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::runBackground | ( | ) | [virtual] |
Definition at line 179 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::runStepSwitch | ( | ) | [virtual] |
Definition at line 167 of file LocalVirtualMachine.cpp.
bool Aseba::LocalVirtualMachine::setBreakpoint | ( | unsigned | line | ) | [virtual] |
Definition at line 193 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::setupEvent | ( | unsigned | id | ) | [virtual] |
Definition at line 129 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::sizesChanged | ( | ) | [virtual] |
Definition at line 101 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::stop | ( | ) | [virtual] |
Definition at line 186 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::timerEvent | ( | QTimerEvent * | event | ) | [protected] |
Definition at line 214 of file LocalVirtualMachine.cpp.
void Aseba::LocalVirtualMachine::uploadBytecode | ( | const BytecodeVector & | bytecode | ) | [virtual] |
Definition at line 120 of file LocalVirtualMachine.cpp.
bytecode with debug information
Definition at line 75 of file LocalVirtualMachine.h.
description of the virtual machine, can be modified by GUI
Definition at line 69 of file LocalVirtualMachine.h.
bool Aseba::LocalVirtualMachine::runEvent [protected] |
when true, mode is run, otherwise step by step
Definition at line 70 of file LocalVirtualMachine.h.
std::valarray<uint16> Aseba::LocalVirtualMachine::vmBytecode [protected] |
bytecodes content
Definition at line 72 of file LocalVirtualMachine.h.
std::valarray<sint16> Aseba::LocalVirtualMachine::vmStack [protected] |
stack content
Definition at line 74 of file LocalVirtualMachine.h.
AsebaVMState Aseba::LocalVirtualMachine::vmState [protected] |
state of virtual machine
Definition at line 71 of file LocalVirtualMachine.h.
std::valarray<sint16> Aseba::LocalVirtualMachine::vmVariables [protected] |
variables content
Definition at line 73 of file LocalVirtualMachine.h.