Changeset 162377 in webkit


Ignore:
Timestamp:
Jan 20, 2014 2:17:22 PM (10 years ago)
Author:
mhahnenberg@apple.com
Message:

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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r162367 r162377  
     12014-01-20  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        CodeBlockSet::traceMarked doesn't need to visit the ownerExecutable
     4        https://bugs.webkit.org/show_bug.cgi?id=127301
     5
     6        Reviewed by Oliver Hunt.
     7
     8        We used to just call CodeBlock::visitAggregate, but now we call visitChildren
     9        on the ownerExecutable, which is unnecessary.
     10
     11        * heap/CodeBlockSet.cpp:
     12        (JSC::CodeBlockSet::traceMarked):
     13
    1142014-01-20  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/JavaScriptCore/heap/CodeBlockSet.cpp

    r161615 r162377  
    103103        if (!codeBlock->m_mayBeExecuting)
    104104            continue;
    105         codeBlock->ownerExecutable()->methodTable()->visitChildren(codeBlock->ownerExecutable(), visitor);
     105        codeBlock->visitAggregate(visitor);
    106106    }
    107107}
Note: See TracChangeset for help on using the changeset viewer.