refactor: 引入 Arena 内存池并优化指令分发,为类型系统重构做准备

This commit is contained in:
2026-03-08 15:59:55 +08:00
parent 91e4eb734e
commit 90448006ff
13 changed files with 301 additions and 36 deletions

View File

@@ -5,8 +5,6 @@
@date 2026-02-25
*/
#pragma once
#include <Parser/Parser.hpp>
namespace Fig
@@ -37,7 +35,7 @@ namespace Fig
break;
}
}
NamedTypeExpr *namedTypeExpr = new NamedTypeExpr(path, location);
NamedTypeExpr *namedTypeExpr = arena.Allocate<NamedTypeExpr>(path, location);
return namedTypeExpr;
}