s390x: [liftoff] fix CHECK errors for new types

Change-Id: I9241573c3644918028e2b302da2988cca0973cb8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2698089
Reviewed-by: Milad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#72792}
This commit is contained in:
Junliang Yan 2021-02-16 14:57:05 -05:00 committed by Commit Bot
parent a9f2bb0bce
commit 0c760fad05

View File

@ -1103,7 +1103,10 @@ void LiftoffAssembler::emit_cond_jump(LiftoffCondition liftoff_cond,
}
}
} else {
CHECK_EQ(type.kind(), ValueType::kI64);
CHECK(type.kind() == ValueType::kI64 || type.kind() == ValueType::kOptRef ||
type.kind() == ValueType::kRtt ||
type.kind() == ValueType::kRttWithDepth ||
type.kind() == ValueType::kRef);
if (rhs == no_reg) {
if (use_signed) {
CmpS64(lhs, Operand::Zero());