Integrated with newest TracingHeap, refactoring for functions

This commit is contained in:
vegowotenks 2025-01-12 17:40:09 +01:00
parent dfd2f81f3d
commit 702bb6f850
5 changed files with 67 additions and 52 deletions

View file

@ -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;
}