[Webkit-unassigned] [Bug 36839] Web Inspector: Adds the ability to get the function symbol name when looking up call location.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 6 09:57:05 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=36839
Yury Semikhatsky <yurys at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #52645|review?, commit-queue? |review-
Flag| |
--- Comment #7 from Yury Semikhatsky <yurys at chromium.org> 2010-04-06 09:57:05 PST ---
(From update of attachment 52645)
> + // Compile JavaScript function for retrieving the source line, the source
> + // name and the symbol name for the top JavaScript stack frame.
> + DEFINE_STATIC_LOCAL(const char*, lastCallFrame,
> + ("function lastCallFrame(exec_state) {"
> + " var frame = exec_state.frame(0);"
Please check that the stack is not empty before accessing first frame. TOT
WebKit already contains exec_state.frameCount() check, it seem that you copy
needs update.
> +
> + // Function for retrieving the source name, line number and function name for the top
> + // JavaScript stack frame.
> + //
> + // It will return true if the caller information was successfully retrieved and written
> + // into the function parameters, otherwise the function will return false. It may
> + // fail due to a stck overflow in the underlying JavaScript implentation, handling
> + // of such exception is up to the caller.
> + static bool lastCallFrame(String& sourceName, int& lineNumber, String& funcName);
>
Consider naming it topCallFrame.
Please add frameCount check, otherwise r+.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list