Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: src/factory.cc

Issue 1399033002: Remove FLAG_cache_optimized_code because we always have it on. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 43d29f6f0f007bd14ebc71b27e3f587aa3898898..c66f90a65fbe2d7fc197e09e90fc20af2eec8b8a 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1346,12 +1346,11 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
LiteralsArray::New(isolate(), handle(info->feedback_vector()),
number_of_literals, pretenure);
result->set_literals(*literals);
+
// Cache context-specific literals.
- if (FLAG_cache_optimized_code) {
- Handle<Context> native_context(context->native_context());
- SharedFunctionInfo::AddToOptimizedCodeMap(
- info, native_context, undefined_value(), literals, BailoutId::None());
- }
+ Handle<Context> native_context(context->native_context());
+ SharedFunctionInfo::AddToOptimizedCodeMap(
+ info, native_context, undefined_value(), literals, BailoutId::None());
}
return result;
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698