| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 8956e3c56b50f31af04c57a3caf9669d4c58f3f2..b533cbb1aaf183fbaef89558729625daacb29e43 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -1359,6 +1359,10 @@ class Heap {
|
|
|
| void DeoptMarkedAllocationSites();
|
|
|
| + bool MaximumSizeScavenge() {
|
| + return maximum_size_scavenges_ > 0;
|
| + }
|
| +
|
| // ObjectStats are kept in two arrays, counts and sizes. Related stats are
|
| // stored in a contiguous linear buffer. Stats groups are stored one after
|
| // another.
|
| @@ -2019,6 +2023,12 @@ class Heap {
|
| intptr_t semi_space_copied_object_size_;
|
| double semi_space_copied_rate_;
|
|
|
| + // This is the pretenuring trigger for allocation sites that are in maybe
|
| + // tenure state. When we switched to the maximum new space size we deoptimize
|
| + // the code that belongs to the allocation site and derive the lifetime
|
| + // of the allocation site.
|
| + unsigned int maximum_size_scavenges_;
|
| +
|
| // TODO(hpayer): Allocation site pretenuring may make this method obsolete.
|
| // Re-visit incremental marking heuristics.
|
| bool IsHighSurvivalRate() {
|
|
|