Commit 2cb4f4dd authored by mhahnenberg@apple.com's avatar mhahnenberg@apple.com

CodeBlockSet::traceMarked doesn't need to visit the ownerExecutable

https://bugs.webkit.org/show_bug.cgi?id=127301

Reviewed by Oliver Hunt.

We used to just call CodeBlock::visitAggregate, but now we call visitChildren
on the ownerExecutable, which is unnecessary.

* heap/CodeBlockSet.cpp:
(JSC::CodeBlockSet::traceMarked):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 217aa287
2014-01-20 Mark Hahnenberg <mhahnenberg@apple.com>
CodeBlockSet::traceMarked doesn't need to visit the ownerExecutable
https://bugs.webkit.org/show_bug.cgi?id=127301
Reviewed by Oliver Hunt.
We used to just call CodeBlock::visitAggregate, but now we call visitChildren
on the ownerExecutable, which is unnecessary.
* heap/CodeBlockSet.cpp:
(JSC::CodeBlockSet::traceMarked):
2014-01-20 Anders Carlsson <andersca@apple.com>
Fix build.
......
......@@ -102,7 +102,7 @@ void CodeBlockSet::traceMarked(SlotVisitor& visitor)
CodeBlock* codeBlock = *iter;
if (!codeBlock->m_mayBeExecuting)
continue;
codeBlock->ownerExecutable()->methodTable()->visitChildren(codeBlock->ownerExecutable(), visitor);
codeBlock->visitAggregate(visitor);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment