Closed Bug 911125 Opened 11 years ago Closed 11 years ago

Remove ScriptAnalysis::printTypes and dump TypeScript's observed types instead

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file, 1 obsolete file)

The bytecode types printed by INFERFLAGS=results are not very useful anymore since bug 804676, because in most cases we don't run analyzeTypes and hence don't print anything.

Although we no longer store pushed/popped types for every opcode, we can still dump the observed typesets (stored in TypeScript) and usually that's all we have to know.

I wrote a patch for this a while ago when I was looking into some JSIL perf problems.
Attached patch Patch (obsolete) — Splinter Review
Removes ScriptAnalysis::printTypes, adds TypeScript::printTypes and calls it instead.

I also changed the inference spew to go to stderr, so that I could call JSString::dumpChars to dump the function name.
Attachment #797825 - Flags: review?(bhackett1024)
Attached patch PatchSplinter Review
Attachment #797825 - Attachment is obsolete: true
Attachment #797825 - Flags: review?(bhackett1024)
Attachment #797826 - Flags: review?(bhackett1024)
Attachment #797826 - Flags: review?(bhackett1024) → review+
https://hg.mozilla.org/mozilla-central/rev/8a46d34be094
Status: ASSIGNED → RESOLVED
Closed: 11 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: