Commit Graph

262 Commits

Author SHA1 Message Date
Alexey Andreev
3b939d0853 Debug information construction 2014-07-27 15:23:01 +04:00
Alexey Andreev
71415e71e1 Adds prototype of debugger 2014-07-25 20:55:36 +04:00
konsoletyper
43670ed3ca Adds string pool 2014-07-07 18:00:22 +04:00
konsoletyper
a32d6d037b Minor optimizations 2014-07-07 17:35:30 +04:00
konsoletyper
fb4ec191d9 Fixes some tests 2014-07-03 18:09:00 +04:00
konsoletyper
eb4b70187b Fixes incorrect inclusion of temporary variable inside loop condition 2014-07-03 16:13:24 +04:00
konsoletyper
81ac1568bf Fixes bugs and formatting 2014-07-03 14:06:14 +04:00
konsoletyper
08fc4c5f23 Fixes long arithmetics bug 2014-07-02 17:42:21 +04:00
konsoletyper
cf64364716 Fixes long division 2014-06-28 13:51:39 +04:00
konsoletyper
45d0a10c8d Disables loop invariant motion for arrays 2014-06-28 11:20:38 +04:00
konsoletyper
084de3374e Fixes some bugs 2014-06-28 00:03:12 +04:00
konsoletyper
b21e1b4dd5 Fixes exception with Long.toString method. Fixes incorrect getMessage
invocation from unit test runner.
2014-06-27 23:03:58 +04:00
konsoletyper
87262f2e97 Fixes incorrect handling of one-block loops. Fixes infinite loop
generation.
2014-06-27 22:44:16 +04:00
konsoletyper
2aa1774b25 Tries to avoid problem with single-block loop 2014-06-27 18:28:34 +04:00
konsoletyper
b94d711732 Completes DateTimeFormat support 2014-06-26 18:06:31 +04:00
konsoletyper
c0909c7cce Merge branch 'cli' into date2
Conflicts:
	pom.xml
