| Index: src/heap.cc
|
| ===================================================================
|
| --- src/heap.cc (revision 8501)
|
| +++ src/heap.cc (working copy)
|
| @@ -97,6 +97,7 @@
|
| // Will be 4 * reserved_semispace_size_ to ensure that young
|
| // generation can be aligned to its size.
|
| survived_since_last_expansion_(0),
|
| + sweep_generation_(0),
|
| always_allocate_scope_depth_(0),
|
| linear_allocation_scope_depth_(0),
|
| contexts_disposed_(0),
|
| @@ -742,7 +743,7 @@
|
| if (collector == MARK_COMPACTOR) {
|
| // Perform mark-sweep with optional compaction.
|
| MarkCompact(tracer);
|
| -
|
| + sweep_generation_++;
|
| bool high_survival_rate_during_scavenges = IsHighSurvivalRate() &&
|
| IsStableOrIncreasingSurvivalTrend();
|
|
|
| @@ -1305,6 +1306,11 @@
|
| &ObjectEvacuationStrategy<POINTER_OBJECT>::
|
| template VisitSpecialized<SharedFunctionInfo::kSize>);
|
|
|
| + table_.Register(kVisitJSRegExp,
|
| + &ObjectEvacuationStrategy<POINTER_OBJECT>::
|
| + Visit);
|
| +
|
| +
|
| table_.Register(kVisitJSFunction,
|
| &ObjectEvacuationStrategy<POINTER_OBJECT>::
|
| template VisitSpecialized<JSFunction::kSize>);
|
|
|