From 8967f423eb47b7130f423e028892191743c47524 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 21 Jan 2017 23:29:29 +0300 Subject: [PATCH] Increase inlining threshold. Add property to build TeaVM without additional artifacts (like samples) --- .../java/org/teavm/model/optimization/Inlining.java | 4 ++-- pom.xml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/teavm/model/optimization/Inlining.java b/core/src/main/java/org/teavm/model/optimization/Inlining.java index 50d2c3c05..db0cdbe88 100644 --- a/core/src/main/java/org/teavm/model/optimization/Inlining.java +++ b/core/src/main/java/org/teavm/model/optimization/Inlining.java @@ -51,8 +51,8 @@ import org.teavm.model.util.InstructionVariableMapper; import org.teavm.model.util.ProgramUtils; public class Inlining { - private static final int DEFAULT_THRESHOLD = 15; - private static final int MAX_DEPTH = 5; + private static final int DEFAULT_THRESHOLD = 17; + private static final int MAX_DEPTH = 7; private IntArrayList depthsByBlock; private Set instructionsToSkip; diff --git a/pom.xml b/pom.xml index 76f8ca8f6..43fd9719a 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,6 @@ jso/apis jso/impl html4j - samples platform tools/core tools/cli @@ -287,6 +286,18 @@ + + all-modules + + + teavm.build.all + !false + + + + samples + + sign-artifacts