Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index f45ef9f629ab5c53dd1a835edd45833949c70a70..5206de4ba0b10ddc96df15d677789e7386d6f1ae 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1724,7 +1724,7 @@ class MarkCompactCollector::EvacuateNewSpaceVisitor final |
local_pretenuring_feedback_); |
int size = object->Size(); |
HeapObject* target_object = nullptr; |
- if (heap_->ShouldBePromoted(object->address(), size) && |
+ if (heap_->ShouldBePromoted<DEFAULT_PROMOTION>(object->address(), size) && |
TryEvacuateObject(compaction_spaces_->Get(OLD_SPACE), object, |
&target_object)) { |
// If we end up needing more special cases, we should factor this out. |