Do not optimize functions which are in new space.
If there are many shortliving closures, they pollute sampler window and delay optimizations of functions which should be optimized. Review URL: http://codereview.chromium.org/6344006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6364 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c919bb7d4a
commit
ec16aa9a17
@ -134,6 +134,7 @@ void PendingListNode::WeakCallback(v8::Persistent<v8::Value>, void* data) {
|
||||
|
||||
|
||||
static bool IsOptimizable(JSFunction* function) {
|
||||
if (Heap::InNewSpace(function)) return false;
|
||||
Code* code = function->code();
|
||||
return code->kind() == Code::FUNCTION && code->optimizable();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user