Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 010bbfa1e5107be4b075124f894ff66645784c03..ea18b2e9bbaf3f3cd3b5b16e9b2808d4f5614a9e 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -680,7 +680,7 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(Heap* heap, |
// Code is either on stack, in compilation cache or referenced |
// by optimized version of function. |
MarkBit code_mark = Marking::MarkBitFrom(function->code()); |
- if (code_mark.Get()) { |
+ if (Marking::IsBlackOrGrey(code_mark)) { |
return false; |
} |
@@ -709,7 +709,7 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable( |
// Code is either on stack, in compilation cache or referenced |
// by optimized version of function. |
MarkBit code_mark = Marking::MarkBitFrom(shared_info->code()); |
- if (code_mark.Get()) { |
+ if (Marking::IsBlackOrGrey(code_mark)) { |
return false; |
} |