Ignore:
Timestamp:
Sep 22, 2008, 2:04:45 PM (17 years ago)
Author:
Darin Adler
Message:

2008-09-22 Darin Adler <Darin Adler>

Reviewed by Sam Weinig.

3% or so speedup on DeltaBlue benchmark.

  • kjs/ArrayPrototype.cpp: (JSC::arrayProtoFuncPop): Call JSArray::pop when appropriate. (JSC::arrayProtoFuncPush): Call JSArray::push when appropriate.
  • kjs/JSArray.cpp: (JSC::JSArray::putSlowCase): Set m_fastAccessCutoff when appropriate, getting us into the fast code path. (JSC::JSArray::pop): Added. (JSC::JSArray::push): Added.
  • kjs/JSArray.h: Added push and pop.
  • kjs/operations.cpp: (JSC::throwOutOfMemoryError): Don't inline this. Helps us avoid PIC branches.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/operations.cpp

    r36764 r36778  
    116116}
    117117
    118 JSValue* throwOutOfMemoryError(ExecState* exec)
     118NEVER_INLINE JSValue* throwOutOfMemoryError(ExecState* exec)
    119119{
    120120    JSObject* error = Error::create(exec, GeneralError, "Out of memory");
Note: See TracChangeset for help on using the changeset viewer.