Changeset 95358 in webkit


Ignore:
Timestamp:
Sep 16, 2011 7:57:36 PM (13 years ago)
Author:
weinig@apple.com
Message:

Rename APIValueWrapper type to APIValueWrapperType for consistency
https://bugs.webkit.org/show_bug.cgi?id=68306

Reviewed by Anders Carlsson.

  • runtime/JSAPIValueWrapper.h:

(JSC::JSAPIValueWrapper::createStructure):
Update name.

  • runtime/JSType.h:

Update name and un-indent.

  • runtime/Structure.h:

(JSC::JSCell::isAPIValueWrapper):
Update name.

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r95357 r95358  
     12011-09-16  Sam Weinig  <sam@webkit.org>
     2
     3        Rename APIValueWrapper type to APIValueWrapperType for consistency
     4        https://bugs.webkit.org/show_bug.cgi?id=68306
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * runtime/JSAPIValueWrapper.h:
     9        (JSC::JSAPIValueWrapper::createStructure):
     10        Update name.
     11
     12        * runtime/JSType.h:
     13        Update name and un-indent.
     14
     15        * runtime/Structure.h:
     16        (JSC::JSCell::isAPIValueWrapper):
     17        Update name.
     18
    1192011-09-16  Sam Weinig  <sam@webkit.org>
    220
  • trunk/Source/JavaScriptCore/runtime/JSAPIValueWrapper.h

    r94931 r95358  
    4040        static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
    4141        {
    42             return Structure::create(globalData, globalObject, prototype, TypeInfo(APIValueWrapper, OverridesVisitChildren | OverridesGetPropertyNames), &s_info);
     42            return Structure::create(globalData, globalObject, prototype, TypeInfo(APIValueWrapperType, OverridesVisitChildren | OverridesGetPropertyNames), &s_info);
    4343        }
    4444       
  • trunk/Source/JavaScriptCore/runtime/JSType.h

    r95326 r95358  
    2424namespace JSC {
    2525
    26     /**
    27      * Primitive types
    28      */
    29     enum JSType {
    30         UnspecifiedType   = 0,
    31         UndefinedType     = 1,
    32         BooleanType       = 2,
    33         NumberType        = 3,
    34         NullType          = 4,
    35         StringType        = 5,
    36         LeafType          = 6,
    37         // The CompoundType value must come before any JSType that may have children
    38         CompoundType      = 7,
    39         GetterSetterType  = 8,
    40         APIValueWrapper   = 9,
    41         // The ObjectType value must come before any JSType that is a subclass of JSObject
    42         ObjectType        = 10,
    43         FinalObjectType   = 11,
    44     };
     26enum JSType {
     27    UnspecifiedType     = 0,
     28    UndefinedType       = 1,
     29    BooleanType         = 2,
     30    NumberType          = 3,
     31    NullType            = 4,
     32    StringType          = 5,
     33    LeafType            = 6,
     34
     35    // The CompoundType value must come before any JSType that may have children.
     36    CompoundType        = 7,
     37    GetterSetterType    = 8,
     38    APIValueWrapperType = 9,
     39
     40    // The ObjectType value must come before any JSType that is a subclass of JSObject.
     41    ObjectType          = 10,
     42    FinalObjectType     = 11,
     43};
    4544
    4645} // namespace JSC
  • trunk/Source/JavaScriptCore/runtime/Structure.h

    r95326 r95358  
    323323    inline bool JSCell::isAPIValueWrapper() const
    324324    {
    325         return m_structure->typeInfo().type() == APIValueWrapper;
     325        return m_structure->typeInfo().type() == APIValueWrapperType;
    326326    }
    327327
Note: See TracChangeset for help on using the changeset viewer.