Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Jan 22, 2024
1 parent a2d91b4 commit 66b395b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions erts/emulator/beam/jit/arm/instr_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,24 @@ void BeamModuleAssembler::emit_update_record_in_place(const ArgWord &TupleSize,
arm::Gp untagged_src = ARG3;
emit_untag_ptr(untagged_src, src.reg);

#if 0
{
Label bad = a.newLabel(), good = a.newLabel();
a.ldr(ARG4, arm::Mem(c_p, offsetof(Process, high_water)));
a.ldr(ARG5, arm::Mem(c_p, offsetof(Process, heap)));
a.cmp(ARG4, ARG5);
a.b_lo(bad);

a.cmp(ARG4, HTOP);
a.b_ls(good);

a.bind(bad);
a.udf(42);

a.bind(good);
}
#endif

a.cmp(untagged_src, HTOP);
a.b_hs(copy);

Expand Down

0 comments on commit 66b395b

Please sign in to comment.