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/MathObject.cpp

    r36263 r36286  
    107107
    108108    ASSERT(entry->attributes & Function);
    109     slot.setStaticEntry(this, entry, staticFunctionGetter);
     109    setUpStaticFunctionSlot(exec, entry, this, propertyName, slot);
    110110    return true;
    111111}
Note: See TracChangeset for help on using the changeset viewer.