block_of_code: Rename alloc to AllocateFromCodeSpace

This commit is contained in:
MerryMage 2016-12-16 20:48:08 +00:00
parent 96e46ba6b5
commit 74a95ea51e
3 changed files with 10 additions and 6 deletions

View file

@ -141,7 +141,7 @@ void BlockOfCode::GenMemoryAccessors() {
CallFunction(cb.MemoryRead32);
ABI_PopCallerSaveRegistersAndAdjustStack(this);
ret();
align();
read_memory_64 = getCurr<const void*>();
ABI_PushCallerSaveRegistersAndAdjustStack(this);
@ -227,7 +227,7 @@ void BlockOfCode::nop(size_t size) {
}
}
void* BlockOfCode::alloc(size_t alloc_size) {
void* BlockOfCode::AllocateFromCodeSpace(size_t alloc_size) {
if (size_ + alloc_size >= maxSize_) {
throw Xbyak::Error(Xbyak::ERR_CODE_IS_TOO_BIG);
}