Index: third_party/WebKit/Source/platform/heap/Heap.h |
diff --git a/third_party/WebKit/Source/platform/heap/Heap.h b/third_party/WebKit/Source/platform/heap/Heap.h |
index 84753b2b9c76aff95e132ba5fdeac79979319f7d..e05747f09eb7185723691cbd68ef6c03aa317ef8 100644 |
--- a/third_party/WebKit/Source/platform/heap/Heap.h |
+++ b/third_party/WebKit/Source/platform/heap/Heap.h |
@@ -117,6 +117,11 @@ public: |
{ |
return isHeapObjectAlive(ptr.get()); |
} |
+ template<typename T> |
+ static inline bool isHeapObjectAlive(const WeakPtr<T>& ptr) |
sof
2016/01/16 14:26:12
Do we really want this?
|
+ { |
+ return isHeapObjectAlive(ptr.get()); |
+ } |
// Is the finalizable GC object still alive, but slated for lazy sweeping? |
// If a lazy sweep is in progress, returns true if the object was found |