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

    r103083 r126721  
    3434    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    3535    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
     36
    3637    JSObject::visitChildren(thisObject, visitor);
    37     if (thisObject->m_internalValue)
    38         visitor.append(&thisObject->m_internalValue);
     38    visitor.append(&thisObject->m_internalValue);
    3939}
    4040
Note: See TracChangeset for help on using the changeset viewer.