Changeset 98365 in webkit for trunk/Source/JavaScriptCore/heap


Ignore:
Timestamp:
Oct 25, 2011, 11:17:37 AM (14 years ago)
Author:
[email protected]
Message:

Need to support marking of multiple nested codeblocks when compiling
https://bugs.webkit.org/show_bug.cgi?id=70832

Reviewed by Gavin Barraclough.

When inlining a function we end up with multiple codeblocks being
compiled at the same time, so we need to support a list of live
codeblocks.

  • heap/Heap.cpp:

(JSC::Heap::markRoots):

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::JSGlobalData):

  • runtime/JSGlobalData.h:

(JSC::JSGlobalData::startedCompiling):
(JSC::JSGlobalData::finishedCompiling):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r98302 r98365  
    602602#endif
    603603   
    604     if (CodeBlock* codeBlock = m_globalData->codeBlockBeingCompiled) {
     604    if (m_globalData->codeBlocksBeingCompiled.size()) {
    605605        GCPHASE(VisitActiveCodeBlock);
    606         codeBlock->visitAggregate(visitor);
     606        for (size_t i = 0; i < m_globalData->codeBlocksBeingCompiled.size(); i++)
     607            m_globalData->codeBlocksBeingCompiled[i]->visitAggregate(visitor);
    607608    }
    608609   
Note: See TracChangeset for help on using the changeset viewer.