| Index: src/runtime/runtime-test.cc
|
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
|
| index e5d84d11913bc2d02d05599c578a489f53cd7c1e..dfc7364c96ba34959aaadf0a7090230bddf5a36f 100644
|
| --- a/src/runtime/runtime-test.cc
|
| +++ b/src/runtime/runtime-test.cc
|
| @@ -85,8 +85,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) {
|
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
| // The following assertion was lifted from the DCHECK inside
|
| // JSFunction::MarkForOptimization().
|
| - RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() ||
|
| - function->IsOptimizable());
|
| + RUNTIME_ASSERT(function->shared()->allows_lazy_compilation());
|
|
|
| // If the function is already optimized, just return.
|
| if (function->IsOptimized()) return isolate->heap()->undefined_value();
|
| @@ -129,8 +128,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) {
|
|
|
| // The following assertion was lifted from the DCHECK inside
|
| // JSFunction::MarkForOptimization().
|
| - RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() ||
|
| - function->IsOptimizable());
|
| + RUNTIME_ASSERT(function->shared()->allows_lazy_compilation());
|
|
|
| // If the function is already optimized, just return.
|
| if (function->IsOptimized()) return isolate->heap()->undefined_value();
|
|
|