Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Jan 18, 2024
1 parent a32b926 commit 1162b4a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions erts/emulator/beam/jit/x86/instr_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,17 +1142,15 @@ void BeamModuleAssembler::emit_is_list(const ArgLabel &Fail,
const ArgSource &Src) {
Label next = a.newLabel();

mov_arg(RET, Src);
preserve_cache(
[&]() {
mov_arg(RET, Src);

a.cmp(RET, imm(NIL));
a.short_().je(next);
a.test(RETb, imm(_TAG_PRIMARY_MASK - TAG_PRIMARY_LIST));
a.jne(resolve_beam_label(Fail));
a.bind(next);
},
{RET});
});
emit_is_cons(resolve_beam_label(Fail), RET);

a.bind(next);
}

void BeamModuleAssembler::emit_is_map(const ArgLabel &Fail,
Expand Down

0 comments on commit 1162b4a

Please sign in to comment.