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


Ignore:
Timestamp:
Nov 20, 2002, 1:12:14 PM (23 years ago)
Author:
darin
Message:
  • decrease ref/deref -- 5% speedup in iBench
  • JavaScriptCore.pbproj/project.pbxproj: Added array_instance.h
  • kjs/array_instance.h: Added so it can be shared by function.h.
  • kjs/array_object.cpp:
  • kjs/array_object.h:
  • kjs/bool_object.cpp:
  • kjs/bool_object.h:
  • kjs/collector.cpp:
  • kjs/date_object.cpp:
  • kjs/date_object.h:
  • kjs/error_object.cpp:
  • kjs/function.cpp:
  • kjs/function.h:
  • kjs/function_object.cpp:
  • kjs/internal.cpp:
  • kjs/internal.h:
  • kjs/math_object.cpp:
  • kjs/nodes.cpp:
  • kjs/number_object.cpp:
  • kjs/object.cpp:
  • kjs/object.h:
  • kjs/object_object.cpp:
  • kjs/property_map.cpp:
  • kjs/reference.cpp:
  • kjs/reference.h:
  • kjs/regexp_object.cpp:
  • kjs/string_object.cpp:
  • kjs/string_object.h:
  • kjs/value.cpp:
  • kjs/value.h: Switched lots of interfaces so they don't require ref/deref.
File:
1 edited

Legend:

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

    r2772 r2783  
    370370     */
    371371    ObjectImp(const Object &proto);
     372    ObjectImp(ObjectImp *proto);
    372373
    373374    /**
     
    525526     * It's simply a quick way to remove everything before destroying.
    526527     */
    527     void deleteAllProperties( ExecState * );
     528    void deleteAllProperties(ExecState *);
    528529
    529530    /**
     
    572573    Value internalValue() const;
    573574    void setInternalValue(const Value &v);
     575    void setInternalValue(ValueImp *v);
    574576
    575577    Value toPrimitive(ExecState *exec,
     
    580582    Object toObject(ExecState *exec) const;
    581583
    582     ValueImp* getDirect(const Identifier& propertyName) const;
     584    // This get method only looks at the property map.
     585    // A bit like hasProperty(recursive=false), this doesn't go to the prototype.
     586    // This is used e.g. by lookupOrCreateFunction (to cache a function, we don't want
     587    // to look up in the prototype, it might already exist there)
     588    ValueImp *getDirect(const Identifier& propertyName) const
     589        { return _prop.get(propertyName); }
     590    void putDirect(const Identifier &propertyName, ValueImp *value, int attr = 0);
     591    void putDirect(const Identifier &propertyName, int value, int attr = 0);
     592
    583593  private:
    584594    const HashEntry* findPropertyHashEntry( const Identifier& propertyName ) const;
Note: See TracChangeset for help on using the changeset viewer.