Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 88e6983035cd618394b2d47bc44414b2a37ad7c0..f6fd369542cef71b01457d3c123660e9ffebe9b4 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2578,8 +2578,8 @@ bool MarkCompactCollector::CompactTransitionArray( |
// array disappeared during GC. |
int trim = TransitionArray::Capacity(transitions) - transition_index; |
if (trim > 0) { |
- heap_->RightTrimFixedArray<Heap::SEQUENTIAL_TO_SWEEPER>( |
- transitions, trim * TransitionArray::kTransitionSize); |
+ heap_->RightTrimFixedArray(transitions, |
+ trim * TransitionArray::kTransitionSize); |
transitions->SetNumberOfTransitions(transition_index); |
} |
return descriptors_owner_died; |
@@ -2597,8 +2597,8 @@ void MarkCompactCollector::TrimDescriptorArray(Map* map, |
int number_of_descriptors = descriptors->number_of_descriptors_storage(); |
int to_trim = number_of_descriptors - number_of_own_descriptors; |
if (to_trim > 0) { |
- heap_->RightTrimFixedArray<Heap::SEQUENTIAL_TO_SWEEPER>( |
- descriptors, to_trim * DescriptorArray::kDescriptorSize); |
+ heap_->RightTrimFixedArray(descriptors, |
+ to_trim * DescriptorArray::kDescriptorSize); |
descriptors->SetNumberOfDescriptors(number_of_own_descriptors); |
if (descriptors->HasEnumCache()) TrimEnumCache(map, descriptors); |
@@ -2629,13 +2629,11 @@ void MarkCompactCollector::TrimEnumCache(Map* map, |
int to_trim = enum_cache->length() - live_enum; |
if (to_trim <= 0) return; |
- heap_->RightTrimFixedArray<Heap::SEQUENTIAL_TO_SWEEPER>( |
- descriptors->GetEnumCache(), to_trim); |
+ heap_->RightTrimFixedArray(descriptors->GetEnumCache(), to_trim); |
if (!descriptors->HasEnumIndicesCache()) return; |
FixedArray* enum_indices_cache = descriptors->GetEnumIndicesCache(); |
- heap_->RightTrimFixedArray<Heap::SEQUENTIAL_TO_SWEEPER>(enum_indices_cache, |
- to_trim); |
+ heap_->RightTrimFixedArray(enum_indices_cache, to_trim); |
} |