Increase inlining threshold. Add property to build TeaVM without additional artifacts (like samples)

This commit is contained in:
Alexey Andreev 2017-01-21 23:29:29 +03:00
parent d3bed47b1d
commit 8967f423eb
2 changed files with 14 additions and 3 deletions

View File

@ -51,8 +51,8 @@ import org.teavm.model.util.InstructionVariableMapper;
import org.teavm.model.util.ProgramUtils; import org.teavm.model.util.ProgramUtils;
public class Inlining { public class Inlining {
private static final int DEFAULT_THRESHOLD = 15; private static final int DEFAULT_THRESHOLD = 17;
private static final int MAX_DEPTH = 5; private static final int MAX_DEPTH = 7;
private IntArrayList depthsByBlock; private IntArrayList depthsByBlock;
private Set<Instruction> instructionsToSkip; private Set<Instruction> instructionsToSkip;

13
pom.xml
View File

@ -87,7 +87,6 @@
<module>jso/apis</module> <module>jso/apis</module>
<module>jso/impl</module> <module>jso/impl</module>
<module>html4j</module> <module>html4j</module>
<module>samples</module>
<module>platform</module> <module>platform</module>
<module>tools/core</module> <module>tools/core</module>
<module>tools/cli</module> <module>tools/cli</module>
@ -287,6 +286,18 @@
</build> </build>
<profiles> <profiles>
<profile>
<id>all-modules</id>
<activation>
<property>
<name>teavm.build.all</name>
<value>!false</value>
</property>
</activation>
<modules>
<module>samples</module>
</modules>
</profile>
<profile> <profile>
<id>sign-artifacts</id> <id>sign-artifacts</id>
<build> <build>