| Index: src/builtins/x87/builtins-x87.cc
 | 
| diff --git a/src/builtins/x87/builtins-x87.cc b/src/builtins/x87/builtins-x87.cc
 | 
| index 4d76070781b3f0c897bd7c95a0493c5d0ae513a1..06f3da870b88d3de39f66f7579a12b441d9c5e12 100644
 | 
| --- a/src/builtins/x87/builtins-x87.cc
 | 
| +++ b/src/builtins/x87/builtins-x87.cc
 | 
| @@ -1161,8 +1161,15 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
 | 
|    __ pop(closure);
 | 
|    __ pop(new_target);
 | 
|    __ pop(argument_count);
 | 
| -  // Is the full code valid?
 | 
|    __ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset));
 | 
| +  // Is the shared function marked for optimization?
 | 
| +  __ testb(
 | 
| +      FieldOperand(entry,
 | 
| +                   SharedFunctionInfo::kWasMarkedForOptimizationByteOffset),
 | 
| +      Immediate(
 | 
| +          1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte));
 | 
| +  __ j(not_zero, &gotta_call_runtime_no_stack);
 | 
| +  // Is the full code valid?
 | 
|    __ mov(entry, FieldOperand(entry, SharedFunctionInfo::kCodeOffset));
 | 
|    __ mov(ebx, FieldOperand(entry, Code::kFlagsOffset));
 | 
|    __ and_(ebx, Code::KindField::kMask);
 | 
| 
 |