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

Unified Diff: src/compiler.cc

Issue 506793003: Make filter for optimized code sharing finer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 68055889dc99cac8894d32b834c17005d6ce2533..0b75c8991ba044d426f8fa15b766e460c796acf2 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -138,6 +138,7 @@ void CompilationInfo::Initialize(Isolate* isolate,
abort_due_to_dependency_ = false;
if (script_->type()->value() == Script::TYPE_NATIVE) MarkAsNative();
if (isolate_->debug()->is_active()) MarkAsDebug();
+ if (FLAG_context_specialization) MarkAsContextSpecializing();
if (!shared_info_.is_null()) {
DCHECK(strict_mode() == SLOPPY);
@@ -1145,7 +1146,7 @@ static void InsertCodeIntoOptimizedCodeMap(CompilationInfo* info) {
if (code->kind() != Code::OPTIMIZED_FUNCTION) return; // Nothing to do.
// Context specialization folds-in the context, so no sharing can occur.
- if (code->is_turbofanned() && FLAG_context_specialization) return;
+ if (code->is_turbofanned() && info->is_context_specializing()) return;
// Cache optimized code.
if (FLAG_cache_optimized_code) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698