]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - heap/LocalScope.h
JavaScriptCore-1218.tar.gz
[apple/javascriptcore.git] / heap / LocalScope.h
index cd27b32ef0e50cd4f15856ee3df6710735e65f75..ab896863c75c3ed5c999932126436068f5a48f78 100644 (file)
@@ -37,11 +37,11 @@ namespace JSC {
     LocalScope is similar in concept to NSAutoreleasePool.
 */
 
-class JSGlobalData;
+class VM;
 
 class LocalScope {
 public:
-    explicit LocalScope(JSGlobalData&);
+    explicit LocalScope(VM&);
     ~LocalScope();
     
     template <typename T> Local<T> release(Local<T>); // Destroys all other locals in the scope.
@@ -51,8 +51,8 @@ private:
     HandleStack::Frame m_lastFrame;
 };
 
-inline LocalScope::LocalScope(JSGlobalData& globalData)
-    : m_handleStack(globalData.heap.handleStack())
+inline LocalScope::LocalScope(VM& vm)
+    : m_handleStack(vm.heap.handleStack())
 {
     m_handleStack->enterScope(m_lastFrame);
 }