WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
91281
JSC: OfflineASM Pretty printing and commenting enhancements
https://bugs.webkit.org/show_bug.cgi?id=91281
Summary
JSC: OfflineASM Pretty printing and commenting enhancements
Mark Lam
Reported
2012-07-13 14:30:28 PDT
It would be nice to be have the output of the OfflineASM be more prettily formatted for human consumption. Also, it would be nice to be able to more easily add annotations in the LLInt that will show up in the OfflineASM output for debugging and analysis purposes.
Attachments
Fix.
(33.30 KB, patch)
2012-07-13 15:29 PDT
,
Mark Lam
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2012-07-13 15:29:53 PDT
Created
attachment 152353
[details]
Fix.
WebKit Review Bot
Comment 2
2012-07-13 15:31:30 PDT
Attachment 152353
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/llint/LLIntOfflineAsmConfig.h:96: Extra space before ) [whitespace/parens] [2] Total errors found: 1 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 3
2012-07-13 15:35:30 PDT
The 1 style error is because of I have macros that looks like this: #define OFFLINE_ASM_BEGIN asm ( #define OFFLINE_ASM_END ); The style checker is complaining about the spaces before the ");" because it mistook it for an argument list. I this case, I think the style violation can be allowed as an exception.
Geoffrey Garen
Comment 4
2012-07-13 17:33:05 PDT
Comment on
attachment 152353
[details]
Fix. View in context:
https://bugs.webkit.org/attachment.cgi?id=152353&action=review
Looks good to me. I'd like Phil to take a look too, since he's more familiar with the Ruby driver. I've CC'd him. One comment below.
> Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm:305 > + loadp CodeBlock[cfr], t2 // t2<CodeBlock> = cfr.CodeBlock > + loadi CodeBlock::m_numVars[t2], t2 // t2<size_t> = t2<CodeBlock>.m_numVars
It looks like these comments parrot the LL assembly language in a slightly modified form. Perhaps comment dumping mode should just dump the LL assembly. I could see myself using that when I debugged something in the interpreter.
WebKit Review Bot
Comment 5
2012-07-13 17:45:00 PDT
Comment on
attachment 152353
[details]
Fix. Clearing flags on attachment: 152353 Committed
r122650
: <
http://trac.webkit.org/changeset/122650
>
WebKit Review Bot
Comment 6
2012-07-13 17:45:05 PDT
All reviewed patches have been landed. Closing bug.
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