Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 22567d3b90576be19f829e6a55ea33c5b4d68e53..838888aeb1dca635d7903abcfae57d13980e199c 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -88,8 +88,6 @@ static void GetICCounts(SharedFunctionInfo* shared, |
void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) { |
- DCHECK(function->IsOptimizable()); |
- |
if (FLAG_trace_opt && function->PassesFilter(FLAG_hydrogen_filter)) { |
PrintF("[marking "); |
function->ShortPrint(); |
@@ -217,7 +215,7 @@ void RuntimeProfiler::OptimizeNow() { |
} |
continue; |
} |
- if (!function->IsOptimizable()) continue; |
+ if (function->IsOptimized()) continue; |
int ticks = shared_code->profiler_ticks(); |