| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 9606092713a0e311ebe9e13b23eb04394d87c95a..f7237041a7a0bcb4f130e6e12173225df1383da6 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -943,8 +943,7 @@ bool CodeFlusher::ContainsCandidate(SharedFunctionInfo* shared_info) {
|
|
|
|
|
| void CodeFlusher::EvictCandidate(SharedFunctionInfo* shared_info) {
|
| - // The function is no longer a candidate, make sure it gets visited
|
| - // again so that previous flushing decisions are revisited.
|
| + // Make sure previous flushing decisions are revisited.
|
| isolate_->heap()->incremental_marking()->RecordWrites(shared_info);
|
|
|
| SharedFunctionInfo* candidate = shared_function_info_candidates_head_;
|
| @@ -974,9 +973,9 @@ void CodeFlusher::EvictCandidate(JSFunction* function) {
|
| ASSERT(!function->next_function_link()->IsUndefined());
|
| Object* undefined = isolate_->heap()->undefined_value();
|
|
|
| - // The function is no longer a candidate, make sure it gets visited
|
| - // again so that previous flushing decisions are revisited.
|
| + // Make sure previous flushing decisions are revisited.
|
| isolate_->heap()->incremental_marking()->RecordWrites(function);
|
| + isolate_->heap()->incremental_marking()->RecordWrites(function->shared());
|
|
|
| JSFunction* candidate = jsfunction_candidates_head_;
|
| JSFunction* next_candidate;
|
|
|