@@ -155,9 +155,8 @@ Func::Func(JitArenaAllocator *alloc, JITTimeWorkItem * workItem,
155155#ifdef RECYCLER_WRITE_BARRIER_JIT
156156 , m_lowerer(nullptr )
157157#endif
158- , m_lazyBailOutRecordArgSlot (nullptr )
158+ , m_lazyBailOutRecordSlot (nullptr )
159159 , hasLazyBailOut(false )
160- , lazyBailOutThunkLabel(nullptr )
161160{
162161
163162 Assert (this ->IsInlined () == !!runtimeInfo);
@@ -2075,24 +2074,6 @@ Func::GetForInEnumeratorArrayOffset() const
20752074 + this ->m_forInLoopBaseDepth * sizeof (Js::ForInObjectEnumerator);
20762075}
20772076
2078- void
2079- Func::SetLazyBailOutThunkLabel (IR::LabelInstr *label)
2080- {
2081- Assert (label != nullptr &&
2082- label->m_opcode == Js::OpCode::LazyBailOutThunkLabel &&
2083- this ->lazyBailOutThunkLabel == nullptr &&
2084- this ->IsInPhase (Js::Phase::FinalLowerPhase));
2085-
2086- this ->lazyBailOutThunkLabel = label;
2087- }
2088-
2089- IR::LabelInstr *
2090- Func::GetLazyBailOutThunkLabel () const
2091- {
2092- Assert (this ->lazyBailOutThunkLabel != nullptr );
2093- return this ->lazyBailOutThunkLabel ;
2094- }
2095-
20962077void
20972078Func::SetHasLazyBailOut ()
20982079{
@@ -2110,27 +2091,27 @@ Func::HasLazyBailOut() const
21102091}
21112092
21122093void
2113- Func::AllocateLazyBailOutRecordArgSlotIfNeeded ()
2094+ Func::EnsureLazyBailOutRecordSlot ()
21142095{
2115- if (this ->m_lazyBailOutRecordArgSlot == nullptr )
2096+ if (this ->m_lazyBailOutRecordSlot == nullptr )
21162097 {
2117- this ->m_lazyBailOutRecordArgSlot = StackSym::New (TyMachPtr, this );
2118- this ->StackAllocate (this ->m_lazyBailOutRecordArgSlot , MachPtr);
2098+ this ->m_lazyBailOutRecordSlot = StackSym::New (TyMachPtr, this );
2099+ this ->StackAllocate (this ->m_lazyBailOutRecordSlot , MachPtr);
21192100 }
21202101}
21212102
21222103StackSym *
2123- Func::GetLazyBailOutRecordArgSlot () const
2104+ Func::GetLazyBailOutRecordSlot () const
21242105{
2125- Assert (this ->m_lazyBailOutRecordArgSlot != nullptr );
2126- return this ->m_lazyBailOutRecordArgSlot ;
2106+ Assert (this ->m_lazyBailOutRecordSlot != nullptr );
2107+ return this ->m_lazyBailOutRecordSlot ;
21272108}
21282109
21292110bool
21302111Func::ShouldDoLazyBailOut () const
21312112{
21322113#if defined(_M_X64)
2133- if (PHASE_OFF1 (Js::LazyBailoutPhase) ||
2114+ if (PHASE_ON1 (Js::LazyBailoutPhase) ||
21342115 this ->GetJITFunctionBody ()->IsAsmJsMode () || // don't have bailouts in asm.js
21352116 this ->HasTry () || // lazy bailout in function with try/catch not supported for now
21362117 // `EHBailoutPatchUp` set a `hasBailedOut` bit to rethrow the exception in the interpreter
0 commit comments