Skip to content

Commit 45a6271

Browse files
committed
[MERGE chakra-core#5627 @sigatrev] make inlined function bailout pre-op.
Merge pull request chakra-core#5627 from sigatrev:fixCallbackBailout
2 parents d3ac17e + 3691d87 commit 45a6271

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Backend/Inline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,6 +4447,7 @@ Inline::PrepareInsertionPoint(IR::Instr *callInstr, const FunctionJITTimeInfo *f
44474447

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

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

0 commit comments

Comments
 (0)