Type inference spew visualization tool

NEW
Unassigned

Status

()

--
enhancement
7 years ago
4 years ago

People

(Reporter: shu, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

7 years ago
A tool to visualize TI spew (i.e. INFERFLAGS=ops or INFERFLAGS=full) would be highly helpful for both engine and JS developers.

This prototype has two parts: a decompiler patch and an external tool.

The decompiler patch introduces a new INFERFLAGS flag, "annotated", which spews ops in addition to a decompiled source, annotated with HTML <span> elements surrounding any expression that has a typeset. This patch is attached below.

The external tool takes this spew and makes it into a shinier webpage. The external tool is currently hosted at https://github.com/syg/inferscraper
(Reporter)

Comment 1

7 years ago
Created attachment 558539 [details] [diff] [review]
Decompiler patch

Diffed against JM, rev 74849:b99f3928f69c
(Reporter)

Comment 2

7 years ago
Created attachment 558636 [details] [diff] [review]
Decompiler patch

Rebased against 76591:445b1e86590c
Attachment #558539 - Attachment is obsolete: true
(Reporter)

Comment 3

7 years ago
Renamed git repo to https://github.com/syg/inferscrape
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.