attempt to remove redundent memory allocations

This commit is contained in:
William Bell
2025-11-08 04:29:09 +00:00
parent 3e3df5595e
commit bfaf8df0d0
8 changed files with 34 additions and 19 deletions

View File

@@ -826,9 +826,9 @@ static inline void load_variable(Translated *translated, RuntimeState *state,
return;
}
RuntimeState init_runtime_state(Translated translated, char *path) {
RuntimeState init_runtime_state(Translated translated, char *path, ArgonObject * registers[UINT8_MAX]) {
RuntimeState runtime = {
ar_alloc(translated.registerCount * sizeof(ArgonObject *)),
registers,
0,
path,
NULL,