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

    r43220 r43372  
    8484        bool isHostFunction() const { return false; }
    8585#endif
     86        NativeFunction nativeFunction()
     87        {
     88            return *reinterpret_cast<NativeFunction*>(m_data);
     89        }
    8690    private:
    8791        virtual const ClassInfo* classInfo() const { return &info; }
     
    115119            *reinterpret_cast<ScopeChain*>(m_data) = sc;
    116120        }
    117         NativeFunction nativeFunction()
    118         {
    119             return *reinterpret_cast<NativeFunction*>(m_data);
    120         }
    121121        void setNativeFunction(NativeFunction func)
    122122        {
Note: See TracChangeset for help on using the changeset viewer.