Closed Bug 886481 Opened 12 years ago Closed 12 years ago

Do not display total compilation time when asm.js is successfully compiled, in a --enable-more-deterministic shell

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: gkw, Assigned: Sahilc.2200)

References

Details

(Whiteboard: [mentor=gkw])

Attachments

(1 file, 4 obsolete files)

+++ This bug was initially created as a clone of Bug #885103 +++ warning: successfully compiled asm.js code (total compilation time 0ms) For now, bug 885103 turns all the compilation time messages to 0ms no matter what flags they are running, but Jesse prefers the message to not be there at all. See bug 885103 for the entire backstory.
Could you please review this patch?
Thanks for looking at this bug. What I think Gary wants is to remove the message only when JS_MORE_DETERMINISTIC is defined (via the --enable-more-deterministic configure flag); in normal builds we definitely want to see this information.
Yep, a #ifdef/#ifndef JS_MORE_DETERMINISTIC is needed.
Attached patch work.patch (obsolete) — Splinter Review
I think this should do the trick, as I just shifted the print line appropriately, and it will only display the compilation time when JS_MORE_DETERMINISTIC is not defined.
Attachment #784964 - Attachment is obsolete: true
Comment on attachment 787102 [details] [diff] [review] work.patch I'm not sure if out->reset still needs to be called, so pushing to Luke for advice.
Attachment #787102 - Flags: review?(luke)
It looks like Warn gets passed a const char * (which would be NULL) and passes that to JS_ReportErrorFlagsAndNumber (which it looks like assumes non-NULL). So just change Warn() to pass (str ? str : "") instead.
Attachment #787102 - Attachment is obsolete: true
Attachment #787102 - Flags: review?(luke)
Here is a single patch for both of the previous patches!!
Final Patch for the bugfix
Attachment #787122 - Attachment is obsolete: true
Attachment #787131 - Attachment is obsolete: true
Comment on attachment 787152 [details] [diff] [review] Final Patch for bugfix Great!
Attachment #787152 - Flags: review+
Keywords: checkin-needed
Assignee: general → Sahilc.2200
Status: NEW → ASSIGNED
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: