@@ -11482,7 +11482,7 @@ Lowerer::LowerBailForDebugger(IR::Instr* instr, bool isInsideHelper /* = false *
1148211482
1148311483 if (!(bailOutKind & IR::BailOutExplicit))
1148411484 {
11485- intptr_t flags = m_func->GetThreadContextInfo ()->GetDebuggingFlagsAddr();
11485+ intptr_t flags = m_func->GetScriptContextInfo ()->GetDebuggingFlagsAddr();
1148611486
1148711487 // Check 1 (do we need to bail out?)
1148811488 // JXX bailoutLabel
@@ -11556,13 +11556,13 @@ Lowerer::LowerBailForDebugger(IR::Instr* instr, bool isInsideHelper /* = false *
1155611556 {
1155711557 // TEST STEP_BAILOUT, [&stepController->StepType]
1155811558 // BNE BailoutLabel
11559- IR::Opnd* opnd1 = IR::MemRefOpnd::New(m_func->GetThreadContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
11559+ IR::Opnd* opnd1 = IR::MemRefOpnd::New(m_func->GetScriptContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
1156011560 IR::Opnd* opnd2 = IR::IntConstOpnd::New(Js::STEP_BAILOUT, TyInt8, this->m_func, /*dontEncode*/ true);
1156111561 InsertTestBranch(opnd1, opnd2, Js::OpCode::BrNeq_A, bailOutLabel, continueBranchInstr);
1156211562
1156311563 // CMP STEP_DOCUMENT, [&stepController->StepType]
1156411564 // BEQ BailoutDocumentLabel
11565- opnd1 = IR::MemRefOpnd::New(m_func->GetThreadContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
11565+ opnd1 = IR::MemRefOpnd::New(m_func->GetScriptContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
1156611566 opnd2 = IR::IntConstOpnd::New(Js::STEP_DOCUMENT, TyInt8, this->m_func, /*dontEncode*/ true);
1156711567 InsertCompareBranch(opnd1, opnd2, Js::OpCode::BrEq_A, /*isUnsigned*/ true, bailOutDocumentLabel, continueBranchInstr);
1156811568
@@ -11583,12 +11583,12 @@ Lowerer::LowerBailForDebugger(IR::Instr* instr, bool isInsideHelper /* = false *
1158311583 effectiveFrameBaseReg = m_lowererMD.GetRegFramePointer();
1158411584#endif
1158511585 IR::Opnd* opnd1 = IR::RegOpnd::New(nullptr, effectiveFrameBaseReg, TyMachReg, m_func);
11586- IR::Opnd* opnd2 = IR::MemRefOpnd::New(m_func->GetThreadContextInfo ()->GetDebugFrameAddressAddr(), TyMachReg, m_func);
11586+ IR::Opnd* opnd2 = IR::MemRefOpnd::New(m_func->GetScriptContextInfo ()->GetDebugFrameAddressAddr(), TyMachReg, m_func);
1158711587 this->InsertCompareBranch(opnd1, opnd2, Js::OpCode::BrGt_A, /*isUnsigned*/ true, bailOutLabel, continueBranchInstr);
1158811588
1158911589 // CMP STEP_DOCUMENT, [&stepController->StepType]
1159011590 // BEQ BailoutDocumentLabel
11591- opnd1 = IR::MemRefOpnd::New(m_func->GetThreadContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
11591+ opnd1 = IR::MemRefOpnd::New(m_func->GetScriptContextInfo ()->GetDebugStepTypeAddr(), TyInt8, m_func);
1159211592 opnd2 = IR::IntConstOpnd::New(Js::STEP_DOCUMENT, TyInt8, this->m_func, /*dontEncode*/ true);
1159311593 InsertCompareBranch(opnd1, opnd2, Js::OpCode::BrEq_A, /*isUnsigned*/ true, bailOutDocumentLabel, continueBranchInstr);
1159411594
@@ -11623,7 +11623,7 @@ Lowerer::LowerBailForDebugger(IR::Instr* instr, bool isInsideHelper /* = false *
1162311623 // bailOutLabel: // (fallthrough bailOutLabel)
1162411624 IR::Opnd* opnd1 = IR::MemRefOpnd::New(m_func->GetJITFunctionBody()->GetScriptIdAddr(), TyInt32, m_func);
1162511625
11626- IR::Opnd* opnd2 = IR::MemRefOpnd::New(m_func->GetThreadContextInfo ()->GetDebugScriptIdWhenSetAddr(), TyInt32, m_func);
11626+ IR::Opnd* opnd2 = IR::MemRefOpnd::New(m_func->GetScriptContextInfo ()->GetDebugScriptIdWhenSetAddr(), TyInt32, m_func);
1162711627 IR::RegOpnd* reg1 = IR::RegOpnd::New(TyInt32, m_func);
1162811628 InsertMove(reg1, opnd2, bailOutLabel);
1162911629
0 commit comments