Replace heap for string builders, not sure why they were heap based

This commit is contained in:
Krzosa Karol
2022-09-30 12:27:08 +02:00
parent 91b7b8090f
commit 35c395caf9

View File

@@ -83,9 +83,9 @@ parse_init(Parse_Ctx *ctx, Arena *perm_allocator, Allocator *heap_allocator){
pctx = ctx; pctx = ctx;
ctx->perm = perm_allocator; ctx->perm = perm_allocator;
ctx->heap = heap_allocator; ctx->heap = heap_allocator;
ctx->gen = {ctx->heap};
ctx->type_map = {ctx->heap}; ctx->type_map = {ctx->heap};
ctx->helper_builder= {ctx->heap}; ctx->gen = {ctx->perm};
ctx->helper_builder= {ctx->perm};
ctx->scope_ids = 1; ctx->scope_ids = 1;
bigint_allocator = ctx->perm; bigint_allocator = ctx->perm;
arena_init(&ctx->stage_arena, "Compiler stage arena"_s); arena_init(&ctx->stage_arena, "Compiler stage arena"_s);