X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9bcd318d5fa2a38139c9651d263a06c797529333..ba379fdc102753d6be2c4d937058fe40257329fe:/debugger/DebuggerCallFrame.cpp?ds=sidebyside diff --git a/debugger/DebuggerCallFrame.cpp b/debugger/DebuggerCallFrame.cpp index 27b824c..cd8702b 100644 --- a/debugger/DebuggerCallFrame.cpp +++ b/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(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;