Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index ccd02cc6776e885e7467a88b91fd89a90f1add98..dc9de254e5f3090fc19f124ba0ccef524809df15 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -1374,6 +1374,12 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ Ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
__ Cmp(temp, native_context); |
__ B(ne, &loop_bottom); |
+ // OSR id set to none? |
+ __ Ldr(temp, FieldMemOperand(array_pointer, |
+ SharedFunctionInfo::kOffsetToPreviousOsrAstId)); |
+ const int bailout_id = BailoutId::None().ToInt(); |
+ __ Cmp(temp, Operand(Smi::FromInt(bailout_id))); |
+ __ B(ne, &loop_bottom); |
// Literals available? |
__ Ldr(temp, FieldMemOperand(array_pointer, |
SharedFunctionInfo::kOffsetToPreviousLiterals)); |