Skip to content

Commit

Permalink
[MERGE #5627 @sigatrev] make inlined function bailout pre-op.
Browse files Browse the repository at this point in the history
Merge pull request #5627 from sigatrev:fixCallbackBailout
  • Loading branch information
sigatrev committed Aug 24, 2018
2 parents d3ac17e + 3691d87 commit 45a6271
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Backend/Inline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4447,6 +4447,7 @@ Inline::PrepareInsertionPoint(IR::Instr *callInstr, const FunctionJITTimeInfo *f

// FunctionBody check is the primary bailout instruction, create it first
IR::BailOutInstr* primaryBailOutInstr = IR::BailOutInstr::New(Js::OpCode::BailOnNotEqual, bailOutKind, insertBeforeInstr, callInstr->m_func);
primaryBailOutInstr->SetByteCodeOffset(insertBeforeInstr);

// 1. Bailout if function object is not an object.
IR::Instr *bailOutIfNotObject = IR::BailOutInstr::New(Js::OpCode::BailOnNotObject,
Expand Down

0 comments on commit 45a6271

Please sign in to comment.