[maglev] Fix VisitLdaImmutableContextSlot

It should delegate to VisitLdaContextSlot.

Bug: v8:7700
Change-Id: I1591594648cfb038abccabb46a20c1b0c23b07a6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3602512
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80117}
This commit is contained in:
Leszek Swirski 2022-04-22 16:24:09 +02:00 committed by V8 LUCI CQ
parent 97e86869ba
commit 9ad39743d0

View File

@ -311,7 +311,7 @@ void MaglevGraphBuilder::VisitLdaContextSlot() {
}
void MaglevGraphBuilder::VisitLdaImmutableContextSlot() {
// TODO(leszeks): Consider context specialising.
VisitLdaCurrentContextSlot();
VisitLdaContextSlot();
}
void MaglevGraphBuilder::VisitLdaCurrentContextSlot() {
ValueNode* context = GetContext();