Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: src/heap/objects-visiting-inl.h

Issue 677043002: Flush code faster when doing emergency GCs. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Change ReleaseUnoptimizedCode test to a harder test that fails without this CL Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/objects-visiting-inl.h
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
index 1f37306a7cd5438b86dd0c9da3b37c767d112a80..51d78ba093742e45b6e9047e6f02f38d8ec19726 100644
--- a/src/heap/objects-visiting-inl.h
+++ b/src/heap/objects-visiting-inl.h
@@ -749,7 +749,7 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(Heap* heap,
}
// Check age of optimized code.
- if (FLAG_age_code && !function->code()->IsOld()) {
+ if (FLAG_age_code && !function->code()->IsOld(heap)) {
return false;
}
@@ -807,7 +807,7 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
}
// Check age of code. If code aging is disabled we never flush.
- if (!FLAG_age_code || !shared_info->code()->IsOld()) {
+ if (!FLAG_age_code || !shared_info->code()->IsOld(heap)) {
return false;
}
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698