| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index 51f7c7ad8147b7dabeff9b8b5c3eac3ed7048dc8..3be5ce321b1398b4557d2f2c2ab8e5234a6e8610 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -627,6 +627,11 @@
|
| return false;
|
| }
|
|
|
| + // Check age of optimized code.
|
| + if (FLAG_age_code && !function->code()->IsOld()) {
|
| + return false;
|
| + }
|
| +
|
| return IsFlushable(heap, shared_info);
|
| }
|
|
|
| @@ -683,16 +688,6 @@
|
| // relation between SharedFunctionInfo and Code is broken.
|
| if (shared_info->dont_flush()) {
|
| return false;
|
| - }
|
| -
|
| - // ----------------------------------------------------------------
|
| - // The above predicates up to this line are hard invariants, below
|
| - // this line are heuristics that should not affect correctness.
|
| - // ----------------------------------------------------------------
|
| -
|
| - // In stress mode we are aggressive.
|
| - if (FLAG_stress_compaction) {
|
| - return true;
|
| }
|
|
|
| // Check age of code. If code aging is disabled we never flush.
|
|
|