]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - heap/HandleStack.cpp
JavaScriptCore-1097.13.tar.gz
[apple/javascriptcore.git] / heap / HandleStack.cpp
index ada4f9927831730cee57900991364b3f76ba6d89..42eb326a5950e3e246609276fe74f29a962ec919 100644 (file)
  */
 
 #include "config.h"
-
 #include "HandleStack.h"
 
-#include "MarkStack.h"
+#include "HeapRootVisitor.h"
+#include "JSValueInlineMethods.h"
+#include "JSObject.h"
 
 namespace JSC {
 
@@ -39,7 +40,7 @@ HandleStack::HandleStack()
     grow();
 }
 
-void HandleStack::mark(HeapRootVisitor& heapRootMarker)
+void HandleStack::visit(HeapRootVisitor& heapRootVisitor)
 {
     const Vector<HandleSlot>& blocks = m_blockStack.blocks();
     size_t blockLength = m_blockStack.blockLength;
@@ -47,10 +48,10 @@ void HandleStack::mark(HeapRootVisitor& heapRootMarker)
     int end = blocks.size() - 1;
     for (int i = 0; i < end; ++i) {
         HandleSlot block = blocks[i];
-        heapRootMarker.mark(block, blockLength);
+        heapRootVisitor.visit(block, blockLength);
     }
     HandleSlot block = blocks[end];
-    heapRootMarker.mark(block, m_frame.m_next - block);
+    heapRootVisitor.visit(block, m_frame.m_next - block);
 }
 
 void HandleStack::grow()