Ignore:
Timestamp:
Sep 22, 2015, 5:21:31 AM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r189616.
https://bugs.webkit.org/show_bug.cgi?id=149456

suspected cause of multiple regressions (Requested by kling on
#webkit).

Reverted changeset:

"[JSC] Weak should only accept cell pointees."
https://bugs.webkit.org/show_bug.cgi?id=148955
http://trac.webkit.org/changeset/189616

File:
1 edited

Legend:

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

    r190076 r190113  
    6363
    6464class SingleSlotTransitionWeakOwner final : public WeakHandleOwner {
    65     void finalize(JSCell*&, void* context) override
     65    void finalize(Handle<Unknown>, void* context) override
    6666    {
    6767        StructureTransitionTable* table = reinterpret_cast<StructureTransitionTable*>(context);
     
    8383    if (WeakImpl* impl = this->weakImpl()) {
    8484        if (impl->state() == WeakImpl::Live)
    85             return jsCast<Structure*>(impl->cell());
     85            return jsCast<Structure*>(impl->jsValue().asCell());
    8686    }
    8787    return nullptr;
     
    9393    if (WeakImpl* impl = this->weakImpl())
    9494        WeakSet::deallocate(impl);
    95     WeakImpl* impl = WeakSet::allocate(*structure, &singleSlotTransitionWeakOwner(), this);
     95    WeakImpl* impl = WeakSet::allocate(structure, &singleSlotTransitionWeakOwner(), this);
    9696    m_data = reinterpret_cast<intptr_t>(impl) | UsingSingleSlotFlag;
    9797}
Note: See TracChangeset for help on using the changeset viewer.