Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index f9ea3e6faa07dea5a8a5c98a551eba5aee9b55cf..cf4c2f2521f624e1cf022292f6f89a9e94c7f0bf 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -64,7 +64,6 @@ MarkCompactCollector::MarkCompactCollector() : // NOLINT |
abort_incremental_marking_(false), |
compacting_(false), |
was_marked_incrementally_(false), |
- flush_monomorphic_ics_(false), |
tracer_(NULL), |
migration_slots_buffer_(NULL), |
heap_(NULL), |
@@ -768,12 +767,6 @@ void MarkCompactCollector::AbortCompaction() { |
void MarkCompactCollector::Prepare(GCTracer* tracer) { |
was_marked_incrementally_ = heap()->incremental_marking()->IsMarking(); |
- // Monomorphic ICs are preserved when possible, but need to be flushed |
- // when they might be keeping a Context alive, or when the heap is about |
- // to be serialized. |
- flush_monomorphic_ics_ = |
- heap()->isolate()->context_exit_happened() || Serializer::enabled(); |
- |
// Rather than passing the tracer around we stash it in a static member |
// variable. |
tracer_ = tracer; |
@@ -1078,20 +1071,6 @@ class MarkCompactMarkingVisitor |
heap->mark_compact_collector()->MarkObject(object, mark); |
} |
- static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo) { |
- ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); |
- Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); |
- if (FLAG_cleanup_code_caches_at_gc && target->is_inline_cache_stub() |
- && (target->ic_state() == MEGAMORPHIC || |
- heap->mark_compact_collector()->flush_monomorphic_ics_ || |
- target->ic_age() != heap->global_ic_age())) { |
- IC::Clear(rinfo->pc()); |
- target = Code::GetCodeFromTargetAddress(rinfo->target_address()); |
- } |
- heap->mark_compact_collector()->RecordRelocSlot(rinfo, target); |
- MarkObject(heap, target); |
- } |
- |
// Mark object pointed to by p. |
INLINE(static void MarkObjectByPointer(MarkCompactCollector* collector, |
Object** anchor_slot, |