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/heap/Strong.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Source/JavaScriptCore/heap/Strong.h') 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 class Strong : public Handle { using Handle::slot; using Handle::setSlot; + template friend class Strong; public: typedef typename Handle::ExternalType ExternalType; @@ -47,9 +48,9 @@ public: { } - Strong(JSGlobalData&, ExternalType = ExternalType()); + Strong(VM&, ExternalType = ExternalType()); - Strong(JSGlobalData&, Handle); + Strong(VM&, Handle); Strong(const Strong& other) : Handle() @@ -94,7 +95,7 @@ public: ExternalType get() const { return HandleTypes::getFromSlot(this->slot()); } - void set(JSGlobalData&, ExternalType); + void set(VM&, ExternalType); template Strong& operator=(const Strong& 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; } -- cgit v1.2.1