Ignore:
Timestamp:
Sep 19, 2011, 6:21:51 PM (14 years ago)
Author:
[email protected]
Message:

Removed lots of friend declarations from JSCell, so we can more
effectively make use of private and protected.

Reviewed by Sam Weinig.

  • runtime/JSCell.h: Removed MSVCBugWorkaround because it was a lot of

confusion for not much safety.
(JSC::JSCell::operator new): Made this public because it is used by a
few clients, and not really dangerous.

  • runtime/JSObject.cpp:

(JSC::JSObject::put):
(JSC::JSObject::deleteProperty):
(JSC::JSObject::defineGetter):
(JSC::JSObject::defineSetter):
(JSC::JSObject::getPropertySpecificValue):
(JSC::JSObject::getOwnPropertyNames):
(JSC::JSObject::seal):
(JSC::JSObject::freeze):
(JSC::JSObject::preventExtensions):
(JSC::JSObject::removeDirect):
(JSC::JSObject::createInheritorID):
(JSC::JSObject::allocatePropertyStorage):
(JSC::JSObject::getOwnPropertyDescriptor):

  • runtime/JSObject.h:

(JSC::JSObject::getDirect):
(JSC::JSObject::getDirectLocation):
(JSC::JSObject::hasCustomProperties):
(JSC::JSObject::hasGetterSetterProperties):
(JSC::JSObject::isSealed):
(JSC::JSObject::isFrozen):
(JSC::JSObject::isExtensible):
(JSC::JSObject::flattenDictionaryObject):
(JSC::JSObject::finishCreation):
(JSC::JSObject::prototype):
(JSC::JSObject::setPrototype):
(JSC::JSObject::inlineGetOwnPropertySlot):
(JSC::JSCell::fastGetOwnProperty):
(JSC::JSObject::putDirectInternal):
(JSC::JSObject::putDirectWithoutTransition):
(JSC::JSObject::transitionTo):
(JSC::JSObject::visitChildrenDirect): Changed all use of m_structure to
structure() / setStructure(), so we don't have to be a friend of JSCell.

  • runtime/Structure.h:

(JSC::JSCell::setStructure): Added, to avoid direct access by JSObject
to JSCell::m_structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r95501 r95503  
     12011-09-19  Geoffrey Garen  <[email protected]>
     2
     3        Removed lots of friend declarations from JSCell, so we can more
     4        effectively make use of private and protected.
     5
     6        Reviewed by Sam Weinig.
     7
     8        * runtime/JSCell.h: Removed MSVCBugWorkaround because it was a lot of
     9        confusion for not much safety.
     10        (JSC::JSCell::operator new): Made this public because it is used by a
     11        few clients, and not really dangerous.
     12
     13        * runtime/JSObject.cpp:
     14        (JSC::JSObject::put):
     15        (JSC::JSObject::deleteProperty):
     16        (JSC::JSObject::defineGetter):
     17        (JSC::JSObject::defineSetter):
     18        (JSC::JSObject::getPropertySpecificValue):
     19        (JSC::JSObject::getOwnPropertyNames):
     20        (JSC::JSObject::seal):
     21        (JSC::JSObject::freeze):
     22        (JSC::JSObject::preventExtensions):
     23        (JSC::JSObject::removeDirect):
     24        (JSC::JSObject::createInheritorID):
     25        (JSC::JSObject::allocatePropertyStorage):
     26        (JSC::JSObject::getOwnPropertyDescriptor):
     27        * runtime/JSObject.h:
     28        (JSC::JSObject::getDirect):
     29        (JSC::JSObject::getDirectLocation):
     30        (JSC::JSObject::hasCustomProperties):
     31        (JSC::JSObject::hasGetterSetterProperties):
     32        (JSC::JSObject::isSealed):
     33        (JSC::JSObject::isFrozen):
     34        (JSC::JSObject::isExtensible):
     35        (JSC::JSObject::flattenDictionaryObject):
     36        (JSC::JSObject::finishCreation):
     37        (JSC::JSObject::prototype):
     38        (JSC::JSObject::setPrototype):
     39        (JSC::JSObject::inlineGetOwnPropertySlot):
     40        (JSC::JSCell::fastGetOwnProperty):
     41        (JSC::JSObject::putDirectInternal):
     42        (JSC::JSObject::putDirectWithoutTransition):
     43        (JSC::JSObject::transitionTo):
     44        (JSC::JSObject::visitChildrenDirect): Changed all use of m_structure to
     45        structure() / setStructure(), so we don't have to be a friend of JSCell.
     46
     47        * runtime/Structure.h:
     48        (JSC::JSCell::setStructure): Added, to avoid direct access by JSObject
     49        to JSCell::m_structure.
     50
    1512011-09-19  Adam Barth  <[email protected]>
    252
Note: See TracChangeset for help on using the changeset viewer.