Changeset 43774 in webkit
- Timestamp:
- May 15, 2009 11:13:28 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r43751 r43774 1 2009-05-15 Francisco Tolmasky <francisco@280north.com> 2 3 BUG 25467: JavaScript debugger should use function.displayName as the function's name in the call stack 4 <https://bugs.webkit.org/show_bug.cgi?id=25467> 5 6 Reviewed by Adam Roben. 7 8 * JavaScriptCore.exp: Added calculatedFunctionName 9 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def: Added calculatedFunctionName 10 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Added calculatedFunctionName 11 * debugger/DebuggerCallFrame.cpp: Added calculatedFunctionName to match existing one in ProfileNode. 12 (JSC::DebuggerCallFrame::calculatedFunctionName): 13 * debugger/DebuggerCallFrame.h: Added calculatedFunctionName to match existing one in ProfileNode. 14 1 15 2009-05-14 Gavin Barraclough <barraclough@apple.com> 2 16 -
trunk/JavaScriptCore/JavaScriptCore.exp
r43663 r43774 330 330 __ZNK3JSC17DebuggerCallFrame10thisObjectEv 331 331 __ZNK3JSC17DebuggerCallFrame12functionNameEv 332 __ZNK3JSC17DebuggerCallFrame22calculatedFunctionNameEv 332 333 __ZNK3JSC17DebuggerCallFrame4typeEv 333 334 __ZNK3JSC17DebuggerCallFrame8evaluateERKNS_7UStringERNS_7JSValueE -
trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
r43663 r43774 48 48 ?attach@Debugger@JSC@@QAEXPAVJSGlobalObject@2@@Z 49 49 ?broadcast@ThreadCondition@WTF@@QAEXXZ 50 ?calculatedFunctionName@DebuggerCallFrame@JSC@@QBE?AVUString@2@XZ 50 51 ?call@JSC@@YA?AVJSValue@1@PAVExecState@1@V21@W4CallType@1@ABTCallData@1@1ABVArgList@1@@Z 51 52 ?callOnMainThread@WTF@@YAXP6AXPAX@Z0@Z -
trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def
r43663 r43774 48 48 ?attach@Debugger@JSC@@QAEXPAVJSGlobalObject@2@@Z 49 49 ?broadcast@ThreadCondition@WTF@@QAEXXZ 50 ?calculatedFunctionName@DebuggerCallFrame@JSC@@QBE?AVUString@2@XZ 50 51 ?call@JSC@@YA?AVJSValue@1@PAVExecState@1@V21@W4CallType@1@ABTCallData@1@1ABVArgList@1@@Z 51 52 ?callOnMainThread@WTF@@YAXP6AXPAX@Z0@Z -
trunk/JavaScriptCore/debugger/DebuggerCallFrame.cpp
r43153 r43774 47 47 return &function->name(&m_callFrame->globalData()); 48 48 } 49 50 UString DebuggerCallFrame::calculatedFunctionName() const 51 { 52 if (!m_callFrame->codeBlock()) 53 return 0; 54 55 JSFunction* function = static_cast<JSFunction*>(m_callFrame->callee()); 56 if (!function) 57 return 0; 58 return function->calculatedDisplayName(&m_callFrame->globalData()); 59 } 49 60 50 61 DebuggerCallFrame::Type DebuggerCallFrame::type() const -
trunk/JavaScriptCore/debugger/DebuggerCallFrame.h
r43153 r43774 52 52 const ScopeChainNode* scopeChain() const { return m_callFrame->scopeChain(); } 53 53 const UString* functionName() const; 54 UString calculatedFunctionName() const; 54 55 Type type() const; 55 56 JSObject* thisObject() const; -
trunk/WebCore/ChangeLog
r43770 r43774 1 2009-05-15 Francisco Tolmasky <francisco@280north.com> 2 3 BUG 25467: JavaScript debugger should use function.displayName as the function's name in the call stack 4 <https://bugs.webkit.org/show_bug.cgi?id=25467> 5 6 Reviewed by Adam Roben. 7 8 * inspector/JavaScriptCallFrame.cpp: 9 (WebCore::JavaScriptCallFrame::functionName): Use calculatedFunctionName which takes into account displayName 10 * inspector/front-end/CallStackSidebarPane.js: Remove "|| anonymous function" since it is handled internally just like in profiles 11 (WebInspector.CallStackSidebarPane.prototype.update): 12 1 13 2009-05-15 Alexey Proskuryakov <ap@webkit.org> 2 14 -
trunk/WebCore/inspector/JavaScriptCallFrame.cpp
r43761 r43774 40 40 41 41 namespace WebCore { 42 42 43 43 JavaScriptCallFrame::JavaScriptCallFrame(const DebuggerCallFrame& debuggerCallFrame, PassRefPtr<JavaScriptCallFrame> caller, intptr_t sourceID, int line) 44 44 : m_debuggerCallFrame(debuggerCallFrame) … … 68 68 if (!m_isValid) 69 69 return String(); 70 const UString* functionName = m_debuggerCallFrame.functionName();71 if ( !functionName)70 UString functionName = m_debuggerCallFrame.calculatedFunctionName(); 71 if (functionName.isEmpty()) 72 72 return String(); 73 return *functionName;73 return functionName; 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.