[static-roots] Enable instance type to static map mapping
The conversion was accidentially disabled by a trailing backslash. Bug: v8:13466 Change-Id: I0e1d162afff3bb9d22ac17a98b0b4ffde51a5ca2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4224465 Reviewed-by: Jakob Linke <jgruber@chromium.org> Commit-Queue: Olivier Flückiger <olivf@chromium.org> Cr-Commit-Position: refs/heads/main@{#85706}
This commit is contained in:
parent
455d38ff8d
commit
f6d4329be7
@ -52,16 +52,13 @@ UNIQUE_INSTANCE_TYPE_MAP_LIST_GENERATOR(INSTANCE_TYPE_MAP, _)
|
||||
|
||||
inline constexpr base::Optional<RootIndex> UniqueMapOfInstanceType(
|
||||
InstanceType type) {
|
||||
switch (type) {
|
||||
#define INSTANCE_TYPE_CHECK(it, forinstancetype) \
|
||||
case forinstancetype: \
|
||||
if (type == forinstancetype) { \
|
||||
return InstanceTypeChecker::UniqueMapOfInstanceType< \
|
||||
InstanceTypeChecker::InstanceTypeTraits::it>(); \
|
||||
INSTANCE_TYPE_CHECKERS_SINGLE(INSTANCE_TYPE_CHECK);
|
||||
#undef INSTANCE_TYPE_CHECK
|
||||
default: {
|
||||
}
|
||||
}
|
||||
INSTANCE_TYPE_CHECKERS_SINGLE(INSTANCE_TYPE_CHECK);
|
||||
#undef INSTANCE_TYPE_CHECK
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user