Closed Bug 1266835 Opened 8 years ago Closed 8 years ago

Request names from the rootlist in JS::ubi::dumpPaths and clean up formatting of dumped paths

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Comment on attachment 8744452 [details] [diff] [review]
Request names from the rootlist in JS::ubi::dumpPaths and clean up formatting of dumped paths

Review of attachment 8744452 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/vm/UbiNodeShortestPaths.cpp
@@ +55,5 @@
> +
> +            auto typeName = backEdge->predecessor().typeName();
> +            auto len = js_strlen(typeName);
> +            for (size_t i = 0; i < len; i++)
> +                fprintf(stderr, "%c", char(typeName[i]));

This is too bad. Could you implement js_fputs in jsstr.{cpp,h}, and then call it here and below?

Also, you can always use fputwc in the implementation, not fprintf(..., "%c", ...), or fputc if casting char16_t to wchar_t is too gross.
Attachment #8744452 - Flags: review?(jimb) → review+
Attachment #8744452 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/46d7944da816
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Comment on attachment 8744524 [details] [diff] [review]
Request names from the rootlist in JS::ubi::dumpPaths and clean up formatting of dumped paths

Review of attachment 8744524 [details] [diff] [review]:
-----------------------------------------------------------------

YAS
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: