Bug 1844277 - Part 2: Don't add unnnecessary keep-alive instructions for MLoadElementHole. r=jandem

`LLoadElementHole` doesn't perform a VM call, so we don't need to insert
keep-alive instructions.

Depends on D183954

Differential Revision: https://phabricator.services.mozilla.com/D183955
This commit is contained in:
André Bargull 2023-07-21 14:46:20 +00:00
parent 9b60c0788b
commit 4e89241f70

View File

@ -4145,6 +4145,7 @@ static bool NeedsKeepAlive(MInstruction* slotsOrElements, MInstruction* use) {
case MDefinition::Opcode::StoreFixedSlot:
case MDefinition::Opcode::LoadElement:
case MDefinition::Opcode::LoadElementAndUnbox:
case MDefinition::Opcode::LoadElementHole:
case MDefinition::Opcode::StoreElement:
case MDefinition::Opcode::StoreHoleValueElement:
case MDefinition::Opcode::InitializedLength: