| Index: src/heap/scavenger.cc
|
| diff --git a/src/heap/scavenger.cc b/src/heap/scavenger.cc
|
| index 4fa30e2650890945097555663006d63f86040512..53d604aad59d9f2b9dac91b16ba2e42c8a93b0c9 100644
|
| --- a/src/heap/scavenger.cc
|
| +++ b/src/heap/scavenger.cc
|
| @@ -21,9 +21,6 @@ enum LoggingAndProfiling {
|
| };
|
|
|
|
|
| -enum MarksHandling { TRANSFER_MARKS, IGNORE_MARKS };
|
| -
|
| -
|
| template <MarksHandling marks_handling,
|
| LoggingAndProfiling logging_and_profiling_mode>
|
| class ScavengingVisitor : public StaticVisitorBase {
|
| @@ -209,7 +206,8 @@ class ScavengingVisitor : public StaticVisitorBase {
|
| Heap* heap = map->GetHeap();
|
|
|
| if (promotion_mode != FORCE_PROMOTION &&
|
| - !heap->ShouldBePromoted(object->address(), object_size)) {
|
| + !heap->ShouldBePromoted<marks_handling>(object->address(),
|
| + object_size)) {
|
| // A semi-space copy may fail due to fragmentation. In that case, we
|
| // try to promote the object.
|
| if (SemiSpaceCopyObject<alignment>(map, slot, object, object_size)) {
|
|
|