Ignore:
Timestamp:
Aug 26, 2012, 8:57:02 PM (13 years ago)
Author:
[email protected]
Message:

Removed the NULL checks from visitChildren functions
https://bugs.webkit.org/show_bug.cgi?id=95021

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

As of http://trac.webkit.org/changeset/126624, all values are NULL-checked
during GC, so explicit NULL checks aren't needed anymore.

Source/WebCore:

As of http://trac.webkit.org/changeset/126624, all values are NULL-checked
during GC, so explicit NULL checks aren't needed anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Executable.cpp

    r126695 r126721  
    612612    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    613613    ScriptExecutable::visitChildren(thisObject, visitor);
    614     if (thisObject->m_nameValue)
    615         visitor.append(&thisObject->m_nameValue);
    616     if (thisObject->m_symbolTable)
    617         visitor.append(&thisObject->m_symbolTable);
     614    visitor.append(&thisObject->m_nameValue);
     615    visitor.append(&thisObject->m_symbolTable);
    618616    if (thisObject->m_codeBlockForCall)
    619617        thisObject->m_codeBlockForCall->visitAggregate(visitor);
Note: See TracChangeset for help on using the changeset viewer.