Index: src/heap/objects-visiting.h |
diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h |
index 633c277eb065af6eab5bb15119d7ae5c6e4d8d01..34dd0e44b500dbfd09412f96a6b1b20e23065f11 100644 |
--- a/src/heap/objects-visiting.h |
+++ b/src/heap/objects-visiting.h |
@@ -267,12 +267,17 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
// Although we are using the JSFunction body descriptor which does not |
// visit the code entry, compiler wants it to be accessible. |
// See JSFunction::BodyDescriptorImpl. |
- INLINE(static void VisitCodeEntry(Heap* heap, HeapObject* object, |
- Address entry_address)) { |
+ inline static void VisitCodeEntry(Heap* heap, HeapObject* object, |
+ Address entry_address) { |
UNREACHABLE(); |
} |
private: |
+ inline static int UnreachableVisitor(Map* map, HeapObject* object) { |
+ UNREACHABLE(); |
+ return 0; |
+ } |
+ |
INLINE(static int VisitByteArray(Map* map, HeapObject* object)) { |
return reinterpret_cast<ByteArray*>(object)->ByteArraySize(); |
} |
@@ -300,8 +305,6 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
return FreeSpace::cast(object)->size(); |
} |
- INLINE(static int VisitBytecodeArray(Map* map, HeapObject* object)); |
- |
class DataObjectVisitor { |
public: |
template <int object_size> |