Changeset 43372 in webkit for trunk/JavaScriptCore/interpreter


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/interpreter/CallFrame.h

    r43153 r43372  
    4141        CodeBlock* codeBlock() const { return this[RegisterFile::CodeBlock].Register::codeBlock(); }
    4242        ScopeChainNode* scopeChain() const { return this[RegisterFile::ScopeChain].Register::scopeChain(); }
     43        int argumentCount() const { return this[RegisterFile::ArgumentCount].i(); }
    4344
    4445        JSValue thisValue();
     
    108109        CallFrame& operator=(const Register& r) { *static_cast<Register*>(this) = r; return *this; }
    109110
    110         int argumentCount() const { return this[RegisterFile::ArgumentCount].i(); }
    111111        CallFrame* callerFrame() const { return this[RegisterFile::CallerFrame].callFrame(); }
    112112        Arguments* optionalCalleeArguments() const { return this[RegisterFile::OptionalCalleeArguments].arguments(); }
Note: See TracChangeset for help on using the changeset viewer.