RESOLVED FIXED 143349
Add Options::dumpSourceAtDFGTime()
https://bugs.webkit.org/show_bug.cgi?id=143349
Summary Add Options::dumpSourceAtDFGTime()
Mark Lam
Reported 2015-04-02 15:27:16 PDT
Sometimes, we will want to see the JSC source code that we're compiling, and it would be nice to be able to do this without having to jump thru a lot of hoops. So, let's add a Options::dumpSourceAtDFGTime() option just like we have a Options::dumpBytecodeAtDFGTime() option.
Attachments
the patch. (5.23 KB, patch)
2015-04-02 15:34 PDT, Mark Lam
oliver: review+
Mark Lam
Comment 1 2015-04-02 15:33:12 PDT
(In reply to comment #0) > Sometimes, we will want to see the JSC source code ... typo: ... want to see the JS source code ...
Mark Lam
Comment 2 2015-04-02 15:34:29 PDT
Created attachment 250014 [details] the patch.
Michael Saboff
Comment 3 2015-04-02 15:41:36 PDT
Comment on attachment 250014 [details] the patch. View in context: https://bugs.webkit.org/attachment.cgi?id=250014&action=review r=me > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:3988 > + dataLog("==== begin source ====\n"); Do we this this delimiter? > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:3990 > + dataLog("\n==== end source ====\n\n"); ditto
Mark Lam
Comment 4 2015-04-02 15:43:40 PDT
(In reply to comment #3) > Comment on attachment 250014 [details] > the patch. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=250014&action=review > > r=me > > > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:3988 > > + dataLog("==== begin source ====\n"); > > Do we this this delimiter? > > > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:3990 > > + dataLog("\n==== end source ====\n\n"); > > ditto It helps. Consider the case where we actually compile eval or global code which don't have a { } around them. Plus this is only debugging code. So, let's go with these for now.
Mark Lam
Comment 5 2015-04-02 15:48:24 PDT
Thanks for the review. Landed in r182294: <http://trac.webkit.org/r182294>.
Note You need to log in before you can comment on or make changes to this bug.