Ignore:
Timestamp:
Jul 29, 2011, 7:49:45 PM (14 years ago)
Author:
[email protected]
Message:

JSC GC zombie support no longer works, and is likely no longer needed.
https://bugs.webkit.org/show_bug.cgi?id=65404

Reviewed by Darin Adler.

This removes zombies, because they no longer work, are not tested, are
probably not needed, and are getting in the way of GC optimization
work.

(JSC::HandleConverter::operator->):
(JSC::HandleConverter::operator*):

  • heap/HandleHeap.cpp:

(JSC::HandleHeap::isValidWeakNode):

  • heap/Heap.cpp:

(JSC::Heap::destroy):
(JSC::Heap::collect):

  • heap/MarkedBlock.cpp:

(JSC::MarkedBlock::sweep):

  • heap/MarkedBlock.h:

(JSC::MarkedBlock::clearMarks):

  • interpreter/Register.h:

(JSC::Register::Register):
(JSC::Register::operator=):

  • runtime/ArgList.h:

(JSC::MarkedArgumentBuffer::append):
(JSC::ArgList::ArgList):

  • runtime/JSCell.cpp:

(JSC::isZombie):

  • runtime/JSCell.h:
  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::JSGlobalData):
(JSC::JSGlobalData::clearBuiltinStructures):

  • runtime/JSGlobalData.h:
  • runtime/JSValue.h:
  • runtime/JSValueInlineMethods.h:

(JSC::JSValue::JSValue):

  • runtime/JSZombie.cpp: Removed.
  • runtime/JSZombie.h: Removed.
  • runtime/WriteBarrier.h:

(JSC::WriteBarrierBase::setEarlyValue):
(JSC::WriteBarrierBase::operator*):
(JSC::WriteBarrierBase::setWithoutWriteBarrier):

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Handle.h

    r86883 r92046  
    8181    T* operator->()
    8282    {
    83 #if ENABLE(JSC_ZOMBIES)
    84         ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());
    85 #endif
    8683        return static_cast<Base*>(this)->get();
    8784    }
    8885    const T* operator->() const
    8986    {
    90 #if ENABLE(JSC_ZOMBIES)
    91         ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());
    92 #endif
    9387        return static_cast<const Base*>(this)->get();
    9488    }
     
    9690    T* operator*()
    9791    {
    98 #if ENABLE(JSC_ZOMBIES)
    99         ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());
    100 #endif
    10192        return static_cast<Base*>(this)->get();
    10293    }
    10394    const T* operator*() const
    10495    {
    105 #if ENABLE(JSC_ZOMBIES)
    106         ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());
    107 #endif
    10896        return static_cast<const Base*>(this)->get();
    10997    }
     
    120108    JSValue jsValue() const
    121109    {
    122 #if ENABLE(JSC_ZOMBIES)
    123         ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get().isZombie());
    124 #endif
    125110        return static_cast<const Base*>(this)->get();
    126111    }
Note: See TracChangeset for help on using the changeset viewer.