Commit Graph

19 Commits

Author SHA1 Message Date
Alexey Andreev
79d76f9a4d Fix https://github.com/konsoletyper/teavm/issues/87 2015-03-27 17:46:26 +04:00
konsoletyper
cd0dd134cc Preparing to merge into master 2015-03-12 22:07:24 +03:00
Alexey Andreev
3a29e869ef Aviod creation of closures in async methods 2015-03-12 18:11:04 +04:00
Alexey Andreev
32deaf2716 Further work on a new thread emulator 2015-03-10 15:19:54 +04:00
konsoletyper
bcf0929fc5 Add slf4j support 2015-03-08 19:32:01 +03:00
konsoletyper
4f508954d0 Improve Async demo 2015-03-08 14:13:25 +03:00
konsoletyper
7869173ac2 Remove build errors on JDK8 2015-03-08 12:18:57 +03:00
konsoletyper
77738b001f Speed-up context switching 2015-03-06 23:11:55 +03: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
0cdf960ba5 Fix Chrome RDP backend 2015-02-14 17:18:40 +04: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
d84889798c Merge branch 'async' of https://github.com/konsoletyper/teavm into threads 2015-02-06 13:17:43 -08:00
konsoletyper
de7dc645bc Add wielding of try/catch statements 2015-02-06 01:56:39 +04:00
konsoletyper
5dfc8a3ed6 Return back AST optimization of async methods. 2015-02-06 00:53:51 +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
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
konsoletyper
4496b1ab30 Add sample application to show how CPS generator works 2015-02-01 23:08:42 +04:00