Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 2bf2afbb2b386b893ac11a9be73949dfaf54efb7..86f6d01940a0c7b9126e439a8b1392ca71ae51da 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -668,7 +668,7 @@ void StaticMarkingVisitor<StaticVisitor>::MarkInlinedFunctionsCode(Heap* heap, |
inline static bool HasValidNonBuiltinContext(JSFunction* function) { |
- return function->context()->IsContext() && !function->IsBuiltin(); |
+ return function->context()->IsContext() && !function->shared()->IsBuiltin(); |
} |