eval extended opcode for setting base offset - used for correct cross-module evaluations, fixes go-to-definition when thread is not in module of resolved identifier's symbol

This commit is contained in:
Ryan Fleury
2026-05-13 11:23:48 -07:00
parent 0563cd3b80
commit a1778421c9
6 changed files with 55 additions and 16 deletions
+1 -2
View File
@@ -11173,8 +11173,7 @@ rd_frame(void)
D_EntityArray all_modules = d_entity_array_from_kind(&d_user_state->ctrl_entity_store->ctx, D_EntityKind_Module);
U64 eval_modules_count = Max(1, all_modules.count);
E_Module *eval_modules = push_array(scratch.arena, E_Module, eval_modules_count);
E_Module *eval_modules_primary = &eval_modules[0];
eval_modules_primary->vaddr_range = r1u64(0, max_U64);
E_Module *eval_modules_primary = &e_module_nil;
ProfScope("produce all eval modules")
{
for EachIndex(eval_module_idx, all_modules.count)