Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index f8d1b3de6b550ce1b568fa203d0dca2437abb2f2..7eeaf900189890558edb9bdb76f8ec44a543b656 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -109,8 +109,6 @@ void CompilationInfo::DisableOptimization() { |
void CompilationInfo::AbortOptimization() { |
Handle<Code> code(shared_info()->code()); |
SetCode(code); |
- Isolate* isolate = code->GetIsolate(); |
- isolate->compilation_cache()->MarkForLazyOptimizing(closure()); |
} |
@@ -659,9 +657,6 @@ bool Compiler::CompileLazy(CompilationInfo* info) { |
CompilationInfo optimized(function); |
optimized.SetOptimizing(AstNode::kNoNumber); |
return CompileLazy(&optimized); |
- } else if (isolate->compilation_cache()->ShouldOptimizeEagerly( |
- function)) { |
- isolate->runtime_profiler()->OptimizeSoon(*function); |
} |
} |
} |