Changeset 34086 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
May 23, 2008, 12:12:31 PM (17 years ago)
Author:
[email protected]
Message:

2008-05-23 Geoffrey Garen <[email protected]>

Rolled out r34085 because it measured as a 7.6% performance regression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.cpp

    r34085 r34086  
    9292  }
    9393#endif
    94   JSValue* ret = callAsFunction(exec,thisObj,args);
    95 
     94    CallData data;
     95    JSValue *ret;
     96    if (this->getCallData(data) == CallTypeJS) {
     97        // A native function will enter the VM, which will allow the profiler
     98        // to detect entry
     99        ret = callAsFunction(exec,thisObj,args);
     100    } else {
     101        Profiler** profiler = Profiler::enabledProfilerReference();
     102        if (*profiler)
     103            (*profiler)->willExecute(exec, this);
     104       
     105        ret = callAsFunction(exec,thisObj,args);
     106       
     107        if (*profiler)
     108            (*profiler)->didExecute(exec, this);
     109    }
    96110#if KJS_MAX_STACK > 0
    97111  --depth;
Note: See TracChangeset for help on using the changeset viewer.