mirror of
https://github.com/libretro/Play-.git
synced 2025-01-10 18:42:53 +00:00
2ab17d0778
git-svn-id: http://svn.purei.org/purei/trunk@350 b36208d7-6611-0410-8bec-b1987f11c4a2
32 lines
806 B
C++
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
|