[turbofan] Add a comment

R=jarin@chromium.org

Change-Id: I82a8173bb3ecd86d980ccb5169c4bedac49989f8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1561071
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60742}
This commit is contained in:
Georg Neis 2019-04-10 13:12:45 +02:00 committed by Commit Bot
parent 565bf1308c
commit 770c18cd29

View File

@ -1844,6 +1844,8 @@ Reduction JSNativeContextSpecialization::ReduceKeyedAccess(
}
// Try to lower element access based on the {receiver_maps}.
// Only do so if the feedback is not megamorphic so that we can learn
// something when the ReduceElementAccess code deopts.
if (nexus.GetKeyType() == ELEMENT && nexus.ic_state() != MEGAMORPHIC) {
return ReduceElementAccess(node, key, value, nexus, receiver_maps,
access_mode, load_mode, store_mode);