From 645b2b7cd589706c709e4f49e63b35eb53c0c5f9 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 9 Jan 2017 18:49:02 +0300 Subject: [PATCH] Add local type inference to use in optimizations --- .idea/inspectionProfiles/Project_Default.xml | 1 + .../org/teavm/dependency/DependencyInfo.java | 4 - .../org/teavm/dependency/DependencyNode.java | 3 +- .../teavm/dependency/MethodDependency.java | 4 - .../dependency/MethodDependencyInfo.java | 4 - .../teavm/dependency/ValueDependencyInfo.java | 4 - .../teavm/model/analysis/ClassInference.java | 465 ++++++++++++++++++ .../org/teavm/dependency/DependencyTest.java | 291 +++++++++++ .../teavm/dependency/DependencyTestData.java | 138 ++++++ .../org/teavm/dependency/MetaAssertions.java | 25 + 10 files changed, 921 insertions(+), 18 deletions(-) create mode 100644 core/src/main/java/org/teavm/model/analysis/ClassInference.java create mode 100644 tests/src/test/java/org/teavm/dependency/DependencyTest.java create mode 100644 tests/src/test/java/org/teavm/dependency/DependencyTestData.java create mode 100644 tests/src/test/java/org/teavm/dependency/MetaAssertions.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index abc9bfdca..541adb8f4 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -90,6 +90,7 @@