Changeset 36778 in webkit for trunk/JavaScriptCore/kjs/JSArray.h


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/JSArray.h

    r36726 r36778  
    5858        void sort(ExecState*, JSValue* compareFunction, CallType, const CallData&);
    5959
     60        void push(ExecState*, JSValue*);
     61        JSValue* pop();
     62
    6063        bool canGetIndex(unsigned i) { return i < m_fastAccessCutoff; }
    6164        JSValue* getIndex(unsigned i)
Note: See TracChangeset for help on using the changeset viewer.