Hooking up code emission.

This commit is contained in:
Ben Vanik
2014-01-02 20:41:13 -08:00
parent 7969349126
commit e14d3379cb
12 changed files with 280 additions and 17 deletions

View File

@@ -18,7 +18,11 @@ namespace backend {
namespace x64 {
class X64Backend;
class X64CodeCache;
namespace lir { class LIRBuilder; }
class XbyakAllocator;
class XbyakGenerator;
class X64Emitter {
public:
@@ -27,10 +31,14 @@ public:
int Initialize();
void Reset();
int Emit(lir::LIRBuilder* builder,
void*& out_code_address, size_t& out_code_size);
private:
X64Backend* backend_;
X64Backend* backend_;
X64CodeCache* code_cache_;
XbyakAllocator* allocator_;
XbyakGenerator* generator_;
};