diff --git a/js/src/jit/IonAnalysis.cpp b/js/src/jit/IonAnalysis.cpp index 987052d3d959..b43e5b5ea4a9 100644 --- a/js/src/jit/IonAnalysis.cpp +++ b/js/src/jit/IonAnalysis.cpp @@ -4044,7 +4044,6 @@ bool jit::FoldLoadsWithUnbox(MIRGenerator* mir, MIRGraph& graph) { auto* loadIns = load->toLoadFixedSlot(); replacement = MLoadFixedSlotAndUnbox::New( graph.alloc(), loadIns->object(), loadIns->slot(), mode, type); - replacement->setBailoutKind(BailoutKind::UnboxFolding); break; } case MDefinition::Opcode::LoadDynamicSlot: { @@ -4063,6 +4062,7 @@ bool jit::FoldLoadsWithUnbox(MIRGenerator* mir, MIRGraph& graph) { default: MOZ_CRASH("Unexpected instruction"); } + replacement->setBailoutKind(BailoutKind::UnboxFolding); block->insertBefore(load, replacement); unbox->replaceAllUsesWith(replacement); diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index a59559115da1..887b2db3291a 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -6540,7 +6540,6 @@ class MLoadElementAndUnbox : public MBinaryInstruction, if (mode_ == MUnbox::Fallible) { setGuard(); } - setBailoutKind(BailoutKind::UnboxFolding); } public: @@ -7214,7 +7213,6 @@ class MLoadDynamicSlotAndUnbox : public MUnaryInstruction, if (mode_ == MUnbox::Fallible) { setGuard(); } - setBailoutKind(BailoutKind::UnboxFolding); } public: