mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Increase inlining threshold. Add property to build TeaVM without additional artifacts (like samples)
This commit is contained in:
parent
d3bed47b1d
commit
8967f423eb
|
@ -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
13
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user