Skip to content

Commit

Permalink
Add emit_ptr_val
Browse files Browse the repository at this point in the history
  • Loading branch information
ziopio committed Jan 27, 2025
1 parent 5f84fe3 commit 83b6c88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 6 additions & 2 deletions erts/emulator/beam/jit/arm/32/beam_asm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,14 @@ struct BeamAssembler : public BeamAssemblerCommon {
}

a32::Gp emit_ptr_val(a32::Gp Dst, a32::Gp Src) {
a32::Gp r;
#if !defined(TAG_LITERAL_PTR)
return Src;
#else
// TODO
// TAG_LITERAL_PTR is undefined in ARCH_32 and may be not needed
ASSERT(false);
return r;
return Dst;
#endif
}

void emit_untag_ptr(a32::Gp Dst, a32::Gp Src) {
Expand Down
5 changes: 1 addition & 4 deletions erts/emulator/beam/jit/arm/32/instr_fun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ void BeamGlobalAssembler::emit_apply_fun_shared() {
a.tst(ARG1, imm(1)),
a.b_ne(malformed_list),

// TODO
ASSERT(false);

//emit_ptr_val(ARG1, ARG1);
emit_ptr_val(ARG1, ARG1);
//a.sub(ARG1, ARG1, imm(TAG_PRIMARY_LIST));
//a.ldp(TMP3, ARG1, arm::Mem(ARG1));
//a.str(TMP3, arm::Mem(TMP2).post(sizeof(Eterm)));
Expand Down

0 comments on commit 83b6c88

Please sign in to comment.