Reviewers: Yang,

Message:
PTAQL.

Description:
Profiler experiments: Don't add self-optimization headers to functions that
can't be optimized anyway


Please review this at https://chromiumcodereview.appspot.com/9460058/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/compiler.cc


Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 5d7dbd1624ce127774ee63f5ae8631420e639734..cbf53a5e86e90cc1ec28c019aa1ffef0c307d734 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -118,6 +118,7 @@ bool CompilationInfo::ShouldSelfOptimize() {
       FLAG_crankshaft &&
       !Serializer::enabled() &&
       !function()->flags()->Contains(kDontSelfOptimize) &&
+      !function()->flags()->Contains(kDontOptimize) &&
       (shared_info().is_null() || !shared_info()->optimization_disabled());
 }



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to