Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 1f98e30e2018bf2abe4bb50ed68afd9d15127a40..194467f5a9789169f52c2c6bd01d75d4163de38d 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -259,18 +259,6 @@ Code::Flags CompilationInfo::flags() const { |
} |
-// Disable optimization for the rest of the compilation pipeline. |
-void CompilationInfo::DisableOptimization() { |
- bool is_optimizable_closure = |
- FLAG_optimize_closures && |
- closure_.is_null() && |
- !scope_->HasTrivialOuterContext() && |
- !scope_->outer_scope_calls_sloppy_eval() && |
- !scope_->inside_with(); |
- SetMode(is_optimizable_closure ? BASE : NONOPT); |
-} |
- |
- |
// Primitive functions are unlikely to be picked up by the stack-walking |
// profiler, so they trigger their own optimization when they're called |
// for the SharedFunctionInfo::kCallsUntilPrimitiveOptimization-th time. |