Commit Graph

321 Commits

Author SHA1 Message Date
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