Index: src/builtins/arm/builtins-arm.cc |
diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc |
index e2ac3ae5682a86441374008a10b7eb66fc0958c9..90c30b2f45826f73ae5360de2ed128831a41d87d 100644 |
--- a/src/builtins/arm/builtins-arm.cc |
+++ b/src/builtins/arm/builtins-arm.cc |
@@ -1370,6 +1370,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)); |