Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 37af88f62b520c695a5186364633b2dff4375a4b..4be483a88edf88a314095c5d7cefa8262e0b2860 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -322,28 +322,6 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
return AbortOptimization(kOptimizedTooManyTimes); |
} |
- // Optimization requires a version of fullcode with deoptimization support. |
- // Recompile the unoptimized version of the code if the current version |
- // doesn't have deoptimization support already. |
- // Otherwise, if we are gathering compilation time and space statistics |
- // for hydrogen, gather baseline statistics for a fullcode compilation. |
- bool should_recompile = !info()->shared_info()->has_deoptimization_support(); |
- if (should_recompile || FLAG_hydrogen_stats) { |
- base::ElapsedTimer timer; |
- if (FLAG_hydrogen_stats) { |
- timer.Start(); |
- } |
- if (!Compiler::EnsureDeoptimizationSupport(info())) { |
- return SetLastStatus(FAILED); |
- } |
- if (FLAG_hydrogen_stats) { |
- isolate()->GetHStatistics()->IncrementFullCodeGen(timer.Elapsed()); |
- } |
- } |
- |
- DCHECK(info()->shared_info()->has_deoptimization_support()); |
- DCHECK(!info()->shared_info()->never_compiled()); |
- |
if (FLAG_trace_opt) { |
OFStream os(stdout); |
os << "[compiling method " << Brief(*info()->closure()) << " using " |