summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/heap/StrongInlines.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/heap/StrongInlines.h')
-rw-r--r--Source/JavaScriptCore/heap/StrongInlines.h8
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);
}