|
|
@@ -1710,7 +1710,7 @@ LowererMD::LowerTry(IR::Instr * tryInstr, IR::JnHelperMethod helperMethod)
|
|
|
// Arg 7: ScriptContext
|
|
|
this->m_lowerer->LoadScriptContext(tryAddr);
|
|
|
|
|
|
- if (tryInstr->m_opcode == Js::OpCode::TryCatch || this->m_func->DoOptimizeTry())
|
|
|
+ if (tryInstr->m_opcode == Js::OpCode::TryCatch || this->m_func->DoOptimizeTry() || (this->m_func->IsSimpleJit() && this->m_func->hasBailout))
|
|
|
{
|
|
|
// Arg 6 : hasBailedOutOffset
|
|
|
IR::Opnd * hasBailedOutOffset = IR::IntConstOpnd::New(this->m_func->m_hasBailedOutSym->m_offset + tryInstr->m_func->GetInlineeArgumentStackSize(), TyInt32, this->m_func);
|