| Index: src/compiler/access-info.cc
|
| diff --git a/src/compiler/access-info.cc b/src/compiler/access-info.cc
|
| index e41a5ffe04baf6c4391c9f52c073217bcfc71173..49f605b765186fd890bf024041d94d178564e640 100644
|
| --- a/src/compiler/access-info.cc
|
| +++ b/src/compiler/access-info.cc
|
| @@ -373,6 +373,17 @@ bool AccessInfoFactory::ComputePropertyAccessInfo(
|
| }
|
| if (V8_UNLIKELY(FLAG_runtime_stats)) return false;
|
| }
|
| + if (access_mode == AccessMode::kLoad) {
|
| + Handle<Name> cached_property_name;
|
| + if (FunctionTemplateInfo::TryGetCachedPropertyName(isolate(),
|
| + accessor)
|
| + .ToHandle(&cached_property_name)) {
|
| + if (ComputePropertyAccessInfo(map, cached_property_name,
|
| + access_mode, access_info)) {
|
| + return true;
|
| + }
|
| + }
|
| + }
|
| *access_info = PropertyAccessInfo::AccessorConstant(
|
| MapList{receiver_map}, accessor, holder);
|
| return true;
|
|
|