CACAO
|
Public Types | |
typedef std::pair< const MachineInstruction *, CodeFragment > | ResolvePointTy |
Public Member Functions | |
CodeMemory () | |
constructor More... | |
const CodeSegment & | get_CodeSegment () const |
get CodeSegment More... | |
CodeSegment & | get_CodeSegment () |
get CodeSegment More... | |
const DataSegment & | get_DataSegment () const |
get DataSegment More... | |
DataSegment & | get_DataSegment () |
get DataSegment More... | |
s4 | get_offset (CodeSegment::IdxTy to, CodeSegment::IdxTy from) const |
s4 | get_offset (CodeSegment::IdxTy to, CodeFragment &CF) const |
s4 | get_offset (CodeSegment::IdxTy to) const |
s4 | get_offset (DataSegment::IdxTy to, CodeSegment::IdxTy from) const |
s4 | get_offset (DataSegment::IdxTy to, CodeFragment &CF) const |
void | require_linking (const MachineInstruction *, CodeFragment CF) |
Add a MachineInstruction that require linking. More... | |
void | link () |
Link instructions. More... | |
CodeFragment | get_CodeFragment (std::size_t size) |
get a code fragment More... | |
CodeFragment | get_aligned_CodeFragment (std::size_t size) |
get an aligned code fragment More... | |
Private Types | |
typedef alloc::list < ResolvePointTy >::type | LinkListTy |
Private Attributes | |
LinkListTy | linklist |
instructions that require linking More... | |
CodeSegment | cseg |
code segment More... | |
DataSegment | dseg |
data segment More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (std::size_t size) throw (std::bad_alloc) |
normal new More... | |
static void * | operator new (std::size_t size, void *ptr) throw () |
placement new More... | |
static void * | operator new (std::size_t size, const std::nothrow_t &nt) throw () |
nothrow new More... | |
static void | operator delete (void *pMemory) throw () |
normal delete More... | |
static void | operator delete (void *pMemory, void *ptr) throw () |
placement delete More... | |
static void | operator delete (void *pMemory, const std::nothrow_t &) throw () |
nothrow delete More... | |
static void * | operator new[] (std::size_t size) throw (std::bad_alloc) |
normal new[] More... | |
static void * | operator new[] (std::size_t size, void *ptr) throw () |
placement new[] More... | |
static void * | operator new[] (std::size_t size, const std::nothrow_t &nt) throw () |
nothrow new[] More... | |
static void | operator delete[] (void *pMemory) throw () |
normal delete[] More... | |
static void | operator delete[] (void *pMemory, void *ptr) throw () |
placement delete[] More... | |
static void | operator delete[] (void *pMemory, const std::nothrow_t &) throw () |
nothrow delete[] More... | |
Definition at line 49 of file CodeMemory.hpp.
|
private |
Definition at line 53 of file CodeMemory.hpp.
typedef std::pair<const MachineInstruction*,CodeFragment> cacao::jit::compiler2::CodeMemory::ResolvePointTy |
Definition at line 51 of file CodeMemory.hpp.
|
inline |
constructor
Definition at line 62 of file CodeMemory.hpp.
CodeFragment cacao::jit::compiler2::CodeMemory::get_aligned_CodeFragment | ( | std::size_t | size | ) |
get an aligned code fragment
Definition at line 83 of file CodeMemory.cpp.
CodeFragment cacao::jit::compiler2::CodeMemory::get_CodeFragment | ( | std::size_t | size | ) |
get a code fragment
Definition at line 79 of file CodeMemory.cpp.
|
inline |
get CodeSegment
Definition at line 65 of file CodeMemory.hpp.
|
inline |
get CodeSegment
Definition at line 67 of file CodeMemory.hpp.
|
inline |
get DataSegment
Definition at line 69 of file CodeMemory.hpp.
|
inline |
get DataSegment
Definition at line 71 of file CodeMemory.hpp.
s4 cacao::jit::compiler2::CodeMemory::get_offset | ( | CodeSegment::IdxTy | to, |
CodeSegment::IdxTy | from | ||
) | const |
Definition at line 43 of file CodeMemory.cpp.
|
inline |
Definition at line 74 of file CodeMemory.hpp.
|
inline |
Definition at line 77 of file CodeMemory.hpp.
s4 cacao::jit::compiler2::CodeMemory::get_offset | ( | DataSegment::IdxTy | to, |
CodeSegment::IdxTy | from | ||
) | const |
Definition at line 48 of file CodeMemory.cpp.
|
inline |
Definition at line 84 of file CodeMemory.hpp.
void cacao::jit::compiler2::CodeMemory::link | ( | ) |
Link instructions.
Definition at line 75 of file CodeMemory.cpp.
void cacao::jit::compiler2::CodeMemory::require_linking | ( | const MachineInstruction * | MI, |
CodeFragment | CF | ||
) |
Add a MachineInstruction that require linking.
Definition at line 56 of file CodeMemory.cpp.
|
private |
code segment
Definition at line 57 of file CodeMemory.hpp.
|
private |
data segment
Definition at line 58 of file CodeMemory.hpp.
|
private |
instructions that require linking
Definition at line 55 of file CodeMemory.hpp.