Commit 9c14b8dc authored by Liu Yu's avatar Liu Yu Committed by Commit Bot

[mips][wasm] Rename more "type" to "kind"

Port: 52cc7ba9

Bug: v8:11477
Change-Id: Ic4d518ae85b80077963b5034a3ac63c3bd2f152a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2725672
Auto-Submit: Liu yu <liuyu@loongson.cn>
Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#73085}
parent 5dce53b2
......@@ -375,7 +375,7 @@ int LiftoffAssembler::SlotSizeForType(ValueKind kind) {
}
bool LiftoffAssembler::NeedsAlignment(ValueKind kind) {
return kind == kS128 || is_reference_type(kind);
return kind == kS128 || is_reference(kind);
}
void LiftoffAssembler::LoadConstant(LiftoffRegister reg, WasmValue value,
......@@ -1517,9 +1517,8 @@ void LiftoffAssembler::emit_cond_jump(LiftoffCondition liftoff_cond,
DCHECK_EQ(kind, kI32);
TurboAssembler::Branch(label, cond, lhs, Operand(zero_reg));
} else {
DCHECK(kind == kI32 ||
(is_reference_type(kind) &&
(liftoff_cond == kEqual || liftoff_cond == kUnequal)));
DCHECK(kind == kI32 || (is_reference(kind) && (liftoff_cond == kEqual ||
liftoff_cond == kUnequal)));
TurboAssembler::Branch(label, cond, lhs, Operand(rhs));
}
}
......
......@@ -362,7 +362,7 @@ int LiftoffAssembler::SlotSizeForType(ValueKind kind) {
}
bool LiftoffAssembler::NeedsAlignment(ValueKind kind) {
return kind == kS128 || is_reference_type(kind);
return kind == kS128 || is_reference(kind);
}
void LiftoffAssembler::LoadConstant(LiftoffRegister reg, WasmValue value,
......@@ -1372,7 +1372,7 @@ void LiftoffAssembler::emit_cond_jump(LiftoffCondition liftoff_cond,
TurboAssembler::Branch(label, cond, lhs, Operand(zero_reg));
} else {
DCHECK((kind == kI32 || kind == kI64) ||
(is_reference_type(kind) &&
(is_reference(kind) &&
(liftoff_cond == kEqual || liftoff_cond == kUnequal)));
TurboAssembler::Branch(label, cond, lhs, Operand(rhs));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment