Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alveus:redsafe
nodejs-electron
v8-instance-type-inl-constexpr-used-before-its-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File v8-instance-type-inl-constexpr-used-before-its-definition.patch of Package nodejs-electron
--- src/v8/src/objects/instance-type-inl.h.orig 2024-02-21 13:34:15.959879700 +0000 +++ src/v8/src/objects/instance-type-inl.h 2024-02-25 13:47:34.748156000 +0000 @@ -71,7 +71,9 @@ constexpr bool kHasUniqueMapOfInstanceTy template <InstanceType type> constexpr RootIndex kUniqueMapOfInstanceType = - UniqueMapOfInstanceType(type).value_or(RootIndex::kRootListLength); + kHasUniqueMapOfInstanceType<type>? + *UniqueMapOfInstanceType(type): + RootIndex::kRootListLength; // Manually curated list of instance type ranges which are associated with a // unique range of map addresses on the read only heap. Both ranges are @@ -129,14 +131,17 @@ UniqueMapRangeOfInstanceTypeRange(Instan return {}; } +constexpr inline TaggedAddressRange NULL_ADDRESS_RANGE{kNullAddress, kNullAddress}; + template <InstanceType first, InstanceType last> constexpr bool kHasUniqueMapRangeOfInstanceTypeRange = UniqueMapRangeOfInstanceTypeRange(first, last).has_value(); template <InstanceType first, InstanceType last> constexpr TaggedAddressRange kUniqueMapRangeOfInstanceTypeRange = - UniqueMapRangeOfInstanceTypeRange(first, last) - .value_or(TaggedAddressRange(kNullAddress, kNullAddress)); + kHasUniqueMapRangeOfInstanceTypeRange<first, last>? + *UniqueMapRangeOfInstanceTypeRange(first, last): + NULL_ADDRESS_RANGE; inline constexpr base::Optional<TaggedAddressRange> UniqueMapRangeOfInstanceType(InstanceType type) { @@ -149,8 +154,9 @@ constexpr bool kHasUniqueMapRangeOfInsta template <InstanceType type> constexpr TaggedAddressRange kUniqueMapRangeOfInstanceType = - UniqueMapRangeOfInstanceType(type).value_or( - TaggedAddressRange(kNullAddress, kNullAddress)); + kHasUniqueMapRangeOfInstanceType<type>? + *UniqueMapRangeOfInstanceType(type): + NULL_ADDRESS_RANGE; inline bool MayHaveMapCheckFastCase(InstanceType type) { if (UniqueMapOfInstanceType(type)) return true;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor