Index: src/interpreter/interpreter-assembler.cc |
diff --git a/src/interpreter/interpreter-assembler.cc b/src/interpreter/interpreter-assembler.cc |
index 66f36e4159aba49c6fe6c4834f14e3b6fa0265e4..c859d52528912933d490df3bf3c66121a7915da7 100644 |
--- a/src/interpreter/interpreter-assembler.cc |
+++ b/src/interpreter/interpreter-assembler.cc |
@@ -848,6 +848,12 @@ Node* InterpreterAssembler::StackCheckTriggeredInterrupt() { |
return UintPtrLessThan(sp, stack_limit); |
} |
+Node* InterpreterAssembler::LoadOSRNestingLevel() { |
+ Node* offset = |
+ IntPtrConstant(BytecodeArray::kOSRNestingLevelOffset - kHeapObjectTag); |
+ return Load(MachineType::Int32(), BytecodeArrayTaggedPointer(), offset); |
+} |
+ |
void InterpreterAssembler::Abort(BailoutReason bailout_reason) { |
disable_stack_check_across_call_ = true; |
Node* abort_id = SmiTag(Int32Constant(bailout_reason)); |