Closed
Bug 500522
Opened 15 years ago
Closed 15 years ago
print exit names instead of numbers
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dvander, Assigned: dvander)
Details
Attachments
(1 file, 1 obsolete file)
6.57 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
Annoying to keep opening jstracer.h and see what the latest ExitType values are. Example of new output: leaving trace at trace-test.js:614@47, op=lt, lr=0x2d54a4, exitType=loop, sp=2, calldepth=0, cycles=51696
Attachment #385226 -
Flags: review?(gal)
Assignee | ||
Updated•15 years ago
|
Attachment #385226 -
Attachment is patch: true
Attachment #385226 -
Attachment mime type: application/octet-stream → text/plain
Updated•15 years ago
|
Attachment #385226 -
Flags: review?(gal) → review+
Comment 1•15 years ago
|
||
You could just have one param to the EXITCODE macro, avoid redundancy at the price of UPPERCASE shouting. But IMHO that makes the verbose output easier to scan for, e.g. MISMATCH. For short lists you might want to avoid a .tbl source file by using the macro-map trick v8 uses all over: #define EXITCODES(_) _(BRANCH) _(CASE) _(DEFAULT) _(LOOP) ... and call it with different macros as actual parameters (macro names). /be
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #385226 -
Attachment is obsolete: true
Attachment #385235 -
Flags: review?(gal)
Assignee | ||
Updated•15 years ago
|
Attachment #385235 -
Attachment is patch: true
Attachment #385235 -
Attachment mime type: application/octet-stream → text/plain
Updated•15 years ago
|
Attachment #385235 -
Flags: review?(gal) → review+
Assignee | ||
Comment 3•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/310c9f052f8e with one change from jwalden, use JS_ARRAY_LENGTH
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 4•15 years ago
|
||
Nit follopup fodder: those major comments embedded in the list macro are no fun to maintain, hardly more fun to read ;-). Pulling out a major doc-comment that makes codename-tagged paragraphs, one per code, seems better. /be
Assignee: general → dvander
Comment 5•15 years ago
|
||
...but only if you flesh out the documentation for the remaining exit types, which I consider a generalizable argument for placing documentation for a thingamabob, by the thingamabob. Without having all of them documented, it's somewhat less obvious when one is missing documentation, and a random FIXME: paragraph is more ugly than what exists now (if you actually think what exists now is ugly, I just don't see it).
You need to log in
before you can comment on or make changes to this bug.
Description
•