Changeset 36286 in webkit for trunk/JavaScriptCore/kjs/lookup.h


Ignore:
Timestamp:
Sep 9, 2008, 12:58:53 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-09 Maciej Stachowiak <[email protected]>

Reviewed by Sam Weinig.


  • allow polymorphic inline cache to handle Math object functions and possibly other similar things


1.012x speedup on SunSpider.

  • kjs/MathObject.cpp: (JSC::MathObject::getOwnPropertySlot):
  • kjs/lookup.cpp: (JSC::setUpStaticFunctionSlot):
  • kjs/lookup.h: (JSC::getStaticPropertySlot):
File:
1 edited

Legend:

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

    r36264 r36286  
    146146
    147147        if (entry->attributes & Function)
    148             slot.setStaticEntry(thisObj, entry, staticFunctionGetter);
     148            setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot);
    149149        else
    150150            slot.setStaticEntry(thisObj, entry, staticValueGetter<ThisImp>);
Note: See TracChangeset for help on using the changeset viewer.