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)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file, 1 obsolete file)

Add some more annotations, so it's easier to find the generated assembly code when looking at the output of 'IONFLAGS=codegen'.
Attached patch bug1480145.patch (obsolete) — Splinter Review
- 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 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+
Attached patch bug1480145.patchSplinter Review
Updated per review comments, carrying r+.
Attachment #8996760 - Attachment is obsolete: true
Attachment #8997132 - Flags: review+
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
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.

Attachment

General

Created:
Updated:
Size: