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/RegExpObject.cpp

    r116828 r126721  
    8282    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    8383    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
     84
    8485    Base::visitChildren(thisObject, visitor);
    85     if (thisObject->m_regExp)
    86         visitor.append(&thisObject->m_regExp);
    87     if (UNLIKELY(!thisObject->m_lastIndex.get().isInt32()))
    88         visitor.append(&thisObject->m_lastIndex);
     86    visitor.append(&thisObject->m_regExp);
     87    visitor.append(&thisObject->m_lastIndex);
    8988}
    9089
Note: See TracChangeset for help on using the changeset viewer.