Index: src/builtins/ia32/builtins-ia32.cc |
diff --git a/src/builtins/ia32/builtins-ia32.cc b/src/builtins/ia32/builtins-ia32.cc |
index 401723f523976bc2893f6db436bdf64da197d745..7656e53f9a66fcc054f65fbe40909f6803a4aaae 100644 |
--- a/src/builtins/ia32/builtins-ia32.cc |
+++ b/src/builtins/ia32/builtins-ia32.cc |
@@ -1055,6 +1055,12 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); |
__ cmp(temp, native_context); |
__ j(not_equal, &loop_bottom); |
+ // OSR id set to none? |
+ __ mov(temp, FieldOperand(map, index, times_half_pointer_size, |
+ SharedFunctionInfo::kOffsetToPreviousOsrAstId)); |
+ const int bailout_id = BailoutId::None().ToInt(); |
+ __ cmp(temp, Immediate(Smi::FromInt(bailout_id))); |
+ __ j(not_equal, &loop_bottom); |
// Literals available? |
__ mov(temp, FieldOperand(map, index, times_half_pointer_size, |
SharedFunctionInfo::kOffsetToPreviousLiterals)); |