Commit Graph

463 Commits

Author SHA1 Message Date
Alexey Andreev
43cda1223c Fix class initialization when writing to its static field 2018-12-20 16:59:15 +03:00
Alexey Andreev
a4b61bac19 Fix bugs in debugger 2018-12-19 19:28:35 +03:00
Alexey Andreev
75295f50e5 Make debugging API asynchronous 2018-12-19 18:13:15 +03:00
Alexey Andreev
d7d4dc1571 Add IDEA run configuration that runs dev server 2018-12-16 20:42:21 +03:00
Alexey Andreev
bab0cd59a6 Improve performance and stability of development server and incremental compilation 2018-12-13 18:45:44 +03:00
Alexey Andreev
c9c9c15dfe Fix Class.initialize. Fix html4j tests 2018-12-11 23:47:47 +03:00
Alexey Andreev
d968b20e4c Fix generation of integer multiplication in minified mode. Fix String.intern() (see #370) 2018-12-11 17:42:14 +03:00
Alexey Andreev
eec458089f Implement development server 2018-12-10 19:03:18 +03:00
Alexey Andreev
952ed3f193 Fix diagnostics no printed from teavm-cli. Fix diagnostics of unavailable classes and methods 2018-12-09 19:54:04 +03:00
Alexey Andreev
d74bcbe2b9 Fast dependency analyzer, fix bugs in incremental compiler 2018-12-07 17:41:21 +03:00
Alexey Andreev
eaf0f5a24e Fix bootstrap compiler 2018-12-07 17:41:20 +03:00
Alexey Andreev
3209909c8b Fix build 2018-12-07 01:30:13 +03:00
Alexey Andreev
1b83519280 Reduce minumus JS runtime a little 2018-12-07 00:52:05 +03:00
Alexey Andreev
2bb146af47 Improve float to string conversion 2018-12-07 00:21:18 +03:00
Alexey Andreev
f23c71cd97 Improve double to string conversion 2018-12-02 16:12:59 +03:00
Alexey Andreev
1cf3cce076 Reduce minimum runtime size 2018-12-01 23:07:03 +03:00
Alexey Andreev
45d0a13c9b In HtmlUnit, decode stack traces for all constructed exceptions 2018-11-26 15:58:51 +03:00
Alexey Andreev
0c03379206 Fix inability to catch exception when calling just created lambda 2018-11-26 14:49:03 +03:00
Alexey Andreev
85f901362f Wrap native JS exceptions as java.lang.RuntimeException 2018-11-26 14:01:50 +03:00
Alexey Andreev
b018e61615 Fix converting method to state machine in some cases. Fix #366 2018-11-25 18:46:45 +03:00
Alexey Andreev
a3dfc0c486 Add API to catch native JS exceptions 2018-11-23 19:54:37 +03:00
Alexey Andreev
cf9090e0fa Use JS typed arrays to reinterpret floats and ints.
Also, drop IE9 support
2018-11-23 17:14:06 +03:00
Alexey Andreev
0376a46c06 Fix extra space added after new expression 2018-11-23 12:13:13 +03:00
Alexey Andreev
d50189ea3a Add decoding of stack trace in JUnit adapter 2018-11-23 12:09:26 +03:00
Alexey Andreev
6d2815bc5c Support running JUnit3 tests and improve support of JUnit4 2018-11-22 19:51:33 +03:00
Alexey Andreev
cd7a702c31 Trying to fix Travis build 2018-11-22 15:40:32 +03:00
Alexey Andreev
753755918d Update build config to avoid jar hell 2018-11-22 14:49:30 +03:00
Alexey Andreev
0f951f8c86 Fix calculating class name in debugger 2018-11-19 15:29:02 +03:00
Alexey Andreev
f2dd398719 Fix bug in source map generation
This bug caused metadata lines that follow after the code
generated from Java bytecode, to be mapped to the line in
Java bytecode of the method that appears last in the generated
JavaScript
2018-11-18 02:11:28 +03:00
Alexey Andreev
148c07336c Generate entire code inside wrapper IIF 2018-11-15 12:47:25 +03:00
Alexey Andreev
fe151d525a Prevent generation of function names that clash with standard objects 2018-11-14 13:55:36 +03:00
Alexey Andreev
064888c9a1 Support Java 11 2018-11-12 18:59:28 +03:00
Alexey Andreev
4a7b70e1e8 Wasm: fix the way '!' expression translated. Also fix #365 2018-11-06 14:34:18 +03:00
Alexey Andreev
4d2c075c07 Always embed runtime into generated file. Remove 'runtime' build property 2018-10-28 00:15:36 +03:00
Alexey Andreev
63b2440e48 Remove $rt_global and indirect references to runtime function 2018-10-27 22:42:25 +03:00
Alexey Andreev
1b78ef99a6 Fix bugs in node splitting or irreducible graphs 2018-10-24 18:16:59 +03:00
Alexey Andreev
ef011d429d Ignore flaky test 2018-10-19 17:20:07 +03:00
Alexey Andreev
8a55510d4f Fix bug in dependency analyzer 2018-10-19 14:47:34 +03:00
Alexey Andreev
f206cbe2d1 Reorder modifiers to get less metadata size 2018-10-04 19:07:23 +03:00
Alexey Andreev
4c4c589172 Various code size optimizations
1. Generate 'a' for 'this' instead of '$t'
2. Fix frequency-based identifier optimization
3. Generate less code in <clinit> callers
4. Generate one-letter identifier in most of constructors
   (instead of $r)
5. Use $ and _ chars in identifiers
2018-10-04 16:29:05 +03:00
Alexey Andreev
b66053f5ce Don't generate virtual wrappers for methods that aren't ever called virtually 2018-10-04 11:55:34 +03:00
Alexey Andreev
681e21ecca Store class names in metadata as a pair of package and simple name 2018-10-03 16:01:37 +03:00
Alexey Andreev
0a94c91ff2 Don't generate unused class names in metadata section 2018-10-03 14:46:52 +03:00
Alexey Andreev
be21e474c5 Generate shorter <clinit> caller names in minified mode 2018-10-03 12:48:14 +03:00
Alexey Andreev
6b063bc567 Some code size optimizations
1. Eliminate empty switch statements
2. Eliminate unnecessary == 0 and != 0 conditions in 'if'
2018-10-03 11:57:51 +03:00
Alexey Andreev
168bf1fa9c Add option to print size statistics of generated JS code 2018-10-03 11:08:15 +03:00
Alexey Andreev
0473020bc8 Prevent from generating functions with NaN identifier 2018-09-04 17:28:10 +03:00
Alexey Andreev
50573f4f06 Prevent minifier from generating NaN function 2018-08-30 11:10:23 +03:00
Alexey Andreev
f5c6ac9c5d Improve performance of dependency analyzer, decrease memory consumption 2018-08-29 13:20:16 +03:00
Alexey Andreev
365e47882a Avoid generation of too deeply nested expressions to fit into v8 parser stack 2018-08-27 22:08:03 +03:00