| 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;
|
| }
|
|
|
|
|