Closed
Bug 924649
Opened 12 years ago
Closed 12 years ago
Add extraName() to more LInstruction subclasses
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: sunfish, Assigned: sunfish)
Details
Attachments
(2 files)
|
11.19 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
|
2.94 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
When reading debugging output, it's often handy to know what kind of LShiftI something is, what type is being Boxed, or what math function is being called.
Attachment #814587 -
Flags: review?(jdemooij)
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #814588 -
Flags: review?(jdemooij)
Updated•12 years ago
|
Component: JavaScript Engine → JavaScript Engine: JIT
Comment 2•12 years ago
|
||
Comment on attachment 814587 [details] [diff] [review]
lir-extranames.patch
Review of attachment 814587 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jit/CodeGenerator.cpp
@@ +2767,5 @@
> perfSpewer->startBasicBlock(current->mir(), masm);
> #endif
>
> for (; iter != current->end(); iter++) {
> + if (const char *extra = iter->extraName())
Nit: can you wrap this "if" in an #ifdef DEBUG?
Attachment #814587 -
Flags: review?(jdemooij) → review+
Comment 3•12 years ago
|
||
Comment on attachment 814588 [details] [diff] [review]
math-function-names.patch
Review of attachment 814588 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jit/MIR.h
@@ +3671,5 @@
> }
> +
> + void printOpcode(FILE *fp) const;
> +
> + static const char *functionName(Function function);
Nit: static method so FunctionName
Attachment #814588 -
Flags: review?(jdemooij) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #2)
> @@ +2767,5 @@
> > perfSpewer->startBasicBlock(current->mir(), masm);
> > #endif
> >
> > for (; iter != current->end(); iter++) {
> > + if (const char *extra = iter->extraName())
>
> Nit: can you wrap this "if" in an #ifdef DEBUG?
Done.
(In reply to Jan de Mooij [:jandem] from comment #3)
> @@ +3671,5 @@
> > }
> > +
> > + void printOpcode(FILE *fp) const;
> > +
> > + static const char *functionName(Function function);
>
> Nit: static method so FunctionName
Done.
https://hg.mozilla.org/integration/mozilla-inbound/rev/06a14dd30924
https://hg.mozilla.org/integration/mozilla-inbound/rev/66369a6578f7
https://hg.mozilla.org/mozilla-central/rev/06a14dd30924
https://hg.mozilla.org/mozilla-central/rev/66369a6578f7
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•