Profiler experiments: Don't add self-optimization headers to functions that...

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

Review URL: https://chromiumcodereview.appspot.com/9460058

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10836 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2c29f4d5
...@@ -118,6 +118,7 @@ bool CompilationInfo::ShouldSelfOptimize() { ...@@ -118,6 +118,7 @@ bool CompilationInfo::ShouldSelfOptimize() {
FLAG_crankshaft && FLAG_crankshaft &&
!Serializer::enabled() && !Serializer::enabled() &&
!function()->flags()->Contains(kDontSelfOptimize) && !function()->flags()->Contains(kDontSelfOptimize) &&
!function()->flags()->Contains(kDontOptimize) &&
(shared_info().is_null() || !shared_info()->optimization_disabled()); (shared_info().is_null() || !shared_info()->optimization_disabled());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment