Play-/Source/BasicBlock.h
jpd002 2ab17d0778 Added block linking to the executor.
git-svn-id: http://svn.purei.org/purei/trunk@350 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-06-30 18:58:04 +00:00

32 lines
806 B
C++

#ifndef _BASICBLOCK_H_
#define _BASICBLOCK_H_
#include "MIPS.h"
class CBasicBlock
{
public:
CBasicBlock(CMIPS&, uint32, uint32);
virtual ~CBasicBlock();
unsigned int Execute();
void Compile();
uint32 GetBeginAddress() const;
uint32 GetEndAddress() const;
bool IsCompiled() const;
unsigned int GetSelfLoopCount() const;
void SetSelfLoopCount(unsigned int);
CBasicBlock* GetBranchHint() const;
void SetBranchHint(CBasicBlock*);
private:
uint8* m_text;
uint32 m_begin;
uint32 m_end;
CMIPS& m_context;
CBasicBlock* m_branchHint;
unsigned int m_selfLoopCount;
};
#endif