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