[JS IR] Wrap private top level function with internal accessor stub

In case internal inline function references private top level function
after inline such function (T.L.P.) couldn't be referenced
in klib and IC cache. So create internally visible accessors for P.T.L.
function similar to what JVM backend does.

 - add box test
This commit is contained in:
Roman Artemev
2021-08-09 20:23:46 +03:00
committed by TeamCityServer
parent b3dbca7ea6
commit d3ddeef67f
11 changed files with 312 additions and 1 deletions
@@ -18865,6 +18865,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
public void testEnumEntryArguments() throws Exception {
runTest("compiler/testData/codegen/box/ir/privateSignatures/enumEntryArguments.kt");
}
@TestMetadata("privateLeakThroughInline.kt")
public void testPrivateLeakThroughInline() throws Exception {
runTest("compiler/testData/codegen/box/ir/privateSignatures/privateLeakThroughInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ir/serializationRegressions")