Ignore:
Timestamp:
May 5, 2009, 4:34:23 AM (16 years ago)
Author:
[email protected]
Message:

Bug 25559: Improve native function call performance
<https://bugs.webkit.org/show_bug.cgi?id=25559>

Reviewed by Gavin Barraclough

In order to cache calls to native functions we now make the standard
prototype functions use a small assembly thunk that converts the JS
calling convention into the native calling convention. As this is
only beneficial in the JIT we use the NativeFunctionWrapper typedef
to alternate between PrototypeFunction and JSFunction to keep the
code sane. This change from PrototypeFunction to NativeFunctionWrapper
is the bulk of this patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSGlobalObject.h

    r43122 r43220  
    2525#include "JSGlobalData.h"
    2626#include "JSVariableObject.h"
     27#include "NativeFunctionWrapper.h"
    2728#include "NumberPrototype.h"
    2829#include "StringPrototype.h"
     
    108109
    109110            GlobalEvalFunction* evalFunction;
    110             PrototypeFunction* callFunction;
    111             PrototypeFunction* applyFunction;
     111            NativeFunctionWrapper* callFunction;
     112            NativeFunctionWrapper* applyFunction;
    112113
    113114            ObjectPrototype* objectPrototype;
Note: See TracChangeset for help on using the changeset viewer.