WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137888
Factor out JITCode::typeName() for debugging use
https://bugs.webkit.org/show_bug.cgi?id=137888
Summary
Factor out JITCode::typeName() for debugging use
Mark Lam
Reported
2014-10-20 11:41:42 PDT
JITCode's printInternal() currently decodes the JITType into a string and prints it. This change factors out the part that decodes the JITType into JITCode::typeName() so that we can call it from lldb while debugging to quickly decode a JITType value.
Attachments
the patch.
(2.74 KB, patch)
2014-10-20 11:44 PDT
,
Mark Lam
ggaren
: review-
Details
Formatted Diff
Diff
updated patch
(2.80 KB, patch)
2014-10-20 11:48 PDT
,
Mark Lam
ggaren
: review+
Details
Formatted Diff
Diff
follow up patch to fix use of PrintStream::print().
(1.09 KB, patch)
2014-12-04 16:39 PST
,
Mark Lam
mark.lam
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2014-10-20 11:44:36 PDT
Created
attachment 240133
[details]
the patch.
Geoffrey Garen
Comment 2
2014-10-20 11:47:09 PDT
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.
Mark Lam
Comment 3
2014-10-20 11:48:55 PDT
Created
attachment 240134
[details]
updated patch
Geoffrey Garen
Comment 4
2014-10-20 11:50:28 PDT
Comment on
attachment 240134
[details]
updated patch r=me
Mark Lam
Comment 5
2014-10-20 11:53:30 PDT
Thanks for the review. Landed in
r174897
: <
http://trac.webkit.org/r174897
>.
Filip Pizlo
Comment 6
2014-12-04 15:48:10 PST
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.
Mark Lam
Comment 7
2014-12-04 16:39:08 PST
Created
attachment 242597
[details]
follow up patch to fix use of PrintStream::print().
Mark Lam
Comment 8
2014-12-04 16:45:15 PST
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
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug