diff options
author | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
commit | 5f1ab04193ad0130ca8204aadaceae083aca9881 (patch) | |
tree | 5a92cd389e2cfe7fb67197ce14b38469462379f8 /JavaScriptCore/wtf/RefCounted.h | |
parent | 194315e5a908cc8ed67d597010544803eef1ac59 (diff) | |
download | external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.zip external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.gz external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.bz2 |
Get WebKit r44544.
Diffstat (limited to 'JavaScriptCore/wtf/RefCounted.h')
-rw-r--r-- | JavaScriptCore/wtf/RefCounted.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/JavaScriptCore/wtf/RefCounted.h b/JavaScriptCore/wtf/RefCounted.h index 93ee0da..c174145 100644 --- a/JavaScriptCore/wtf/RefCounted.h +++ b/JavaScriptCore/wtf/RefCounted.h @@ -57,7 +57,9 @@ protected: { } - ~RefCountedBase() {} + ~RefCountedBase() + { + } // Returns whether the pointer should be freed or not. bool derefBase() @@ -75,7 +77,20 @@ protected: return false; } -protected: + // Helper for generating JIT code. Please do not use for non-JIT purposes. + int* addressOfCount() + { + return &m_refCount; + } + +#ifndef NDEBUG + bool deletionHasBegun() const + { + return m_deletionHasBegun; + } +#endif + +private: template<class T> friend class CrossThreadRefCounted; @@ -95,7 +110,9 @@ public: } protected: - ~RefCounted() {} + ~RefCounted() + { + } }; } // namespace WTF |