Profiler experiments: prevent self-optimization for V8 Extensions
Review URL: https://chromiumcodereview.appspot.com/9535006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10873 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
448d80db64
commit
773c306303
@ -119,6 +119,7 @@ bool CompilationInfo::ShouldSelfOptimize() {
|
|||||||
!Serializer::enabled() &&
|
!Serializer::enabled() &&
|
||||||
!function()->flags()->Contains(kDontSelfOptimize) &&
|
!function()->flags()->Contains(kDontSelfOptimize) &&
|
||||||
!function()->flags()->Contains(kDontOptimize) &&
|
!function()->flags()->Contains(kDontOptimize) &&
|
||||||
|
function()->scope()->allows_lazy_recompilation() &&
|
||||||
(shared_info().is_null() || !shared_info()->optimization_disabled());
|
(shared_info().is_null() || !shared_info()->optimization_disabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -372,6 +372,11 @@ class Scope: public ZoneObject {
|
|||||||
// Determine if we can use lazy compilation for this scope.
|
// Determine if we can use lazy compilation for this scope.
|
||||||
bool AllowsLazyCompilation() const;
|
bool AllowsLazyCompilation() const;
|
||||||
|
|
||||||
|
// True if we can lazily recompile functions with this scope.
|
||||||
|
bool allows_lazy_recompilation() const {
|
||||||
|
return !force_eager_compilation_;
|
||||||
|
}
|
||||||
|
|
||||||
// True if the outer context of this scope is always the global context.
|
// True if the outer context of this scope is always the global context.
|
||||||
bool HasTrivialOuterContext() const;
|
bool HasTrivialOuterContext() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user