| Index: src/runtime/runtime-test.cc | 
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc | 
| index c281b6fd0418d41afd026b3ac11db49364601f84..2c38f12eb77c47f8606d9354d67d575f498d4e51 100644 | 
| --- a/src/runtime/runtime-test.cc | 
| +++ b/src/runtime/runtime-test.cc | 
| @@ -88,7 +88,8 @@ RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) { | 
| // The following assertion was lifted from the DCHECK inside | 
| // JSFunction::MarkForOptimization(). | 
| RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || | 
| -                 !function->shared()->optimization_disabled()); | 
| +                 (function->code()->kind() == Code::FUNCTION && | 
| +                  !function->shared()->optimization_disabled())); | 
|  | 
| // If the function is already optimized, just return. | 
| if (function->IsOptimized()) return isolate->heap()->undefined_value(); | 
|  |