diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/JavaScriptCore/heap/StrongInlines.h | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/JavaScriptCore/heap/StrongInlines.h')
-rw-r--r-- | Source/JavaScriptCore/heap/StrongInlines.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/heap/StrongInlines.h b/Source/JavaScriptCore/heap/StrongInlines.h index 46049096a..2308bf6f6 100644 --- a/Source/JavaScriptCore/heap/StrongInlines.h +++ b/Source/JavaScriptCore/heap/StrongInlines.h @@ -26,18 +26,20 @@ #ifndef StrongInlines_h #define StrongInlines_h +#include "JSGlobalData.h" + namespace JSC { template <typename T> inline Strong<T>::Strong(JSGlobalData& globalData, ExternalType value) - : Handle<T>(globalData.heap.handleHeap()->allocate()) + : Handle<T>(globalData.heap.handleSet()->allocate()) { set(value); } template <typename T> inline Strong<T>::Strong(JSGlobalData& globalData, Handle<T> handle) - : Handle<T>(globalData.heap.handleHeap()->allocate()) + : Handle<T>(globalData.heap.handleSet()->allocate()) { set(handle.get()); } @@ -46,7 +48,7 @@ template <typename T> inline void Strong<T>::set(JSGlobalData& globalData, ExternalType value) { if (!slot()) - setSlot(globalData.heap.handleHeap()->allocate()); + setSlot(globalData.heap.handleSet()->allocate()); set(value); } |