Adding mmap for code cache and exposing cache properties.

This commit is contained in:
Ben Vanik
2015-06-16 20:13:39 -07:00
parent c34db170f5
commit 5f33087a12
8 changed files with 80 additions and 13 deletions

View File

@@ -25,6 +25,7 @@ namespace cpu {
namespace backend {
class Assembler;
class CodeCache;
class Backend {
public:
@@ -33,6 +34,7 @@ class Backend {
Processor* processor() const { return processor_; }
const MachineInfo* machine_info() const { return &machine_info_; }
CodeCache* code_cache() const { return code_cache_; }
virtual bool Initialize();
@@ -47,6 +49,7 @@ class Backend {
protected:
Processor* processor_;
MachineInfo machine_info_;
CodeCache* code_cache_;
};
} // namespace backend