[JS IR] Perform optimizations on the generated JS code
The patch adopts and reuses the optimizations from the legacy backend. The optimizations remove useless temporary variables, statements and simplify generated JS code. The optimizations can be disabled by `-Xoptimize-generated-js=false`. Related to KT-51139
This commit is contained in:
committed by
Space Team
parent
84b5af3c89
commit
79d378f2bd
@@ -121,4 +121,6 @@ public class JSConfigurationKeys {
|
||||
public static final CompilerConfigurationKey<ZipFileSystemAccessor> ZIP_FILE_SYSTEM_ACCESSOR =
|
||||
CompilerConfigurationKey.create("zip file system accessor, used for klib reading");
|
||||
|
||||
public static final CompilerConfigurationKey<Boolean> OPTIMIZE_GENERATED_JS =
|
||||
CompilerConfigurationKey.create("perform additional optimizations on the generated JS code");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user