Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index abb4e1beb8e7e51936657e70d14dec33649a7faf..8a44ce1677268ef549c564cfbdffeed0a86c3da4 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2724,7 +2724,8 @@ void MarkCompactCollector::ClearDependentCode(DependentCode* entries) { |
DCHECK(entries->is_code_at(i)); |
Code* code = entries->code_at(i); |
if (IsMarked(code) && !code->marked_for_deoptimization()) { |
- code->set_marked_for_deoptimization(true); |
+ DependentCode::SetMarkedForDeoptimization( |
+ code, static_cast<DependentCode::DependencyGroup>(g)); |
code->InvalidateEmbeddedObjects(); |
have_code_to_deoptimize_ = true; |
} |