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

Unified Diff: third_party/WebKit/Source/platform/heap/GarbageCollected.h

Issue 1430983002: [Oilpan] [NOCOMMIT] Add verifier in Member<> to detect use-after-free of on-heap objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support GCMixin Created 5 years, 1 month 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
Index: third_party/WebKit/Source/platform/heap/GarbageCollected.h
diff --git a/third_party/WebKit/Source/platform/heap/GarbageCollected.h b/third_party/WebKit/Source/platform/heap/GarbageCollected.h
index d9abbd3a2af03f801b57b211bcde0a65a25b1231..5559fc27cdbbea7192b9d8bca46291e2c4b5a17e 100644
--- a/third_party/WebKit/Source/platform/heap/GarbageCollected.h
+++ b/third_party/WebKit/Source/platform/heap/GarbageCollected.h
@@ -128,6 +128,7 @@ public:
virtual void adjustAndMark(InlinedGlobalMarkingVisitor) const = 0;
virtual void trace(InlinedGlobalMarkingVisitor);
virtual bool isHeapObjectAlive() const = 0;
+ virtual HeapObjectHeader* heapObjectHeader() const = 0;
};
#define DEFINE_GARBAGE_COLLECTED_MIXIN_METHODS(VISITOR, TYPE) \
@@ -205,6 +206,10 @@ public: \
{ \
return Heap::isHeapObjectAlive(this); \
} \
+ HeapObjectHeader* heapObjectHeader() const override \
+ { \
+ return HeapObjectHeader::fromPayload(this); \
+ } \
private:
#if ENABLE(OILPAN)
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/platform/heap/Handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698