promote register values to primary module space values for memory view specifically

This commit is contained in:
Ryan Fleury
2025-10-07 15:06:46 -07:00
parent f67cf8b59d
commit 2cc7f45ec1
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -2600,8 +2600,8 @@ e_append_oplist_from_irtree(Arena *arena, E_IRNode *root, E_Space *current_space
U32 op = root->op;
{
E_Space zero_space = zero_struct;
if(!MemoryMatchStruct(&root->space, &zero_space) &&
!MemoryMatchStruct(&root->space, current_space))
if(!e_space_match(root->space, zero_space) &&
!e_space_match(root->space, *current_space))
{
*current_space = root->space;
e_oplist_push_set_space(arena, out, root->space);
+5
View File
@@ -2604,6 +2604,11 @@ RD_VIEW_UI_FUNCTION_DEF(memory)
Vec4F32 main_tx_color_rgba = ui_color_from_name(str8_lit("text"));
Vec4F32 main_tx_color_hsva = hsva_from_rgba(main_tx_color_rgba);
F32 main_font_size = ui_bottom_font_size();
if(e_space_match(eval.space, e_base_ctx->thread_reg_space))
{
eval = e_value_eval_from_eval(eval);
eval.space = e_base_ctx->primary_module->space;
}
Rng1U64 view_range = rd_space_range_from_eval(eval);
if(eval.space.kind == 0)
{