From 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 7 May 2012 11:21:11 +0200 Subject: Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286) --- Source/JavaScriptCore/runtime/JSGlobalObject.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/JavaScriptCore/runtime/JSGlobalObject.h') diff --git a/Source/JavaScriptCore/runtime/JSGlobalObject.h b/Source/JavaScriptCore/runtime/JSGlobalObject.h index cbc436e1a..d9fc81dc4 100644 --- a/Source/JavaScriptCore/runtime/JSGlobalObject.h +++ b/Source/JavaScriptCore/runtime/JSGlobalObject.h @@ -86,8 +86,6 @@ namespace JSC { protected: - RefPtr m_globalData; - size_t m_registerArraySize; Register m_globalCallFrame[RegisterFile::CallFrameHeaderSize]; @@ -302,7 +300,7 @@ namespace JSC { void resetPrototype(JSGlobalData&, JSValue prototype); - JSGlobalData& globalData() const { return *m_globalData.get(); } + JSGlobalData& globalData() const { return *Heap::heap(this)->globalData(); } static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) { @@ -358,7 +356,7 @@ namespace JSC { inline JSGlobalObject* asGlobalObject(JSValue value) { ASSERT(asObject(value)->isGlobalObject()); - return static_cast(asObject(value)); + return jsCast(asObject(value)); } inline void JSGlobalObject::setRegisters(WriteBarrier* registers, PassOwnArrayPtr > registerArray, size_t count) -- cgit v1.2.1