diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /js/src/devtools/iongraph/README.md | |
parent | Initial commit. (diff) | |
download | firefox-upstream/124.0.1.tar.xz firefox-upstream/124.0.1.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | js/src/devtools/iongraph/README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/js/src/devtools/iongraph/README.md b/js/src/devtools/iongraph/README.md new file mode 100644 index 0000000000..df5e2822c2 --- /dev/null +++ b/js/src/devtools/iongraph/README.md @@ -0,0 +1,32 @@ +# iongraph + +Visualizer for IonMonkey graphs using GraphViz. + +## Usage + +1. Make a debug build of SpiderMonkey. +2. Run with the env var `IONFLAGS=logs`. SpiderMonkey will dump observations about graph state into `/tmp/ion.json`. +3. Run `iongraph`. A PDF will be generated in your working directory for each function in the logs. + +``` +IONFLAGS=logs js -m mymodule.mjs +iongraph +``` + +For convenience, you can run the `iongraph js` command, which will invoke `js` and `iongraph` together. For example: + +``` +iongraph js -- -m mymodule.mjs +``` + +Arguments before the `--` separator are for `iongraph`, while args after `--` are for `js`. + +## Graph properties + +Blocks with green borders are loop headers. Blocks with red borders contain loop backedges (successor is a header). Blocks with dashed borders were created during critical edge splitting. + +Instructions that are movable are blue. Guard instructions are underlined. + +MResumePoints are placed as instructions, colored gray. + +Edges from blocks ending with conditional branches are annotated with the truth value associated with each edge, given as '0' or '1'. |