Changeset 34054 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 22, 2008, 11:09:33 PM (17 years ago)
Author:
Adam Roben
Message:

Show "(Function object)" instead of "(JSInpectorCallbackWrapper object)" in profiles

Reviewed by Kevin McCullough.

  • profiler/Profiler.cpp: (KJS::createCallIdentifier): Use JSObject::className instead of getting the class name from the ClassInfo directly. JSObject subclasses can override className to provide a custom class name, and it seems like we should honor that.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r34051 r34054  
     12008-05-22  Adam Roben  <[email protected]>
     2
     3        Show "(Function object)" instead of "(JSInpectorCallbackWrapper
     4        object)" in profiles
     5
     6        Reviewed by Kevin McCullough.
     7
     8        * profiler/Profiler.cpp:
     9        (KJS::createCallIdentifier): Use JSObject::className instead of
     10        getting the class name from the ClassInfo directly. JSObject
     11        subclasses can override className to provide a custom class name, and
     12        it seems like we should honor that.
     13
    1142008-05-22  Timothy Hatcher  <[email protected]>
    215
  • trunk/JavaScriptCore/profiler/Profiler.cpp

    r34047 r34054  
    161161        return CallIdentifier(static_cast<InternalFunctionImp*>(calledFunction)->functionName().ustring(), "", 0);
    162162
    163     UString name = "(";
    164     name += calledFunction->classInfo()->className;
    165     name += " object)";
     163    UString name = "(" + calledFunction->className() + " object)";
    166164    return CallIdentifier(name, 0, 0);
    167165}
Note: See TracChangeset for help on using the changeset viewer.