Ignore:
Timestamp:
Jul 15, 2014, 2:05:43 PM (11 years ago)
Author:
[email protected]
Message:

Stores to PropertyTable use the Structure as the owner
https://bugs.webkit.org/show_bug.cgi?id=134595

Reviewed by Darin Adler.

Since PropertyTable is the object that does the marking of these references, it should be the owner.

Also removed some unused parameters to other methods that historically used the Structure as the owner.

  • runtime/JSPropertyNameIterator.h:

(JSC::StructureRareData::setEnumerationCache):

  • runtime/ObjectPrototype.cpp:

(JSC::objectProtoFuncToString):

  • runtime/PropertyMapHashTable.h:

(JSC::PropertyTable::copy):

  • runtime/PropertyTable.cpp:

(JSC::PropertyTable::clone):
(JSC::PropertyTable::PropertyTable):

  • runtime/Structure.cpp:

(JSC::Structure::Structure):
(JSC::Structure::materializePropertyMap):
(JSC::Structure::addPropertyTransition):
(JSC::Structure::changePrototypeTransition):
(JSC::Structure::despecifyFunctionTransition):
(JSC::Structure::attributeChangeTransition):
(JSC::Structure::toDictionaryTransition):
(JSC::Structure::preventExtensionsTransition):
(JSC::Structure::takePropertyTableOrCloneIfPinned):
(JSC::Structure::nonPropertyTransition):
(JSC::Structure::copyPropertyTable):
(JSC::Structure::copyPropertyTableForPinning):
(JSC::Structure::putSpecificValue):

  • runtime/Structure.h:

(JSC::Structure::setObjectToStringValue):
(JSC::Structure::setPreviousID):

  • runtime/StructureInlines.h:

(JSC::Structure::setEnumerationCache):

  • runtime/StructureRareData.h:
  • runtime/StructureRareDataInlines.h:

(JSC::StructureRareData::setPreviousID):
(JSC::StructureRareData::setObjectToStringValue):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/StructureRareDataInlines.h

    r161615 r171115  
    3636}
    3737
    38 inline void StructureRareData::setPreviousID(VM& vm, Structure*, Structure* structure)
     38inline void StructureRareData::setPreviousID(VM& vm, Structure* structure)
    3939{
    4040    m_previous.set(vm, this, structure);
     
    5151}
    5252
    53 inline void StructureRareData::setObjectToStringValue(VM& vm, const JSCell*, JSString* value)
     53inline void StructureRareData::setObjectToStringValue(VM& vm, JSString* value)
    5454{
    5555    m_objectToStringValue.set(vm, this, value);
Note: See TracChangeset for help on using the changeset viewer.