Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 122de1d87dd241ba00e5bffc371590b18d1d6418..99a78fd42aaf2df026ada19c4fc6135f2fc67e29 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1460,8 +1460,9 @@ void MarkCompactCollector::PrepareThreadForCodeFlushing(Isolate* isolate, |
MarkBit code_mark = Marking::MarkBitFrom(code); |
MarkObject(code, code_mark); |
if (frame->is_optimized()) { |
- MarkCompactMarkingVisitor::MarkInlinedFunctionsCode(heap(), |
- frame->LookupCode()); |
+ Code* optimized_code = frame->LookupCode(); |
+ MarkBit optimized_code_mark = Marking::MarkBitFrom(optimized_code); |
+ MarkObject(optimized_code, optimized_code_mark); |
} |
} |
} |