Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index 23e171232d3963e35e01c180c78c0c99b9318f25..a8b98ac36c9ff6d1876b6b7f32e9d5d4fac26fb1 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -490,30 +490,13 @@ bool Heap::InOldSpaceSlow(Address address) { |
return old_space_->ContainsSlow(address); |
} |
-template <PromotionMode promotion_mode> |
bool Heap::ShouldBePromoted(Address old_address, int object_size) { |
Page* page = Page::FromAddress(old_address); |
Address age_mark = new_space_->age_mark(); |
- |
- if (promotion_mode == PROMOTE_MARKED) { |
- MarkBit mark_bit = ObjectMarking::MarkBitFrom(old_address); |
- if (!Marking::IsWhite(mark_bit)) { |
- return true; |
- } |
- } |
- |
return page->IsFlagSet(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK) && |
(!page->ContainsLimit(age_mark) || old_address < age_mark); |
} |
-PromotionMode Heap::CurrentPromotionMode() { |
- if (incremental_marking()->IsMarking()) { |
- return PROMOTE_MARKED; |
- } else { |
- return DEFAULT_PROMOTION; |
- } |
-} |
- |
void Heap::RecordWrite(Object* object, int offset, Object* o) { |
if (!InNewSpace(o) || !object->IsHeapObject() || InNewSpace(object)) { |
return; |