| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5fe7800 commit 0b3fc0d
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 13 | |
| 12 | 12 | #define V8_MINOR_VERSION 7 | |
| 13 | 13 | #define V8_BUILD_NUMBER 152 | |
| 14 | - #define V8_PATCH_LEVEL 13 | ||
| 14 | + #define V8_PATCH_LEVEL 14 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -357,7 +357,8 @@ class TypeCanonicalizer { | |||
| 357 | 357 | const bool indexed = type1.has_index(); | |
| 358 | 358 | if (indexed != type2.has_index()) return false; | |
| 359 | 359 | if (indexed) { | |
| 360 | - return EqualTypeIndex(type1.ref_index(), type2.ref_index()); | ||
| 360 | + return type1.is_equal_except_index(type2) && | ||
| 361 | + EqualTypeIndex(type1.ref_index(), type2.ref_index()); | ||
| 361 | 362 | } | |
| 362 | 363 | return type1 == type2; | |
| 363 | 364 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1062,6 +1062,10 @@ class CanonicalValueType : public ValueTypeBase { | |||
| 1062 | 1062 | return bit_field_ == other.bit_field_; | |
| 1063 | 1063 | } | |
| 1064 | 1064 | ||
| 1065 | + constexpr bool is_equal_except_index(CanonicalValueType other) const { | ||
| 1066 | + return (bit_field_ & ~kIndexBits) == (other.bit_field_ & ~kIndexBits); | ||
| 1067 | + } | ||
| 1068 | + | ||
| 1065 | 1069 | constexpr bool IsFunctionType() const { | |
| 1066 | 1070 | return ref_type_kind() == RefTypeKind::kFunction; | |
| 1067 | 1071 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments