Changeset 27413 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Nov 3, 2007, 6:08:04 PM (18 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Oliver.

Remove dummy variable from ClassInfo reducing the size of the struct by 1 word.
The variable had been kept around for binary compatibility, but since nothing
else is there is no point in continuing to keep it around.

  • API/JSCallbackConstructor.cpp: (KJS::):
  • API/JSCallbackFunction.cpp: (KJS::):
  • API/JSCallbackObject.cpp: (KJS::):
  • bindings/objc/objc_runtime.mm:
  • bindings/runtime_array.cpp:
  • bindings/runtime_object.cpp:
  • kjs/array_instance.cpp: (KJS::):
  • kjs/array_object.cpp: (KJS::):
  • kjs/bool_object.cpp:
  • kjs/date_object.cpp: (KJS::):
  • kjs/error_object.cpp:
  • kjs/function.cpp: (KJS::):
  • kjs/internal.cpp: (KJS::):
  • kjs/lookup.h:
  • kjs/math_object.cpp:
  • kjs/number_object.cpp:
  • kjs/object.h:
  • kjs/regexp_object.cpp:
  • kjs/string_object.cpp: (KJS::):

WebCore:

Reviewed by Oliver.

Remove dummy variable from ClassInfo reducing the size of the struct by 1 word.
The variable had been kept around for binary compatibility, but since nothing
else is there is no point in continuing to keep it around.

  • bindings/js/JSDOMExceptionConstructor.cpp: (WebCore::):
  • bindings/js/JSHTMLInputElementBase.cpp: (WebCore::):
  • bindings/js/JSNamedNodesCollection.cpp: (WebCore::):
  • bindings/js/JSXMLHttpRequest.cpp: (KJS::):
  • bindings/js/JSXSLTProcessor.cpp: (KJS::):
  • bindings/js/kjs_css.cpp: (WebCore::):
  • bindings/js/kjs_events.cpp: (WebCore::):
  • bindings/js/kjs_navigator.cpp: (KJS::):
  • bindings/js/kjs_window.cpp: (KJS::):
  • bindings/scripts/CodeGeneratorJS.pm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r27149 r27413  
    6363     * 0L if there is none.
    6464     */
    65     const ClassInfo *parentClass;
     65    const ClassInfo* parentClass;
    6666    /**
    6767     * Static hash-table of properties.
    6868     */
    69     const HashTable *propHashTable;
    70     /**
    71      * Reserved for future extension.
    72      */
    73     void *dummy;
     69    const HashTable* propHashTable;
    7470  };
    7571 
     
    150146     *
    151147     * \code
    152      *   const ClassInfo BarImp::info = {"Bar", 0, 0, 0}; // no parent class
    153      *   const ClassInfo FooImp::info = {"Foo", &BarImp::info, 0, 0};
     148     *   const ClassInfo BarImp::info = { "Bar", 0, 0 }; // no parent class
     149     *   const ClassInfo FooImp::info = { "Foo", &BarImp::info, 0 };
    154150     * \endcode
    155151     *
Note: See TracChangeset for help on using the changeset viewer.