Integrated with newest TracingHeap, refactoring for functions
This commit is contained in:
parent
dfd2f81f3d
commit
702bb6f850
5 changed files with 67 additions and 52 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "builtin-functions.h"
|
||||
#include "object-type.h"
|
||||
#include "error-message.h"
|
||||
#include "heap.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdalign.h>
|
||||
|
@ -306,7 +307,7 @@ int Interpreter_GetParenthesizedRange(Interpreter* self, CallFrame* top_frame, s
|
|||
Object* _Interpreter_MakeObject(Interpreter* self, ObjectType* otype)
|
||||
{
|
||||
size_t object_size = Object_AllocationSizeForType(otype);
|
||||
Object* new_object = TracingHeap_Allocate(&self->heap, object_size);
|
||||
Object* new_object = TracingHeap_Allocate(&self->heap, object_size, HEAPDATAKIND_OBJECT);
|
||||
|
||||
return new_object;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue