| Summary: | Factor out JITCode::typeName() for debugging use | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||||
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | ||||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 139274 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Mark Lam
2014-10-20 11:41:42 PDT
Created attachment 240133 [details]
the patch.
Comment on attachment 240133 [details] the patch. View in context: https://bugs.webkit.org/attachment.cgi?id=240133&action=review > Source/JavaScriptCore/jit/JITCode.cpp:54 > + case None: return "None"; > + case HostCallThunk: return "Host"; > + case InterpreterThunk: return "LLInt"; > + case BaselineJIT: return "Baseline"; > + case DFGJIT: return "DFG"; > + case FTLJIT: return "FTL"; Coding style is wrong here. Please reuse the existing style. Created attachment 240134 [details]
updated patch
Comment on attachment 240134 [details]
updated patch
r=me
Thanks for the review. Landed in r174897: <http://trac.webkit.org/r174897>. Comment on attachment 240134 [details] updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=240134&action=review > Source/JavaScriptCore/ChangeLog:9 > + JITCode's printInternal() currently decodes the JITType into a string and > + prints it. This change factors out the part that decodes the JITType into Why can't lldb call this directly? > Source/JavaScriptCore/jit/JITCode.cpp:257 > + out.print("%s", JSC::JITCode::typeName(type)); This is wrong. PrintStream::print() doesn't take a format string. Created attachment 242597 [details]
follow up patch to fix use of PrintStream::print().
Comment on attachment 242597 [details] follow up patch to fix use of PrintStream::print(). Fix already addressed in https://bugs.webkit.org/show_bug.cgi?id=139274. |