Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index a66e7665daa98cd4cbb1c555d75c8ca28000c30a..1778401210ccda2573a3f2aa7df5898441dd265f 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -64,11 +64,6 @@ RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) { |
// If the function is already optimized, just return. |
if (function->IsOptimized()) return isolate->heap()->undefined_value(); |
- // If the function cannot optimized, just return. |
- if (function->shared()->optimization_disabled()) { |
- return isolate->heap()->undefined_value(); |
- } |
- |
function->MarkForOptimization(); |
Code* unoptimized = function->shared()->code(); |