Commit Graph

500 Commits

Author SHA1 Message Date
Alexey Andreev
e8df0a86de Fix issue with TreeMap size after deletions 2015-05-14 19:19:21 +03:00
Steve Hannah
02fcef0ae7 Fixed issue with size not being updated in TreeMap upon removal of some nodes. 2015-05-14 09:09:09 -07:00
Alexey Andreev
dadc693c9f Very first version of TeaVM time zone compiler 2015-05-14 18:38:30 +04:00
Alexey Andreev
639633018e Probably fix https://github.com/konsoletyper/teavm/issues/112 2015-05-14 18:11:47 +04:00
Alexey Andreev
f07a8aec8f Merge remote-tracking branch 'origin/master' 2015-05-14 13:53:58 +04:00
Alexey Andreev
0a335daed2 See https://github.com/konsoletyper/teavm/pull/113 2015-05-14 13:53:24 +04:00
Alexey Andreev
13fbf7c544 Borrow some code from Joda Time to parse tz data and expose offsets. Add
tz data archive
2015-05-13 22:57:00 +03:00
Alexey Andreev
120207532e Merge pull request #111 from shannah/issue_110
Issue 110
2015-05-13 11:06:35 +03:00
Steve Hannah
7eb710a806 Fixed ArrayOutOfBounds on binarySearch of empty list. https://github.com/konsoletyper/teavm/issues/110 2015-05-12 16:58:46 -07:00
Alexey Andreev
b264e34ef8 Start to implement time zones 2015-05-12 21:40:57 +03:00
Alexey Andreev
7277696870 Fix https://github.com/konsoletyper/teavm/issues/108 Fix incorrect
rounding of negative numbers
2015-05-12 19:27:11 +03:00
Steve Hannah
047170947d Fixed GregorianCalendar constructor with TimeZone arg to initialize the time correctly. 2015-05-04 12:49:04 -07:00
Steve Hannah
cc8a5a6514 Merge branch 'master' into add_timezone 2015-05-04 12:31:42 -07:00
Alexey Andreev
7c91604311 Add StackTraceElement stub to run Kotlin 2015-05-04 11:42:07 +03:00
Alexey Andreev
26379afc50 Fix bug in bytecode parser. Fix
https://github.com/konsoletyper/teavm/issues/104 Fix
https://github.com/konsoletyper/teavm/issues/105
2015-05-01 15:19:35 +03:00
Alexey Andreev
934909260f Merge remote-tracking branch 'origin/master' 2015-05-01 10:50:17 +03:00
Alexey Andreev
7b029d024c Upgrade to ASM5 API 2015-05-01 10:49:51 +03:00
Steve Hannah
ff9324570c Fixed issue https://github.com/konsoletyper/teavm/issues/100 2015-04-28 10:38:01 -07:00
Steve Hannah
9a6db79c41 Updated copyright 2015-04-11 11:03:40 -07:00
Steve Hannah
d38c421cbc Removed extra spaces and updated Copyright 2015-04-11 11:01:54 -07:00
Steve Hannah
604d757dfd Fixed styles to match conventions. 2015-04-11 08:55:33 -07:00
Steve Hannah
aff343bbe5 Fixed accidental deletion of return statement. 2015-04-11 08:53:49 -07:00
Steve Hannah
7a5b76f3dc Fixed issue with Date years. Formatted files to match TeaVM conventions. TimeZone tests now pass in browser. CalendarTests still failing. 2015-04-10 16:49:38 -07:00
Steve Hannah
2bc1a99d53 Added tests for timezone and calendar from Apache Harmony. 2015-04-09 16:54:08 -07:00
Steve Hannah
c9819f3a86 Added timezone support. Only LOCAL and GMT are currently supported, but you can extend the native functions in runtime to add support for other timezones. 2015-04-09 13:05:24 -07:00
Steve Hannah
c148965a35 Added timezone classes. 2015-04-09 09:36:40 -07:00
Alexey Andreev
33e9fca099 Bugfixes 2015-04-05 18:43:56 +03:00
Alexey Andreev
712dfced8b Make Arrays.hashCode compatible with JVM 2015-03-30 22:31:30 +03:00
Steve Hannah
bf1f83da6c Another fix for Collections.shuffle(). Without this fix, shuffle doesn't actually do anything on non-random-access collections. 2015-03-26 11:37:01 -07:00
Steve Hannah
7d6d777906 Fix for issue 88. Collections.shuffle bug. 2015-03-26 09:16:59 -07:00
konsoletyper
f5d09be35e Replace old charset with NIO charset 2015-03-22 19:40:10 +03:00
konsoletyper
aa2451c3e3 Replacing old TeaVM-based charsets with NIO charsets 2015-03-22 18:15:48 +03:00
konsoletyper
cc5225a2a6 UTF-8 support test passes 2015-03-22 15:57:49 +03:00
konsoletyper
0be769f74d Further implementation of nio charsets 2015-03-21 22:46:16 +03:00
Alexey Andreev
59b2d0b21e Initial charset classes 2015-03-18 19:21:16 +04:00
konsoletyper
e7db80fe2b Fix slf4j support. Add PrintStream.println(double) 2015-03-16 21:55:37 +03:00
konsoletyper
17ccec57e9 Add missing javadoc tags 2015-03-15 18:22:39 +03:00
Alexey Andreev
aad95014fe Fix error in Object.wait. Make junit working with new async approach 2015-03-12 11:44:17 +04:00
konsoletyper
2ef8f9c0e8 Merge branch 'master' into better-async 2015-03-11 20:39:51 +03:00
Alexey Andreev
b19c545318 Fix issue 2015-03-11 19:49:31 +04:00
Alexey Andreev
7e23498c5b Fix bugs 2015-03-11 19:02:32 +04:00
konsoletyper
8fe3876641 First working prototype of new async 2015-03-10 22:09:43 +03:00
konsoletyper
5c189cfe15 Fix bug in InputStream.read implementation 2015-03-10 20:39:28 +03:00
Alexey Andreev
56c5fefae4 Further development 2015-03-10 19:33:34 +04:00
Alexey Andreev
32deaf2716 Further work on a new thread emulator 2015-03-10 15:19:54 +04:00
Alexey Andreev
93e43456d1 Outline of upcoming improvements of continuations 2015-03-10 12:49:00 +04:00
konsoletyper
fe2adc4675 Speed-up TeaVM compiler on large applications 2015-03-09 16:22:19 +03:00
konsoletyper
62118e2cfe Add frequency-based naming in minified mode 2015-03-09 13:28:37 +03:00
konsoletyper
61368d0c10 Add own declaration of DataOutput interface 2015-03-08 20:11:03 +03:00
konsoletyper
3a78db74c1 Fix bugs 2015-03-08 13:09:17 +03:00
konsoletyper
7869173ac2 Remove build errors on JDK8 2015-03-08 12:18:57 +03:00
Alexey Andreev
d2e20d7c9f Add OutOfMemoryError. When catching exceptions that are not defined,
report errors at compile time.
2015-03-06 14:01:02 +04:00
Alexey Andreev
bacd02d8a7 Add some JDK classes needed to support DukeScript 2015-03-01 11:25:42 +03:00
Alexey Andreev
18ac2b2b25 Fix some tests of html4j TCK 2015-03-01 11:10:59 +03:00
konsoletyper
1c0acf61d4 Merge branch 'async' 2015-02-26 23:48:31 +03:00
Alexey Andreev
a47cf14352 Replace OutputStreamWriter and DataOutputStream 2015-02-26 19:12:53 +04:00
Alexey Andreev
98210d2528 Fix error converting doubles to strings 2015-02-26 12:28:32 +04:00
Alexey Andreev
0b7db410d3 Fix error in converting doubles to floats 2015-02-26 12:16:31 +04:00
konsoletyper
7d62c16c8d Bugfixes in sync primitives 2015-02-24 21:08:56 +03:00
Alexey Andreev
69857af688 Fix https://github.com/konsoletyper/teavm/issues/66 2015-02-20 16:55:35 +04:00
Steve Hannah
3cf890fa53 Fixed issue with running threads that don't explicitly include a runnable target (e.g. if they have been derived with their own run() method). 2015-02-19 08:42:39 -08:00
wh0
ed001cf25d add test for mergePairs 2015-02-17 13:50:57 -08:00
wh0
5c446f1b62 adjust UnicodeSupport.mergePairs logic
when we reach the end of one array, copy the rest of the other and return
2015-02-15 19:56:32 -08:00
konsoletyper
b6cb9bfd4a Fix monitor methods. Improve JSO to handle abstract classes 2015-02-15 18:11:23 +04:00
konsoletyper
9d112817b8 Minor improvements 2015-02-14 23:52:28 +04:00
konsoletyper
4ce1031c0c Trying to fix https://github.com/konsoletyper/teavm/issues/58 2015-02-14 01:18:43 +04:00
konsoletyper
4cf084d848 Fix Thread.start() 2015-02-14 00:41:29 +04:00
konsoletyper
f93b35ce80 Fix monitorenter 2015-02-14 00:24:24 +04:00
konsoletyper
a4d948f26b Fix bugs 2015-02-13 22:30:41 +04:00
Alexey Andreev
54ecf6e00f One step toward further minification 2015-02-12 19:08:44 +04:00
konsoletyper
857ed9754e Fix code styling 2015-02-10 22:10:06 +04:00
konsoletyper
74a76804fb Merge remote-tracking branch 'origin/shannah_threads' into shannah_threads 2015-02-09 23:14:25 +04:00
konsoletyper
71195c04ce Fix some bugs 2015-02-09 23:04:02 +04:00
Steve Hannah
a1df42878c Changed native functions to use new AsyncCallback approach. 2015-02-09 10:54:06 -08:00
Steve Hannah
9465d24723 Partial merge with async. 2015-02-09 09:49:53 -08:00
Alexey Andreev
dd25ae4759 Further removal of direct JavaScript generation from classlib 2015-02-09 19:36:45 +04:00
konsoletyper
2ae7b587d1 Most of TClass now uses Platform instead of code generation 2015-02-08 22:35:51 +04:00
konsoletyper
d93fa6cf41 Start eliminating JavaScript generators in classlib in favour of calling
Platform and JSO
2015-02-07 20:58:47 +04:00
konsoletyper
3b1d6851a4 Refactoring. Add AsyncCallback support 2015-02-07 18:36:18 +04:00
Steve Hannah
e2b6b7b2df Fixed monitorExit to work with more than one enter/exit. 2015-02-06 17:07:01 -08:00
Steve Hannah
2fbc50e76f Most of the elements are in place for monitors to work... something is wrong tough because I get errors when I try to compile files with synchronized sections. 2015-02-06 16:47:59 -08:00
Steve Hannah
cca4336a15 Merged with latest async branch. Also added MonitorExitInstruction and MonitorEnterInstruction classes, and updated all associated visitors. These don't do anything yet though. 2015-02-06 14:11:07 -08:00
Steve Hannah
d84889798c Merge branch 'async' of https://github.com/konsoletyper/teavm into threads 2015-02-06 13:17:43 -08:00
Alexey Andreev
ce2c625f53 Add test to check async virtual call resolution. Fix bug in async unit
tests support
2015-02-06 19:02:14 +04:00
Alexey Andreev
1f8ef1092c Support async code in junit 2015-02-06 18:51:42 +04:00
Alexey Andreev
73721e5b31 Add exception support to async methods 2015-02-05 17:50:25 +04:00
Steve Hannah
e6e52d1be5 Added preliminary support for keeping track of which thread is currently running. This implementation simply overrides setTimeout() to keep track of the thread that is running. It restores it to the main thread after a thread finishes running. May need to override other async methods e.g. XMLHTTPRequest, but not sure yet. This change may be sufficient if all of our async methods meant to emulate threads use the setTimeout construction. 2015-02-04 13:55:02 -08:00
Steve Hannah
b37c92b02d Merged Alexey's patch for Thread.start 2015-02-03 09:07:46 -08:00
Steve Hannah
72cb3973d6 Added some implementations for Object.wait(), Object.notify(), Object.notifyAll(), and Thread.start() to try to emulate the behaviour of multithreaded environments. 2015-02-02 12:45:32 -08:00
Steve Hannah
7c084effb0 Merge branch 'async' of https://github.com/konsoletyper/teavm into threads 2015-02-02 08:26:12 -08:00
Steve Hannah
73a1e95aae Added some missing classes to be able to compile codenameone. 2015-02-02 08:24:57 -08:00
konsoletyper
62d3e9f40e Further work on CPS generator 2015-02-01 22:08:04 +04:00
konsoletyper
3c9acd8fab Further work on CPS generator 2015-02-01 17:43:21 +04:00
Alexey Andreev
f849c070f2 Fix invalid Long.hashCode() 2015-01-29 19:10:27 +04:00
konsoletyper
25ceeb3af0 Fix error in System.arraycopy 2015-01-25 18:32:15 +04:00
konsoletyper
bb0cd3e180 Fix bug in InputStreamReader 2015-01-25 12:05:17 +04:00
Alexey Andreev
9154f4eff9 Add post-processor that reports references to missing items and replaces
these references with code that throws error.
2015-01-16 17:47:25 +04:00
Alexey Andreev
4299836ef4 First working version with new diagnostics API 2015-01-14 19:12:06 +04:00
Alexey Andreev
bdf4f7dbae Merge branch 'master' into diagnostics 2015-01-14 17:54:08 +04:00
Alexey Andreev
b3a41892a3 Fix Class.getName(). Fix https://github.com/konsoletyper/teavm/issues/43
Fix Eclipse plugin descriptor
2015-01-13 19:17:18 +04:00
Alexey Andreev
eeddfd1298 Fix bugs that were found by FindBugs. Fix
https://github.com/konsoletyper/teavm/issues/46
https://github.com/konsoletyper/teavm/issues/45
https://github.com/konsoletyper/teavm/issues/44
https://github.com/konsoletyper/teavm/issues/42
2015-01-13 18:25:15 +04:00
Alexey Andreev
9c2231f1cc Add @Rename to TCharSequence.toString0 2014-12-30 11:33:07 +04:00
Alexey Andreev
1fff443c36 Dependency API supports multiple occurence of reaching events for
different location
2014-12-29 19:16:29 +04:00
Alexey Andreev
cd0664d695 Add support of new plugin interface to extensions 2014-12-11 19:20:39 +04:00
Alexey Andreev
316850bbb5 Merge branch 'master' into diagnostics 2014-12-11 18:54:25 +04:00
Alexey Andreev
844da6760c Clean-up project 2014-12-09 16:21:14 +04:00
xaos
b02e9baeb8 Fix bug in AbstractStringBuilder.delete 2014-11-21 21:24:24 +05:00
konsoletyper
e736cf09d7 Start implementing diagnostics API 2014-11-05 22:14:41 +03:00
konsoletyper
19c18a41c5 Add java.util.zip 2014-11-04 22:04:46 +03:00
konsoletyper
d5e602b38e Add PushbackInputStream and DataInputStream 2014-11-04 21:11:27 +03:00
konsoletyper
470bbc6fc1 Add some get/put methods in ByteBuffer 2014-11-04 20:22:50 +03:00
konsoletyper
3489f3c82c Speed-up buffers that wrap ByteBuffer 2014-11-04 20:02:36 +03:00
konsoletyper
ed6e6ae373 Fix bug in Float.intBitsToFloat 2014-11-04 19:33:01 +03:00
konsoletyper
3a0db006bb Fix signed byte to int conversion in ByteBuffer wrappers. Refactor
DoubleBuffer
2014-11-04 14:32:57 +03:00
konsoletyper
999e02d316 Refactor FloatBuffer 2014-11-04 14:02:19 +03:00
konsoletyper
89b65fef8a Refactor LongBuffer 2014-11-04 13:40:46 +03:00
konsoletyper
e934ddc798 Fix https://github.com/konsoletyper/teavm/issues/33 2014-11-03 20:15:16 +03:00
konsoletyper
cfcd25b159 Refactor ShortBuffer and IntBuffer. Implement ByteBuffer.asIntBuffer and
.asShortBuffer
2014-11-01 13:10:43 +03:00
konsoletyper
8dd5661dfa Add wrapping of ByteBuffer into CharBuffer 2014-10-29 21:44:38 +03:00
konsoletyper
5c8b80aa32 Add BufferedInputStream and StringTokenizer 2014-10-26 17:26:21 +03:00
konsoletyper
9902f583bd Throw NPE when regex pattern is null 2014-10-25 18:36:30 +04:00
Alexey Andreev
a0493055a8 Merge remote-tracking branch 'origin/regex' 2014-10-25 17:37:56 +04:00
Alexey Andreev
58ca7356bb Merge remote-tracking branch 'origin/regex' into regex 2014-10-25 17:37:08 +04:00
konsoletyper
b93c71ad41 Merge branch 'regex' 2014-10-25 16:09:35 +04:00
konsoletyper
e1d5b45750 Add some methods to String 2014-10-25 16:08:41 +04:00
konsoletyper
c47689dc30 Merge branch 'master' into regex 2014-10-25 16:00:39 +04:00
konsoletyper
ac519dd77e Add LongBuffer, FloatBuffer, DoubleBuffer 2014-10-25 15:59:47 +04:00
konsoletyper
1a2e78365b Add ShortBuffer and IntBuffer 2014-10-25 15:41:57 +04:00
konsoletyper
4629ff5450 Add CharBuffer 2014-10-25 15:07:45 +04:00
konsoletyper
f9cbcf4b80 Merge branch 'master' into nio 2014-10-25 13:21:07 +04:00
konsoletyper
ae9e38efd4 Merge branch 'master' into nio 2014-10-25 12:40:40 +04:00
konsoletyper
e7d51b6435 Add some tests for ByteBuffer 2014-10-25 12:40:23 +04:00
Alexey Andreev
4a3e11d1af Add test case for https://github.com/konsoletyper/teavm/issues/27 2014-10-22 22:49:47 +04:00
Alexey Andreev
f4641dc642 Add unit tests for ByteBuffer get and put methods 2014-10-22 22:41:31 +04:00
konsoletyper
3de49d6d54 Fix issues in strict mode 2014-10-19 11:02:56 +04:00
konsoletyper
0227c0cedf Fixes some test of ByteBuffer 2014-10-15 17:50:58 +04:00
Alexey Andreev
2cd397c81c Add some test cases for ByteBuffer 2014-10-13 21:24:18 +04:00
Alexey Andreev
b7725aa15a Remove unnecessary compareTo 2014-10-13 19:31:21 +04:00
konsoletyper
273fc59182 Switch version to 0.3.0-SNAPSHOT 2014-10-13 17:33:25 +04:00
Alexey Andreev
deb79213a4 Basic ByteBuffer implementation 2014-10-12 22:09:24 +04:00
Alexey Andreev
581cae0ef4 Bugfixes: https://github.com/konsoletyper/teavm/issues/23
https://github.com/konsoletyper/teavm/issues/22
https://github.com/konsoletyper/teavm/issues/21
2014-10-12 18:05:31 +04:00
Alexey Andreev
bc74f817fe Add 'T' prefix to regex implementation classes 2014-10-12 17:47:13 +04:00
Alexey Andreev
78f4f7a1ff Add regex methods into java.lang.String. Add group index checking into
java.util.regex.Matcher
2014-10-12 13:50:56 +04:00
Alexey Andreev
28251840ec Merge branch 'master' into regex 2014-10-12 11:57:59 +04:00
konsoletyper
9e09c247e6 Replace old code samples with new ones 2014-10-05 15:45:44 +04:00
Alexey Andreev
9d12bffc1b Add support of copying source files into Eclipse:
https://github.com/konsoletyper/teavm/issues/13
2014-09-27 19:23:05 +04:00
Alexey Andreev
7a02804544 Fix issue with java class library when building from Eclipse 2014-09-25 16:54:48 +04:00
konsoletyper
03daced41b Successfull build from PDE 2014-09-22 08:06:02 +04:00
konsoletyper
82802f723d Configuring shitty tycho 2014-09-21 21:38:28 +04:00
konsoletyper
ae3095f0ff Configure to build by tycho 2014-09-19 23:00:35 +04:00