diff --git a/src/maglev/arm64/maglev-assembler-arm64-inl.h b/src/maglev/arm64/maglev-assembler-arm64-inl.h index f5d2646311a5..3172031464bb 100644 --- a/src/maglev/arm64/maglev-assembler-arm64-inl.h +++ b/src/maglev/arm64/maglev-assembler-arm64-inl.h @@ -765,7 +765,7 @@ inline void MaglevAssembler::CompareSmiAndJumpIf(Register r1, Smi value, Condition cond, Label* target, Label::Distance distance) { AssertSmi(r1); - CompareAndBranch(r1, Immediate(value), cond, target); + CompareTaggedAndBranch(r1, Immediate(value), cond, target); } inline void MaglevAssembler::TestInt32AndJumpIfAnySet(