[K/N][IR][runtime] Implemented lazy per-file initialization strategy

This commit is contained in:
Igor Chevdar
2021-03-12 11:18:55 +05:00
parent 504449f03e
commit b11201be81
37 changed files with 976 additions and 123 deletions
@@ -336,6 +336,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
RuntimeAssertsMode.IGNORE
}
})
put(PROPERTY_LAZY_INITIALIZATION, arguments.propertyLazyInitialization)
}
}
}
@@ -314,6 +314,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value="-Xgc-aggressive", description = "Make GC agressive. Works only with -memory-model experimental")
var gcAggressive: Boolean = false
@Argument(value = "-Xir-property-lazy-initialization", description = "Initialize top level properties lazily per file")
var propertyLazyInitialization: Boolean = false
@Argument(
value = "-Xcheck-compatibility-with-lld",
valueDescription = "{disable|enable}",