From d441d6f39bb846989d95bcf5caf387b42414718d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 13 Sep 2013 12:51:20 +0200 Subject: Import Qt5x2 branch of QtWebkit for Qt 5.2 Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen --- Source/JavaScriptCore/bytecompiler/LabelScope.h | 67 ++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 7 deletions(-) (limited to 'Source/JavaScriptCore/bytecompiler/LabelScope.h') diff --git a/Source/JavaScriptCore/bytecompiler/LabelScope.h b/Source/JavaScriptCore/bytecompiler/LabelScope.h index cc21fffd1..2df6f1b9b 100644 --- a/Source/JavaScriptCore/bytecompiler/LabelScope.h +++ b/Source/JavaScriptCore/bytecompiler/LabelScope.h @@ -49,13 +49,6 @@ namespace JSC { , m_continueTarget(continueTarget) { } - - void ref() { ++m_refCount; } - void deref() - { - --m_refCount; - ASSERT(m_refCount >= 0); - } int refCount() const { return m_refCount; } Label* breakTarget() const { return m_breakTarget.get(); } @@ -66,6 +59,15 @@ namespace JSC { int scopeDepth() const { return m_scopeDepth; } private: + friend class LabelScopePtr; + + void ref() { ++m_refCount; } + void deref() + { + --m_refCount; + ASSERT(m_refCount >= 0); + } + int m_refCount; Type m_type; const Identifier* m_name; @@ -74,6 +76,57 @@ namespace JSC { RefPtr