Chromium Code Reviews| Index: Source/heap/Handle.h |
| diff --git a/Source/heap/Handle.h b/Source/heap/Handle.h |
| index 12c7aae49800b781b0bb144a329f9b87441a95ca..9331ec193b101aa8fcf508f8c4707b734319fa9d 100644 |
| --- a/Source/heap/Handle.h |
| +++ b/Source/heap/Handle.h |
| @@ -389,6 +389,17 @@ public: |
| } |
| }; |
| +// TraceTrait to allow compilation of trace method bodies when oilpan is disabled. |
|
sof
2014/02/12 20:28:14
This will make the transition type
WillBeHeapVe
|
| +// This should never be called, but is needed to compile. |
| +template<typename T> |
| +class TraceTrait<RefPtr<T> > { |
| +public: |
| + static void trace(Visitor*, void*) |
| + { |
| + ASSERT_NOT_REACHED(); |
| + } |
| +}; |
| + |
| // WeakMember is similar to Member in that it is used to point to other oilpan |
| // heap allocated objects. |
| // However instead of creating a strong pointer to the object, the WeakMember creates |