Disable code flushing for native SharedFunctionInfo.
R=hpayer@google.com TEST=cctest/test-api/Threading4 Review URL: https://codereview.chromium.org/15018012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14577 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b15bbfbe39
commit
b2f6d7843a
@ -571,6 +571,12 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
|
||||
return false;
|
||||
}
|
||||
|
||||
// If this is a native function we do not flush the code because %SetCode
|
||||
// breaks the one-to-one relation between SharedFunctionInfo and Code.
|
||||
if (shared_info->native()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (FLAG_age_code) {
|
||||
return shared_info->code()->IsOld();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user