Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index d812588a3790a6c90e3e815e3993c0362222d463..e89a6b60451aff0305fea1a2e236ba8848dc0cdf 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1193,18 +1193,6 @@ void ElementHandlerCompiler::GenerateStoreDictionaryElement( |
} |
-CallOptimization::CallOptimization(LookupResult* lookup) { |
- if (lookup->IsFound() && |
- lookup->IsCacheable() && |
- lookup->IsConstantFunction()) { |
- // We only optimize constant function calls. |
- Initialize(Handle<JSFunction>(lookup->GetConstantFunction())); |
- } else { |
- Initialize(Handle<JSFunction>::null()); |
- } |
-} |
- |
- |
CallOptimization::CallOptimization(Handle<JSFunction> function) { |
Initialize(function); |
} |