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


Ignore:
Timestamp:
Aug 14, 2005, 9:27:13 AM (20 years ago)
Author:
darin
Message:

Reviewed by Maciej.

my measurements show an improvement of 2% on iBench JavaScript

  • kjs/property_map.h: (KJS::PropertyMap::PropertyMap): Made the default constructor inline.
  • kjs/property_map.cpp: (KJS::PropertyMap::~PropertyMap): Changed loop to exit early once we know we've processed all the hash table entries, based on the count. (KJS::PropertyMap::mark): Ditto.
  • kjs/object.h: Made an arbitrary change here to force recompiling so we pick up changes to property_map.h. Works around what seems to be an Xcode header dependency bug.
File:
1 edited

Legend:

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

    r10178 r10180  
    617617  };
    618618
    619     inline bool AllocatedValueImp::isObject(const ClassInfo *info) const
    620         { return isObject() && static_cast<const ObjectImp *>(this)->inherits(info); }
     619inline bool AllocatedValueImp::isObject(const ClassInfo *info) const
     620{
     621    return isObject() && static_cast<const ObjectImp *>(this)->inherits(info);
     622}
    621623
    622624inline ObjectImp::ObjectImp(ObjectImp *proto)
Note: See TracChangeset for help on using the changeset viewer.