Much better allocation strategy with new ncore arenas. Add more builtin node gen stuff. It's kind of wonky.
This commit is contained in:
@@ -572,6 +572,8 @@ lex :: (result : *Compile_Result) {
|
||||
|
||||
lexer : Lexer;
|
||||
lexer.result = result;
|
||||
lexer.result.tokens.allocator = result.allocator;
|
||||
array_reserve(*lexer.result.tokens, 1024 * 1024);
|
||||
|
||||
init_lexer_from_string(*lexer, result.file.source);
|
||||
lexer.path = result.file.path;
|
||||
|
||||
Reference in New Issue
Block a user