5#ifndef V8_TORQUE_PARAMETER_DIFFERENCE_H_
6#define V8_TORQUE_PARAMETER_DIFFERENCE_H_
19 for (
size_t i = 0;
i < to.
size(); ++
i) {
37 bool better_parameter_found =
false;
40 std::optional<const Type*> b = other.difference_[
i];
43 }
else if (a && b && a != b && (*a)->IsSubtypeOf(*b)) {
44 DCHECK(!(*b)->IsSubtypeOf(*a));
45 better_parameter_found =
true;
47 better_parameter_found =
true;
52 return better_parameter_found;
62 if (from->IsSubtypeOf(to)) {
std::vector< std::optional< const Type * > > difference_
ParameterDifference(const TypeVector &to, const TypeVector &from)
void AddParameter(const Type *to, const Type *from)
bool StrictlyBetterThan(const ParameterDifference &other) const
bool IsAssignableFrom(const Type *to, const Type *from)
std::vector< const Type * > TypeVector
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)