Skip to content
  • weinig@apple.com's avatar
    2008-10-05 Sam Weinig <sam@webkit.org> · 1c52b486
    weinig@apple.com authored
            Reviewed by Maciej Stachowiak.
    
            Avoid an extra lookup when transitioning to an existing StructureID
            by caching the offset of property that caused the transition.
    
            1% win on V8 suite.  Wash on SunSpider.
    
            * kjs/PropertyMap.cpp:
            (JSC::PropertyMap::put):
            * kjs/PropertyMap.h:
            * kjs/StructureID.cpp:
            (JSC::StructureID::StructureID):
            (JSC::StructureID::addPropertyTransition):
            * kjs/StructureID.h:
            (JSC::StructureID::setCachedTransistionOffset):
            (JSC::StructureID::cachedTransistionOffset):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1c52b486