Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index 455f443a8b0300d4c80bc570075222cc50458542..8ecdd62588deab6740668384993265fb8b5c6239 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -79,7 +79,7 @@ void CodeFlusher::AddCandidate(SharedFunctionInfo* shared_info) { |
void CodeFlusher::AddCandidate(JSFunction* function) { |
DCHECK(function->code() == function->shared()->code()); |
- if (function->next_function_link()->IsUndefined()) { |
+ if (function->next_function_link()->IsUndefined(isolate_)) { |
SetNextCandidate(function, jsfunction_candidates_head_); |
jsfunction_candidates_head_ = function; |
} |
@@ -105,7 +105,7 @@ void CodeFlusher::SetNextCandidate(JSFunction* candidate, |
void CodeFlusher::ClearNextCandidate(JSFunction* candidate, Object* undefined) { |
- DCHECK(undefined->IsUndefined()); |
+ DCHECK(undefined->IsUndefined(candidate->GetIsolate())); |
candidate->set_next_function_link(undefined, SKIP_WRITE_BARRIER); |
} |