]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - heap/StrongInlines.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / heap / StrongInlines.h
index 2308bf6f66616c6f5bcc92b648895a5967828b4c..e1fbe90d2126c51cb097d68d4a337a2bc0b17ed2 100644 (file)
 #ifndef StrongInlines_h
 #define StrongInlines_h
 
-#include "JSGlobalData.h"
+#include "VM.h"
 
 namespace JSC {
 
 template <typename T>
-inline Strong<T>::Strong(JSGlobalData& globalData, ExternalType value)
-    : Handle<T>(globalData.heap.handleSet()->allocate())
+inline Strong<T>::Strong(VM& vm, ExternalType value)
+    : Handle<T>(vm.heap.handleSet()->allocate())
 {
     set(value);
 }
 
 template <typename T>
-inline Strong<T>::Strong(JSGlobalData& globalData, Handle<T> handle)
-    : Handle<T>(globalData.heap.handleSet()->allocate())
+inline Strong<T>::Strong(VM& vm, Handle<T> handle)
+    : Handle<T>(vm.heap.handleSet()->allocate())
 {
     set(handle.get());
 }
 
 template <typename T>
-inline void Strong<T>::set(JSGlobalData& globalData, ExternalType value)
+inline void Strong<T>::set(VM& vm, ExternalType value)
 {
     if (!slot())
-        setSlot(globalData.heap.handleSet()->allocate());
+        setSlot(vm.heap.handleSet()->allocate());
     set(value);
 }