[Wasm] Add an option to dump reachability info to file

This commit is contained in:
Zalim Bashorov
2023-04-21 12:55:30 +02:00
parent 7486a11bd1
commit 62b21ac078
6 changed files with 98 additions and 16 deletions
@@ -294,6 +294,20 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
field = value
}
@Argument(
value = "-Xir-dce-dump-reachability-info-to-file",
valueDescription = "<path>",
description = "Dump declarations' reachability info collected during performing DCE to a file. " +
"The format will be chosen automatically based on the file extension. " +
"Supported output formats include JSON for .json, JS const initialized with a plain object containing information for .js, " +
"and plain text for all other file types."
)
var irDceDumpReachabilityInfoToFile: String? = null
set(value) {
checkFrozen()
field = value
}
@Argument(value = "-Xir-property-lazy-initialization", description = "Perform lazy initialization for properties")
var irPropertyLazyInitialization = true
set(value) {