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


Ignore:
Timestamp:
Nov 18, 2002, 11:57:11 PM (23 years ago)
Author:
darin
Message:

JavaScriptCore:

  • reduced the creation of Value objects and hoisted the property map into Object for another gain of about 6%
  • JavaScriptCore.pbproj/project.pbxproj: Made property_map.h public.
  • kjs/array_object.cpp: (compareWithCompareFunctionForQSort): Don't wrap the ValueImp * in a Value just to add it to a list. (ArrayProtoFuncImp::call): Pass the globalObject directly so we don't have to ref/deref.
  • kjs/function.cpp: (FunctionImp::call): Use a reference for the global object to avoid ref/deref. (GlobalFuncImp::call): Ditto.
  • kjs/internal.cpp: (BooleanImp::toObject): Put the object directly into the list, don't create a Value. (StringImp::toObject): Ditto. (NumberImp::toObject): Ditto. (InterpreterImp::evaluate): Use a reference for the global object.
  • kjs/internal.h: Return a reference for the global object.
  • kjs/interpreter.cpp: (Interpreter::globalObject): Ditto.
  • kjs/interpreter.h: Ditto.
  • kjs/object.cpp: Use _prop directly in the object, not a separate pointer.
  • kjs/object.h: Ditto.
  • kjs/types.cpp: Added List methods that work directly with ValueImp. (List::append): Added a ValueImp version. (List::prepend): Ditto. (List::appendList): Work directly with the ValueImp's. (List::prependList): Ditto. (List::copy): Use appendList. (List::empty): Use a shared global List.
  • kjs/types.h: Update for above changes.

WebCore:

  • force-js-clean-timestamp: Another Object change.
File:
1 edited

Legend:

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

    r2749 r2753  
    4141#include "types.h"
    4242#include "reference_list.h"
     43#include "property_map.h"
    4344
    4445namespace KJS {
    4546
    46   class PropertyMap;
    4747  class HashTable;
    4848  class HashEntry;
     
    583583  private:
    584584    const HashEntry* findPropertyHashEntry( const UString& propertyName ) const;
    585     PropertyMap *_prop;
     585    PropertyMap _prop;
    586586    ValueImp *_proto;
    587587    ValueImp *_internalValue;
Note: See TracChangeset for help on using the changeset viewer.