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

    r43122 r43372  
    3737    // is a 0.5% reduction.
    3838
    39     JSValue globalFuncEval(ExecState*, JSObject*, JSValue, const ArgList&);
    40     JSValue globalFuncParseInt(ExecState*, JSObject*, JSValue, const ArgList&);
    41     JSValue globalFuncParseFloat(ExecState*, JSObject*, JSValue, const ArgList&);
    42     JSValue globalFuncIsNaN(ExecState*, JSObject*, JSValue, const ArgList&);
    43     JSValue globalFuncIsFinite(ExecState*, JSObject*, JSValue, const ArgList&);
    44     JSValue globalFuncDecodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
    45     JSValue globalFuncDecodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
    46     JSValue globalFuncEncodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
    47     JSValue globalFuncEncodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
    48     JSValue globalFuncEscape(ExecState*, JSObject*, JSValue, const ArgList&);
    49     JSValue globalFuncUnescape(ExecState*, JSObject*, JSValue, const ArgList&);
     39    JSValue JSC_HOST_CALL globalFuncEval(ExecState*, JSObject*, JSValue, const ArgList&);
     40    JSValue JSC_HOST_CALL globalFuncParseInt(ExecState*, JSObject*, JSValue, const ArgList&);
     41    JSValue JSC_HOST_CALL globalFuncParseFloat(ExecState*, JSObject*, JSValue, const ArgList&);
     42    JSValue JSC_HOST_CALL globalFuncIsNaN(ExecState*, JSObject*, JSValue, const ArgList&);
     43    JSValue JSC_HOST_CALL globalFuncIsFinite(ExecState*, JSObject*, JSValue, const ArgList&);
     44    JSValue JSC_HOST_CALL globalFuncDecodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
     45    JSValue JSC_HOST_CALL globalFuncDecodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
     46    JSValue JSC_HOST_CALL globalFuncEncodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
     47    JSValue JSC_HOST_CALL globalFuncEncodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
     48    JSValue JSC_HOST_CALL globalFuncEscape(ExecState*, JSObject*, JSValue, const ArgList&);
     49    JSValue JSC_HOST_CALL globalFuncUnescape(ExecState*, JSObject*, JSValue, const ArgList&);
    5050#ifndef NDEBUG
    51     JSValue globalFuncJSCPrint(ExecState*, JSObject*, JSValue, const ArgList&);
     51    JSValue JSC_HOST_CALL globalFuncJSCPrint(ExecState*, JSObject*, JSValue, const ArgList&);
    5252#endif
    5353
Note: See TracChangeset for help on using the changeset viewer.