Revision: 23417
Author:   [email protected]
Date:     Tue Aug 26 17:04:34 2014 UTC
Log:      Make filter for optimized code sharing finer.

[email protected]

Review URL: https://codereview.chromium.org/506793003
https://code.google.com/p/v8/source/detail?r=23417

Modified:
 /branches/bleeding_edge/src/compiler.cc

=======================================
--- /branches/bleeding_edge/src/compiler.cc     Tue Aug 26 14:41:58 2014 UTC
+++ /branches/bleeding_edge/src/compiler.cc     Tue Aug 26 17:04:34 2014 UTC
@@ -138,6 +138,7 @@
   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 @@
   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) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to