*/
#include "config.h"
-
#include "HandleStack.h"
-#include "MarkStack.h"
+#include "HeapRootVisitor.h"
+#include "JSValueInlineMethods.h"
+#include "JSObject.h"
namespace JSC {
grow();
}
-void HandleStack::mark(HeapRootVisitor& heapRootMarker)
+void HandleStack::visit(HeapRootVisitor& heapRootVisitor)
{
const Vector<HandleSlot>& blocks = m_blockStack.blocks();
size_t blockLength = m_blockStack.blockLength;
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()