Ignore:
Timestamp:
May 7, 2009, 3:52:19 PM (16 years ago)
Author:
[email protected]
Message:

Improve native call performance

Reviewed by Gavin Barraclough.

Fix the windows build by adding calling convention declarations everywhere,
chose fastcall as that seemed most sensible given we were having to declare
the convention explicitly. In addition switched to fastcall on mac in the
deluded belief that documented fastcall behavior on windows would match
actual its actual behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/DateConstructor.cpp

    r43222 r43372  
    4949ASSERT_CLASS_FITS_IN_CELL(DateConstructor);
    5050
    51 static JSValue dateParse(ExecState*, JSObject*, JSValue, const ArgList&);
    52 static JSValue dateNow(ExecState*, JSObject*, JSValue, const ArgList&);
    53 static JSValue dateUTC(ExecState*, JSObject*, JSValue, const ArgList&);
     51static JSValue JSC_HOST_CALL dateParse(ExecState*, JSObject*, JSValue, const ArgList&);
     52static JSValue JSC_HOST_CALL dateNow(ExecState*, JSObject*, JSValue, const ArgList&);
     53static JSValue JSC_HOST_CALL dateUTC(ExecState*, JSObject*, JSValue, const ArgList&);
    5454
    5555DateConstructor::DateConstructor(ExecState* exec, PassRefPtr<Structure> structure, Structure* prototypeFunctionStructure, DatePrototype* datePrototype)
     
    125125
    126126// ECMA 15.9.2
    127 static JSValue callDate(ExecState* exec, JSObject*, JSValue, const ArgList&)
     127static JSValue JSC_HOST_CALL callDate(ExecState* exec, JSObject*, JSValue, const ArgList&)
    128128{
    129129    time_t localTime = time(0);
     
    140140}
    141141
    142 static JSValue dateParse(ExecState* exec, JSObject*, JSValue, const ArgList& args)
     142static JSValue JSC_HOST_CALL dateParse(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    143143{
    144144    return jsNumber(exec, parseDate(args.at(0).toString(exec)));
    145145}
    146146
    147 static JSValue dateNow(ExecState* exec, JSObject*, JSValue, const ArgList&)
     147static JSValue JSC_HOST_CALL dateNow(ExecState* exec, JSObject*, JSValue, const ArgList&)
    148148{
    149149    return jsNumber(exec, getCurrentUTCTime());
    150150}
    151151
    152 static JSValue dateUTC(ExecState* exec, JSObject*, JSValue, const ArgList& args)
     152static JSValue JSC_HOST_CALL dateUTC(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    153153{
    154154    int n = args.size();
Note: See TracChangeset for help on using the changeset viewer.