deps: patch V8 to 13.7.152.14

Refs: https://github.com/v8/v8/compare/13.7.152.13...13.7.152.14
This commit is contained in:
Node.js GitHub Bot 2025-06-08 00:42:55 +00:00
parent 3b111eb3f5
commit 64b9a63ed1
3 changed files with 7 additions and 2 deletions

View File

@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 13
#define V8_MINOR_VERSION 7
#define V8_BUILD_NUMBER 152
#define V8_PATCH_LEVEL 13
#define V8_PATCH_LEVEL 14
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)

View File

@ -357,7 +357,8 @@ class TypeCanonicalizer {
const bool indexed = type1.has_index();
if (indexed != type2.has_index()) return false;
if (indexed) {
return EqualTypeIndex(type1.ref_index(), type2.ref_index());
return type1.is_equal_except_index(type2) &&
EqualTypeIndex(type1.ref_index(), type2.ref_index());
}
return type1 == type2;
}

View File

@ -1062,6 +1062,10 @@ class CanonicalValueType : public ValueTypeBase {
return bit_field_ == other.bit_field_;
}
constexpr bool is_equal_except_index(CanonicalValueType other) const {
return (bit_field_ & ~kIndexBits) == (other.bit_field_ & ~kIndexBits);
}
constexpr bool IsFunctionType() const {
return ref_type_kind() == RefTypeKind::kFunction;
}