Changeset 84795 in webkit


Ignore:
Timestamp:
Apr 25, 2011 1:16:06 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-25 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

PropertyMapHashTable should work with strict OwnPtr
https://bugs.webkit.org/show_bug.cgi?id=59337

This patch is in preparation for the strict OwnPtr hack-a-thon.

  • runtime/PropertyMapHashTable.h: (JSC::PropertyTable::PropertyTable): (JSC::PropertyTable::addDeletedOffset):
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r84792 r84795  
     12011-04-25  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        PropertyMapHashTable should work with strict OwnPtr
     6        https://bugs.webkit.org/show_bug.cgi?id=59337
     7
     8        This patch is in preparation for the strict OwnPtr hack-a-thon.
     9
     10        * runtime/PropertyMapHashTable.h:
     11        (JSC::PropertyTable::PropertyTable):
     12        (JSC::PropertyTable::addDeletedOffset):
     13
    1142011-04-25  Geoffrey Garen  <ggaren@apple.com>
    215
  • trunk/Source/JavaScriptCore/runtime/PropertyMapHashTable.h

    r84052 r84795  
    266266    Vector<unsigned>* otherDeletedOffsets = other.m_deletedOffsets.get();
    267267    if (otherDeletedOffsets)
    268         m_deletedOffsets.set(new Vector<unsigned>(*otherDeletedOffsets));
     268        m_deletedOffsets = adoptPtr(new Vector<unsigned>(*otherDeletedOffsets));
    269269}
    270270
     
    290290    Vector<unsigned>* otherDeletedOffsets = other.m_deletedOffsets.get();
    291291    if (otherDeletedOffsets)
    292         m_deletedOffsets.set(new Vector<unsigned>(*otherDeletedOffsets));
     292        m_deletedOffsets = adoptPtr(new Vector<unsigned>(*otherDeletedOffsets));
    293293}
    294294
     
    445445{
    446446    if (!m_deletedOffsets)
    447         m_deletedOffsets.set(new Vector<unsigned>);
     447        m_deletedOffsets = adoptPtr(new Vector<unsigned>);
    448448    m_deletedOffsets->append(offset);
    449449}
Note: See TracChangeset for help on using the changeset viewer.