[compiler][cleanup] Remove unnecessary MakeRef call

Bug: v8:7790
Change-Id: I7c091ad3fd5e7d9a8c4b306d8559654f3fb06868
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3168271
Commit-Queue: Georg Neis <neis@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76901}
This commit is contained in:
Georg Neis 2021-09-17 11:00:37 +02:00 committed by V8 LUCI CQ
parent b3d9ba8156
commit 62133215bc

View File

@ -1172,8 +1172,7 @@ PropertyAccessInfo AccessInfoFactory::LookupTransition(
if (descriptors_field_type->IsClass()) {
unrecorded_dependencies.push_back(
dependencies()->FieldTypeDependencyOffTheRecord(
transition_map, number,
MakeRef<Object>(broker(), descriptors_field_type)));
transition_map, number, *descriptors_field_type_ref));
// Remember the field map, and try to infer a useful type.
base::Optional<MapRef> maybe_field_map =
TryMakeRef(broker(), descriptors_field_type->AsClass());