Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index f7341c98e3e7ae869c0d67bf049b35f8ea3511df..7f888456ba2417441668b48aca738950bdf9664f 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -703,6 +703,9 @@ void StaticMarkingVisitor<StaticVisitor>::MarkTransitionArray( |
template<typename StaticVisitor> |
void StaticMarkingVisitor<StaticVisitor>::MarkInlinedFunctionsCode( |
Heap* heap, Code* code) { |
+ // Skip in absence of inlining. |
+ // TODO(turbofan): Revisit once we support inlining. |
+ if (code->is_turbofanned()) return; |
// For optimized functions we should retain both non-optimized version |
// of its code and non-optimized version of all inlined functions. |
// This is required to support bailing out from inlined code. |