diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 09:57:36 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 09:57:36 (GMT) |
commit | 336dfcef05cb63df0a6d550b59a4badc7a0f01c1 (patch) | |
tree | a218ec97413e0c8ebc9600ac5db9b2adea485b32 /src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp | |
parent | e44d64510e019e5d3b379b704cfb824e0d7ccc9d (diff) | |
download | Qt-336dfcef05cb63df0a6d550b59a4badc7a0f01c1.zip Qt-336dfcef05cb63df0a6d550b59a4badc7a0f01c1.tar.gz Qt-336dfcef05cb63df0a6d550b59a4badc7a0f01c1.tar.bz2 |
Merge of master
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp index 27b824c..cd8702b 100644 --- a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerCallFrame.cpp @@ -46,6 +46,17 @@ const UString* DebuggerCallFrame::functionName() const return 0; return &function->name(&m_callFrame->globalData()); } + +UString DebuggerCallFrame::calculatedFunctionName() const +{ + if (!m_callFrame->codeBlock()) + return 0; + + JSFunction* function = static_cast<JSFunction*>(m_callFrame->callee()); + if (!function) + return 0; + return function->calculatedDisplayName(&m_callFrame->globalData()); +} DebuggerCallFrame::Type DebuggerCallFrame::type() const { @@ -63,10 +74,10 @@ JSObject* DebuggerCallFrame::thisObject() const return asObject(m_callFrame->thisValue()); } -JSValuePtr DebuggerCallFrame::evaluate(const UString& script, JSValuePtr& exception) const +JSValue DebuggerCallFrame::evaluate(const UString& script, JSValue& exception) const { if (!m_callFrame->codeBlock()) - return noValue(); + return JSValue(); int errLine; UString errMsg; |