summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/heap/Strong.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Source/JavaScriptCore/heap/Strong.h
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/heap/Strong.h')
-rw-r--r--Source/JavaScriptCore/heap/Strong.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/heap/Strong.h b/Source/JavaScriptCore/heap/Strong.h
index 7fafaeab5..e00e92061 100644
--- a/Source/JavaScriptCore/heap/Strong.h
+++ b/Source/JavaScriptCore/heap/Strong.h
@@ -32,12 +32,13 @@
namespace JSC {
-class JSGlobalData;
+class VM;
// A strongly referenced handle that prevents the object it points to from being garbage collected.
template <typename T> class Strong : public Handle<T> {
using Handle<T>::slot;
using Handle<T>::setSlot;
+ template <typename U> friend class Strong;
public:
typedef typename Handle<T>::ExternalType ExternalType;
@@ -47,9 +48,9 @@ public:
{
}
- Strong(JSGlobalData&, ExternalType = ExternalType());
+ Strong(VM&, ExternalType = ExternalType());
- Strong(JSGlobalData&, Handle<T>);
+ Strong(VM&, Handle<T>);
Strong(const Strong& other)
: Handle<T>()
@@ -94,7 +95,7 @@ public:
ExternalType get() const { return HandleTypes<T>::getFromSlot(this->slot()); }
- void set(JSGlobalData&, ExternalType);
+ void set(VM&, ExternalType);
template <typename U> Strong& operator=(const Strong<U>& other)
{
@@ -103,7 +104,7 @@ public:
return *this;
}
- set(*HandleSet::heapFor(other.slot())->globalData(), other.get());
+ set(*HandleSet::heapFor(other.slot())->vm(), other.get());
return *this;
}
@@ -114,7 +115,7 @@ public:
return *this;
}
- set(*HandleSet::heapFor(other.slot())->globalData(), other.get());
+ set(*HandleSet::heapFor(other.slot())->vm(), other.get());
return *this;
}