Commit Graph

885 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
484bf61a5c Fix wielding of try/catch blocks 2015-02-06 18:01:20 +04: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
b37c92b02d Merged Alexey's patch for Thread.start 2015-02-03 09:07:46 -08:00
Steve Hannah
8fa50a0504 Merge branch 'async' of https://github.com/konsoletyper/teavm into threads 2015-02-03 07:07:46 -08:00
Alexey Andreev
8a11239436 Temporarily switch off expression wielding optimization in async
methods.
2015-02-03 11:56:17 +04: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
Alexey Andreev
b36c10760c Working on async exception catching 2015-02-02 18:58:44 +04:00
konsoletyper
4496b1ab30 Add sample application to show how CPS generator works 2015-02-01 23:08:42 +04:00
konsoletyper
071f2bb46c First working prototype of CPS 2015-02-01 22:55:33 +04:00
konsoletyper
62d3e9f40e Further work on CPS generator 2015-02-01 22:08:04 +04:00
konsoletyper
cff91e03ff Add resolving of JSR opcode 2015-02-01 20:40:56 +04:00
konsoletyper
3c9acd8fab Further work on CPS generator 2015-02-01 17:43:21 +04:00
konsoletyper
672de2f111 Fix errors. Generalize AST optimizer to handle async methods 2015-02-01 00:02:20 +04:00
konsoletyper
de85560876 Implement CFG splitting 2015-01-31 00:02:41 +04:00
Alexey Andreev
5593aa074e Start implementing async JS generator 2015-01-30 19:15:12 +04:00
Alexey Andreev
c546af553b Fix slowness 2015-01-30 12:46:10 +04:00
Alexey Andreev
c0d28a236c Merge remote-tracking branch 'origin/master' 2015-01-29 19:11:16 +04:00
Alexey Andreev
f849c070f2 Fix invalid Long.hashCode() 2015-01-29 19:10:27 +04:00
konsoletyper
0dc8a83bb4 Add KeyboardEvent.charCode 2015-01-27 21:42:17 +04:00
Alexey Andreev
c7a45938f7 Add Uint16Array 2015-01-27 19:13:26 +04:00
Alexey Andreev
6353fad620 Fix error with properties not available in renderer 2015-01-27 14:29:40 +04:00
konsoletyper
cd699bffcb Fix bug in JSBody support 2015-01-26 22:43:59 +04:00
Alexey Andreev
5f3efd3f84 Return EventTarget to Window interface 2015-01-26 18:26:23 +04:00
Alexey Andreev
a8d6ce1647 Ignore Eclipse files 2015-01-26 11:44:09 +04:00
Alexey Andreev
7fb5c32c9b Merge branch 'implements-html-media-element' of
https://github.com/jtakakura/teavm into
jtakakura-implements-html-media-element

Conflicts:
	teavm-samples/pom.xml
2015-01-26 11:31:55 +04:00
Alexey Andreev
6018fd772a Ignore target directory 2015-01-26 11:10:46 +04:00
Alexey Andreev
a659447fbb Merge branch 'implements-web-storage' of
https://github.com/jtakakura/teavm into jtakakura-implements-web-storage

Conflicts:
	teavm-dom/src/main/java/org/teavm/dom/browser/Window.java
2015-01-26 11:09:31 +04:00
konsoletyper
25ceeb3af0 Fix error in System.arraycopy 2015-01-25 18:32:15 +04:00
konsoletyper
ad57f957cb JSO bugfixes and improvements 2015-01-25 15:21:17 +04:00
konsoletyper
bb0cd3e180 Fix bug in InputStreamReader 2015-01-25 12:05:17 +04:00
Junji Takakura
8bc65d96b5 Adds Web Storage Demo Application 2015-01-25 11:25:07 +09:00
Junji Takakura
5dde3d6412 Add implementation of Web Storage API 2015-01-25 11:23:57 +09:00
konsoletyper
b71ba395fd Include source directories into class path when running TeaVM from
Eclipse so that TeaVM can read resources.
2015-01-24 20:13:14 +04:00
Junji Takakura
2e98e1f61a Fix Checkstyle errors 2015-01-24 21:56:29 +09:00
konsoletyper
b731687c3e Add support of JSBody 2015-01-24 16:40:10 +04:00
Junji Takakura
14a6c099d9 Adds HTML5 Video Demo Application 2015-01-24 20:00:01 +09:00
Junji Takakura
ec4e4a9771 Fix bugs 2015-01-24 17:28:24 +09:00
konsoletyper
f138c837cf Add DOM APIs 2015-01-24 00:48:06 +04:00
Alexey Andreev
be4457c285 Fix errors in WebGL wrappers. Add support of some typed arrays 2015-01-23 19:28:12 +04:00