Closed
Bug 1480145
Opened 6 years ago
Closed 6 years ago
Annotate jit-spew for vm-wrappers with function name and annotate String and RegExp stubs
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file, 1 obsolete file)
10.32 KB,
patch
|
anba
:
review+
|
Details | Diff | Splinter Review |
Add some more annotations, so it's easier to find the generated assembly code when looking at the output of 'IONFLAGS=codegen'.
Assignee | ||
Comment 1•6 years ago
|
||
- When trace-logging is enabled (the default in debug builds), we can use VMFunction::name() to annotate the VM function wrapper code. - String and RegExp stubs weren't annotated at all, which makes it hard to find the generated assembly code. And because the stub code is relatively large, I've also added annotations in the various sub-functions called from the main stub function.
Attachment #8996760 -
Flags: review?(nicolas.b.pierron)
Comment 2•6 years ago
|
||
Comment on attachment 8996760 [details] [diff] [review] bug1480145.patch Review of attachment 8996760 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jit/Ion.cpp @@ +301,5 @@ > // Duplicate VMFunction definition. See VMFunction::hash. > continue; > } > +#ifdef JS_TRACE_LOGGING > + JitSpew(JitSpew_Codegen, "# VM function wrapper (%s)", fun->name()); Change the guard around VMFunction::name to be defined(JS_JITSPEW) || defined(JS_TRACE_LOGGING), and add a comment above VMFunction::name that this symbol should not be present in release builds. (Bug 1417028)
Attachment #8996760 -
Flags: review?(nicolas.b.pierron) → review+
Assignee | ||
Comment 3•6 years ago
|
||
Updated per review comments, carrying r+.
Attachment #8996760 -
Attachment is obsolete: true
Attachment #8997132 -
Flags: review+
Assignee | ||
Comment 4•6 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5dafa3f50d04bf9bc793cab64e8caf4653b907dc
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e73d0543679d Annotate jit-spew with the VMFunction name when available and annotate String and RegExp stubs. r=nbp
Keywords: checkin-needed
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e73d0543679d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•