Removing win32 code from X64CodeCache.

Fixes #349.
This commit is contained in:
Ben Vanik
2015-07-19 10:33:00 -07:00
parent edfa3f3fc0
commit 352bae30cb
5 changed files with 326 additions and 228 deletions

View File

@@ -42,7 +42,6 @@ X64Backend::~X64Backend() {
processor()->memory()->SystemHeapFree(emitter_data_);
emitter_data_ = 0;
}
delete code_cache_;
}
bool X64Backend::Initialize() {
@@ -70,8 +69,8 @@ bool X64Backend::Initialize() {
X64Emitter::XMM_COUNT,
};
code_cache_ = new X64CodeCache();
Backend::code_cache_ = code_cache_;
code_cache_ = X64CodeCache::Create();
Backend::code_cache_ = code_cache_.get();
if (!code_cache_->Initialize()) {
return false;
}