Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1035)

Unified Diff: sky/engine/platform/heap/Visitor.cpp

Issue 679113005: Hollow out more of the tracing system in oilpan (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/heap/Visitor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/heap/Visitor.cpp
diff --git a/sky/engine/platform/heap/Visitor.cpp b/sky/engine/platform/heap/Visitor.cpp
index 3d3a6a5cdaa846f35ffad59dc241617baf1255cf..8417b5c571d4c50885f0589edea88ff9fa00816e 100644
--- a/sky/engine/platform/heap/Visitor.cpp
+++ b/sky/engine/platform/heap/Visitor.cpp
@@ -31,34 +31,6 @@
#include "config.h"
#include "platform/heap/Visitor.h"
-#include "platform/heap/Handle.h"
-#include "platform/heap/Heap.h"
-
namespace blink {
-#if ENABLE(ASSERT)
-void Visitor::checkGCInfo(const void* payload, const GCInfo* gcInfo)
-{
- FinalizedHeapObjectHeader::fromPayload(payload)->checkHeader();
-#if !defined(COMPONENT_BUILD)
- // On component builds we cannot compare the gcInfos as they are statically
- // defined in each of the components and hence will not match.
- BaseHeapPage* page = pageHeaderFromObject(payload);
- ASSERT(page->orphaned() || FinalizedHeapObjectHeader::fromPayload(payload)->gcInfo() == gcInfo);
-#endif
-}
-
-#define DEFINE_VISITOR_CHECK_MARKER(Type) \
- void Visitor::checkGCInfo(const Type* payload, const GCInfo* gcInfo) \
- { \
- HeapObjectHeader::fromPayload(payload)->checkHeader(); \
- Type* object = const_cast<Type*>(payload); \
- BaseHeapPage* page = pageHeaderFromObject(object); \
- ASSERT(page->orphaned() || page->gcInfo() == gcInfo); \
- }
-
-FOR_EACH_TYPED_HEAP(DEFINE_VISITOR_CHECK_MARKER)
-#undef DEFINE_VISITOR_CHECK_MARKER
-#endif
-
}
« no previous file with comments | « sky/engine/platform/heap/Visitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698