2014-06-23 13:25:22 +04:00
konsoletyper
0e8b3d23bb Adds CLI tool to run TeaVM 2014-06-22 22:31:09 +04:00
konsoletyper
c459f3779a Transfers much of BuildJavaScriptMojo logic to the common TeaVMTool. 2014-06-22 11:52:15 +04:00
konsoletyper
4866a6d52f Moves test generation logic from teavm-maven-plugin to teavm-core 2014-06-21 20:33:59 +04:00
konsoletyper
23726b8ea0 Fixes incorrect long to double conversion 2014-06-16 16:11:38 +04:00
konsoletyper
8e521c457f Adds service registration and retrieval infrastructure 2014-06-10 11:10:11 +04:00
konsoletyper
c3e30cc295 Dependency plugin receives DependencyAgent instead of DependencyChecker 2014-06-09 21:26:58 +04:00
Alexey Andreev
a5f9e4a0b4 Bugfixes 2014-06-08 11:38:51 +04:00
Alexey Andreev
6992c81e8d Makes all current metadata provider tests passing 2014-06-07 15:48:57 +04:00
konsoletyper
c6e7b30bed Adds tests for metadata generators 2014-06-06 18:18:52 +04:00
konsoletyper
3cf7991cfb Adds ResourceAccessor and its implementation. ResourceAccessor is to
access properties and methods of resource in rumtime.
2014-06-05 15:18:40 +04:00
konsoletyper
10a8e0261a Continues implementation of metadata providers 2014-06-04 16:30:42 +04:00
konsoletyper
f892748174 Fixes stack overflow in certain cases 2014-05-08 17:04:32 +04:00
konsoletyper
5de1b3877d Adds configuring method and class aliases in teavm-maven-plugin 2014-04-28 17:33:56 +04:00
konsoletyper
02f140ef30 Merge remote-tracking branch 'origin/master' 2014-04-12 12:24:34 +04:00
konsoletyper
efd5582f8d Fixes bug in dependency checker 2014-04-12 12:24:15 +04:00
konsoletyper
2421e6d46b Optimize runtime.js 2014-04-08 17:06:02 +04:00
konsoletyper
ad3fa3b531 Fixes bugs 2014-04-07 13:01:19 +04:00
konsoletyper
25f4ad4b45 Fixes bug that caused TeaVM compiler to freeze when compiling a certain
bytecode sequence
2014-04-04 11:10:29 +04:00
konsoletyper
0deb7ac4e6 Includes catch instruction into interference analysis 2014-03-31 15:26:20 +04:00
Alexey Andreev
f66233c6aa Prevents invariant constant motion 2014-03-27 22:24:37 +04:00
Alexey Andreev
b2c78948f5 Loop invariant motion now considers method arguments to be invariants of
any loop
2014-03-27 21:40:04 +04:00
Alexey Andreev
cfd0f3e998 JCL tests pass with loop invariant motion enabled 2014-03-27 21:19:55 +04:00
Alexey Andreev
b96c5038ce Adds loop invariant code motion optimization 2014-03-27 20:09:05 +04:00
Alexey Andreev
2f2985bb10 Removes inlining of variable's values into && and || expression, as it
sometimes can violate evaluation order. Fixes creation of arrays of
arrays of primitives.
2014-03-27 15:48:34 +04:00
Alexey Andreev
bf68cf4b7d Fixes bugs in JSO and building resources 2014-03-26 23:15:55 +04:00
Alexey Andreev
ae60a7b4a0 Refactoring that introduces ability to generate new classes from
dependency interceptors.
2014-03-24 15:40:56 +04:00
Alexey Andreev
00d160e92b First attempt to refactor dependency checker 2014-03-24 13:26:32 +04:00
konsoletyper
e43898e573 Most of java.util.BitSet test pass 2014-03-21 15:06:06 +04:00
konsoletyper
02dcf9caa8 Configure pom.xml files to automatically release into Sonatype OSS
repository
2014-03-20 10:59:12 +04:00
konsoletyper
cbdcfa8977 Switches to 0.2-SNAPSHOT version 2014-03-19 01:48:43 +04:00
konsoletyper
3d3b5abce8 Adds JavaDocs 2014-03-19 01:37:07 +04:00
Alexey Andreev
0ab1639821 Refactor pom files 2014-03-18 18:02:15 +04:00
konsoletyper
91a7a9ba22 Adds java.lang.String methods. Makes intern on all string constants. 2014-03-17 00:53:22 +04:00
konsoletyper
e35f9b54b5 Moves JCL report generator into separate package. Adds hack that allows
to obtain JavaCompiler (but yet it won't compile).
2014-03-16 01:54:47 +04:00
konsoletyper
aacc7e08d2 One more speed-up of register allocation 2014-03-15 14:58:27 +04:00
Alexey Andreev
8d0c412634 Removes some temporary code 2014-03-15 01:06:57 +04:00
Alexey Andreev
97dc66968e Speed-up interference graph builder. Simplify API 2014-03-15 00:43:13 +04:00
Alexey Andreev
45fe202740 Switch to asm4 2014-03-14 22:24:25 +04:00
Alexey Andreev
739f666c0a Fixes java.io.BufferedReader.skip method. Fixes multiplication of
negative long integers
2014-03-14 13:03:26 +04:00
konsoletyper
44264c7ea8 Fixes some bugs in JCL 2014-03-12 22:35:20 +04:00
konsoletyper
b85dfcd7a0 Fixes bug that caused JUnit not to throw assertions in certain cases. 2014-03-12 21:01:00 +04:00
konsoletyper
134196d401 Completes java.lang.StringBuilder|StringBuffer 2014-03-12 15:43:26 +04:00
konsoletyper
d870060187 Fixes bug in Java bytecode parser. Fixes bug in register allocator. Adds
java.util.Timer. Adds java.util.Collections.reverse
2014-03-11 15:49:47 +04:00
konsoletyper
d8477f1e9d Fixes devirtualization bug. Adds exception message displaying when test
fails. Fixes java.util.Arrays.deepToString
2014-03-11 10:41:59 +04:00
konsoletyper
4143e6c8d7 Repairs common subexpression elimination and renames it to global value
numbering, as it is really pessimistic GVN
2014-03-07 23:13:07 +04:00
konsoletyper
758c7c7966 Repairs implementation of bit manipulation in java.lang.Double. Disables
GVN due to bug
2014-03-07 12:02:07 +04:00
konsoletyper
688d6191fd Adds implementation of some JCL methods/classes 2014-03-06 13:47:24 +04:00
konsoletyper
43b41b3a66 Makes JCL compatibility report in HTML 2014-03-05 23:39:35 +04:00
konsoletyper
a29318668e Adds utility that checks which classes are implemented in JCL emulation
and produces JSON report
2014-03-05 17:47:47 +04:00
konsoletyper
d714e880d3 Adds checkstyle and findbugs into configuration of teavm-core 2014-03-05 12:54:26 +04:00
konsoletyper
226f4c2c8a Refactoring. JavascriptBuilder becomes TeaVM and goes to org.teavm.vm
package, as well as some other classes go to org.teavm.vm.spi. html4j
now supports generation of JavaScript that is completely compatible with
bck2brwsr without altering HTML page
2014-03-05 00:13:58 +04:00
konsoletyper
92d4078228 Fixes classpath bugs. Fixes internal analysis bug. Adds some JCL 2014-03-04 00:06:03 +04:00
konsoletyper
9c4f00c18a Adds most of java.lang.Character implementation. Adds integer stack to
avoid stack overflow when using fixed-sized array-based stack
2014-03-03 16:29:46 +04:00
konsoletyper
a2d9663901 Minimizes amount of generated code to represent virtual methods 2014-03-02 11:02:09 +04:00
konsoletyper
04de57627f Fixes dependency propagation of exceptions 2014-03-02 10:05:56 +04:00
konsoletyper
8541e40f36 Adds exception type propagation 2014-03-01 22:19:24 +04:00
konsoletyper
d68f78f77d Adds NullCheckInstruction 2014-03-01 19:01:27 +04:00
konsoletyper
4c36ab9db1 Reduces amount of generated code 2014-03-01 18:05:04 +04:00
konsoletyper
f4fd2d884f Fixes devirtualization optimization 2014-03-01 16:58:38 +04:00
konsoletyper
cc8d2b8903 TCK passes some more tests 2014-02-28 14:16:23 +04:00
konsoletyper
ce4f6dc5d5 Adds some JCL dependencies required by html4j 2014-02-28 13:40:55 +04:00
konsoletyper
5c613d2f7f Implements Double.parseDouble. Fixes bugs. Disabled devirtualization
optimization due to bugs
2014-02-27 16:06:22 +04:00
konsoletyper
b4347b4eb8 Adds optional support of throwing NPE when calling method on null
instance
2014-02-27 10:04:51 +04:00
konsoletyper
43acca8706 Fixes incorrect optimization of try/catch statements 2014-02-26 22:02:09 +04:00
konsoletyper
1f18148144 Removes exception handlers in a special case when exception handler is
exactly at the start of a protected block
2014-02-26 21:45:58 +04:00
konsoletyper
a4f477329d Fixes bugs in try/catch 2014-02-26 17:54:25 +04:00
konsoletyper
ea3e6adb64 Adds VM test that verifies that exceptions are caught 2014-02-26 17:14:08 +04:00
konsoletyper
62686878c6 Adds try/catch support in simple cases 2014-02-26 16:42:31 +04:00
konsoletyper
de245613c4 Parser supports try/catch blocks 2014-02-26 13:26:33 +04:00
konsoletyper
d5fac392d3 Adds try/catch block to model 2014-02-25 21:36:45 +04:00
konsoletyper
03bc2e2e07 Adds support of java.io.BufferedReader and java.io.StringReader 2014-02-25 12:41:00 +04:00
konsoletyper
8cbb6477cb Adds test coverage of InputStreamReader 2014-02-24 19:43:11 +04:00
konsoletyper
7782f1edb7 Small improvements 2014-02-24 15:00:30 +04:00
konsoletyper
0004babe65 Bugfixes and improvements, trying to launch Knockout4Java 2014-02-24 13:07:06 +04:00
konsoletyper
d34e26e970 Adds java.util.ServiceLoader support 2014-02-24 00:50:06 +04:00
konsoletyper
3195879467 Adds support of Class.getDeclaringClass method 2014-02-23 23:17:30 +04:00
konsoletyper
9cdc099b1a Adds simple support of Class.forName and class.newInstance 2014-02-23 21:14:10 +04:00
konsoletyper
5c03e7547f Avoids swap problem when eliminating phi functions and therefore gets
back global value numbering optimization
2014-02-22 23:20:30 +04:00
konsoletyper
7831ade3a6 Fixes infinite loop in dependency checker in some cases 2014-02-21 19:47:51 +04:00
konsoletyper
a353a05e23 Fixes dependency checker bug 2014-02-21 19:29:45 +04:00
konsoletyper
e2d872fa20 Fixes dependency checking when casting arrays 2014-02-21 17:34:49 +04:00
konsoletyper
90a077fc34 Fixes dependency checker bug 2014-02-21 17:10:28 +04:00
konsoletyper
31b9525309 Fixes bugs. Adds JCL implementation 2014-02-21 15:07:37 +04:00
konsoletyper
59e6095fef Adds linking phase that for each method invocation places a proper
reference, possibly inherited from superclass. Adds tests on ArrayList
2014-02-21 10:36:44 +04:00