Skip to content

Commit

Permalink
Bug 1836094 - remove remaining references to rootingHazards.txt r=jonco
Browse files Browse the repository at this point in the history
  • Loading branch information
hotsphink committed May 31, 2023
1 parent c4b3fe8 commit b6018cc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 90 deletions.
79 changes: 0 additions & 79 deletions js/src/devtools/rootAnalysis/Makefile.in

This file was deleted.

54 changes: 46 additions & 8 deletions js/src/devtools/rootAnalysis/explain.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,52 @@

SRCDIR = pathlib.Path(__file__).parent.parent.parent.absolute()

parser = argparse.ArgumentParser(description="Process some integers.")
parser.add_argument("--verbose", type=bool, default=False)
parser.add_argument("rootingHazards", nargs="?", default="rootingHazards.txt")
parser.add_argument("gcFunctions", nargs="?", default="gcFunctions.txt")
parser.add_argument("hazards", nargs="?", default="hazards.txt")
parser.add_argument("extra", nargs="?", default="unnecessary.txt")
parser.add_argument("refs", nargs="?", default="refs.txt")
parser.add_argument("html", nargs="?", default="hazards.html")
parser = argparse.ArgumentParser(
description="Convert the JSON output of the hazard analysis into various text files describing the results.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument("--verbose", type=bool, default=False, help="verbose output")

inputs = parser.add_argument_group("Input")
inputs.add_argument(
"rootingHazards",
nargs="?",
default="rootingHazards.json",
help="JSON input file describing the output of the hazard analysis",
)

outputs = parser.add_argument_group("Output")
outputs.add_argument(
"gcFunctions",
nargs="?",
default="gcFunctions.txt",
help="file containing a list of functions that can GC",
)
outputs.add_argument(
"hazards",
nargs="?",
default="hazards.txt",
help="file containing the rooting hazards found",
)
outputs.add_argument(
"extra",
nargs="?",
default="unnecessary.txt",
help="file containing unnecessary roots",
)
outputs.add_argument(
"refs",
nargs="?",
default="refs.txt",
help="file containing a list of unsafe references to unrooted values",
)
outputs.add_argument(
"html",
nargs="?",
default="hazards.html",
help="HTML-formatted file with the hazards found",
)

args = parser.parse_args()


Expand Down
3 changes: 0 additions & 3 deletions js/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ if CONFIG["FUZZING_JS_FUZZILLI"]:
# trace-pc instrumentation.
include("/tools/fuzzing/libfuzzer-config.mozbuild")

CONFIGURE_SUBST_FILES += [
"devtools/rootAnalysis/Makefile",
]
CONFIGURE_DEFINE_FILES += [
"js-confdefs.h",
]
Expand Down

0 comments on commit b6018cc

Please sign in to comment.