eval, local variable resolution -> do not assume offset evaluations. infer evaluation mode from location info

This commit is contained in:
Ryan Fleury committed 2026-07-27 14:47:40 -07:00
1 parent 7fbea68613
commit 0c434583bc
5 files changed
+60 -34

No files matched your search

+1 -2
View File
@@ -709,8 +709,7 @@ e_oplist_from_location(Arena *arena, RDI_Parsed *rdi, RDI_Location loc)
ARCH_RegCode reg_code = arch_reg_code_from_rdi(arch, rdi_regcode);
Rng1U16 reg_rng = arch_info->reg_code_rng_table[reg_code];
U64 byte_size = (U64)dim_1u16(reg_rng);
U64 byte_pos = reg_rng.min;
e_oplist_push_op(arena, &result, RDI_EvalOp_RegRead, e_value_u64(RDI_EncodeRegReadParam(rdi_regcode, byte_size, byte_pos)));
e_oplist_push_op(arena, &result, RDI_EvalOp_RegRead, e_value_u64(RDI_EncodeRegReadParam(rdi_regcode, byte_size, 0)));
}break;
//- rjf: space offsets
+1
View File
@@ -1874,6 +1874,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, E_I
U64 ip_voff = e_base_ctx->thread_ip_voff;
{
mapped_location = rdi_location_from_location_voff(rdi, local->location, ip_voff);
mapped_bytecode_mode = E_Mode_Null;
if(mapped_location != 0)
{
got_location_block = 1;