#include "OpcodeInfo.h" //---------------------------------------------------------------------------------------------------------------------- // Constructors //---------------------------------------------------------------------------------------------------------------------- OpcodeInfo::OpcodeInfo() :_valid(false), _opcodeSize(0), _isCountedLoop(false), _countedLoopEndLocation(0) { } //---------------------------------------------------------------------------------------------------------------------- // Interface version functions //---------------------------------------------------------------------------------------------------------------------- unsigned int OpcodeInfo::GetIOpcodeInfoVersion() const { return ThisIOpcodeInfoVersion(); } //---------------------------------------------------------------------------------------------------------------------- // Opcode info functions //---------------------------------------------------------------------------------------------------------------------- bool OpcodeInfo::GetIsValidOpcode() const { return _valid; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetIsValidOpcode(bool state) { _valid = state; } //---------------------------------------------------------------------------------------------------------------------- unsigned int OpcodeInfo::GetOpcodeSize() const { return _opcodeSize; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetOpcodeSize(unsigned int state) { _opcodeSize = state; } //---------------------------------------------------------------------------------------------------------------------- Marshal::Ret OpcodeInfo::GetOpcodeNameDisassembly() const { return _disassemblyOpcode; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetOpcodeNameDisassembly(const Marshal::In& state) { _disassemblyOpcode = state; } //---------------------------------------------------------------------------------------------------------------------- Marshal::Ret OpcodeInfo::GetOpcodeArgumentsDisassembly() const { return _disassemblyArguments; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetOpcodeArgumentsDisassembly(const Marshal::In& state) { _disassemblyArguments = state; } //---------------------------------------------------------------------------------------------------------------------- Marshal::Ret OpcodeInfo::GetDisassemblyComment() const { return _disassemblyComment; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetDisassemblyComment(const Marshal::In& state) { _disassemblyComment = state; } //---------------------------------------------------------------------------------------------------------------------- Marshal::Ret> OpcodeInfo::GetLabelTargetLocations() const { return _labelTargetLocations; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetLabelTargetLocations(const Marshal::In>& state) { _labelTargetLocations = state; } //---------------------------------------------------------------------------------------------------------------------- Marshal::Ret> OpcodeInfo::GetResultantPCLocations() const { return _resultantPCLocations; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetResultantPCLocations(const Marshal::In>& state) { _resultantPCLocations = state; } //---------------------------------------------------------------------------------------------------------------------- bool OpcodeInfo::GetHasUndeterminedResultantPCLocation() const { return _undeterminedResultantPCLocation; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetHasUndeterminedResultantPCLocation(bool state) { _undeterminedResultantPCLocation = state; } //---------------------------------------------------------------------------------------------------------------------- bool OpcodeInfo::GetOpcodeIsCountedLoop() const { return _isCountedLoop; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetOpcodeIsCountedLoop(bool state) { _isCountedLoop = state; } //---------------------------------------------------------------------------------------------------------------------- unsigned int OpcodeInfo::GetOpcodeCountedLoopEndLocation() const { return _countedLoopEndLocation; } //---------------------------------------------------------------------------------------------------------------------- void OpcodeInfo::SetOpcodeCountedLoopEndLocation(unsigned int state) { _countedLoopEndLocation = state; }