X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..refs/heads/master:/heap/StrongInlines.h diff --git a/heap/StrongInlines.h b/heap/StrongInlines.h index 2308bf6..e1fbe90 100644 --- a/heap/StrongInlines.h +++ b/heap/StrongInlines.h @@ -26,29 +26,29 @@ #ifndef StrongInlines_h #define StrongInlines_h -#include "JSGlobalData.h" +#include "VM.h" namespace JSC { template -inline Strong::Strong(JSGlobalData& globalData, ExternalType value) - : Handle(globalData.heap.handleSet()->allocate()) +inline Strong::Strong(VM& vm, ExternalType value) + : Handle(vm.heap.handleSet()->allocate()) { set(value); } template -inline Strong::Strong(JSGlobalData& globalData, Handle handle) - : Handle(globalData.heap.handleSet()->allocate()) +inline Strong::Strong(VM& vm, Handle handle) + : Handle(vm.heap.handleSet()->allocate()) { set(handle.get()); } template -inline void Strong::set(JSGlobalData& globalData, ExternalType value) +inline void Strong::set(VM& vm, ExternalType value) { if (!slot()) - setSlot(globalData.heap.handleSet()->allocate()); + setSlot(vm.heap.handleSet()->allocate()); set(value); }