Chromium Code Reviews| Index: src/mark-compact.cc |
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
| index 412bc6b736fb9b6d58820476c0fdf881cca56074..641293399e6297d6824c2d07ee1d0ecf6cddd91b 100644 |
| --- a/src/mark-compact.cc |
| +++ b/src/mark-compact.cc |
| @@ -952,6 +952,21 @@ void CodeFlusher::EvictCandidate(JSFunction* function) { |
| } |
| +void CodeFlusher::IteratePointersToFromSpace(ObjectVisitor* v) { |
| + Heap* heap = isolate_->heap(); |
| + |
| + JSFunction** slot = &jsfunction_candidates_head_; |
| + JSFunction* candidate = jsfunction_candidates_head_; |
| + while (candidate != NULL) { |
| + if (heap->InFromSpace(candidate)) { |
| + v->VisitPointer(reinterpret_cast<Object**>(slot)); |
| + } |
| + candidate = GetNextCandidate(*slot); |
|
ulan_google
2012/10/26 09:15:28
candidate = GetNextCandidate(candidate);
Would be
Michael Starzinger
2012/10/26 09:39:39
We cannot use the candidate variable here, because
|
| + slot = GetNextCandidateSlot(*slot); |
| + } |
| +} |
| + |
| + |
| MarkCompactCollector::~MarkCompactCollector() { |
| if (code_flusher_ != NULL) { |
| delete code_flusher_; |