[JS IR] Fix offsets and add new test

[JS IR] Use TypeSubstitutor for full substitution of types

- adding new tests

[JS IR] Commonize context and use in wasm

[JS IR] Add test with receiver with callable reference

[JS IR] Add prerequisites around inlining and callable references

[JS IR] Review fixes

- Add test with bounded type parameter
- Remove redundant casts
- Use offsets for synth function
- Correct traversing

[JS IR] Not use origin for not inlined function reference

[JS IR] Move util into common place

[JS IR] Fix offsets

[JS IR] Add type parameter argument and using value in test

[JS IR] Wrap inlined callable references with reified parameters

[JS IR] Add test on callable reference inlined fun

Merge-request: KT-MR-4722
This commit is contained in:
Ilya Goncharov
2021-10-11 09:02:08 +00:00
committed by Space
parent c9510af2c7
commit b0aefd543a
14 changed files with 267 additions and 10 deletions
@@ -31600,6 +31600,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/reified/asOnPlatformType.kt");
}
@TestMetadata("callableReferenceInlinedFun.kt")
public void testCallableReferenceInlinedFun() throws Exception {
runTest("compiler/testData/codegen/box/reified/callableReferenceInlinedFun.kt");
}
@TestMetadata("checkcast.kt")
public void testCheckcast() throws Exception {
runTest("compiler/testData/codegen/box/reified/checkcast.kt");