If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Type inference spew visualization tool

NEW
Unassigned

Status

()

Core
JavaScript Engine
--
enhancement
6 years ago
3 years ago

People

(Reporter: shu, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

6 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

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

Diffed against JM, rev 74849:b99f3928f69c
(Reporter)

Comment 2

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

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

Comment 3

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

Updated

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