summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/runtime/RopeImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/RopeImpl.h')
-rw-r--r--Source/JavaScriptCore/runtime/RopeImpl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/RopeImpl.h b/Source/JavaScriptCore/runtime/RopeImpl.h
index dfacbf5..5bfbde5 100644
--- a/Source/JavaScriptCore/runtime/RopeImpl.h
+++ b/Source/JavaScriptCore/runtime/RopeImpl.h
@@ -71,8 +71,8 @@ public:
ALWAYS_INLINE void deref()
{
- m_refCountAndFlags -= s_refCountIncrement;
- if (!(m_refCountAndFlags & s_refCountMask))
+ --m_refCount;
+ if (!m_refCount)
destructNonRecursive();
}
@@ -86,7 +86,7 @@ private:
void destructNonRecursive();
void derefFibersNonRecursive(Vector<RopeImpl*, 32>& workQueue);
- bool hasOneRef() { return (m_refCountAndFlags & s_refCountMask) == s_refCountIncrement; }
+ bool hasOneRef() { return m_refCount == 1; }
unsigned m_size;
Fiber m_fibers[1];