JS/Inlining: minor improvements and clarifications after code review. Test whether expression without side effect does not prevent to relocate another expressions

This commit is contained in:
Alexey Andreev
2016-06-06 12:37:37 +03:00
parent 6b99d4e1c5
commit 07d5a4506c
10 changed files with 63 additions and 23 deletions
@@ -65,6 +65,12 @@ public class InlineSizeReductionTestGenerated extends AbstractInlineSizeReductio
doTest(fileName);
}
@TestMetadata("propertyReferenceDoesNotProduceSideEffect.kt")
public void testPropertyReferenceDoesNotProduceSideEffect() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/inlineSizeReduction/cases/propertyReferenceDoesNotProduceSideEffect.kt");
doTest(fileName);
}
@TestMetadata("returnInlineCall.kt")
public void testReturnInlineCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/inlineSizeReduction/cases/returnInlineCall.kt");