Removing xenia/malloc.*
Using standard memory functions now.
This commit is contained in:
@@ -25,13 +25,13 @@ IVMFunction::IVMFunction(FunctionInfo* symbol_info)
|
||||
: Function(symbol_info),
|
||||
register_count_(0),
|
||||
intcode_count_(0),
|
||||
intcodes_(0),
|
||||
intcodes_(nullptr),
|
||||
source_map_count_(0),
|
||||
source_map_(0) {}
|
||||
source_map_(nullptr) {}
|
||||
|
||||
IVMFunction::~IVMFunction() {
|
||||
xe_free(intcodes_);
|
||||
xe_free(source_map_);
|
||||
free(intcodes_);
|
||||
free(source_map_);
|
||||
}
|
||||
|
||||
void IVMFunction::Setup(TranslationContext& ctx) {
|
||||
|
||||
@@ -65,12 +65,12 @@ void IVMStack::Free(size_t register_count) {
|
||||
|
||||
IVMStack::Chunk::Chunk(size_t chunk_size)
|
||||
: prev(NULL), next(NULL), capacity(chunk_size), buffer(0), offset(0) {
|
||||
buffer = (uint8_t*)xe_malloc(capacity);
|
||||
buffer = reinterpret_cast<uint8_t*>(malloc(capacity));
|
||||
}
|
||||
|
||||
IVMStack::Chunk::~Chunk() {
|
||||
if (buffer) {
|
||||
xe_free(buffer);
|
||||
free(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user