Marco Castelluccio
|
437ef05b45
|
Merge branch 'master' of https://github.com/andreasgal/j2me.js into fileconnection_natives
Conflicts:
native.js
|
2014-08-05 10:15:53 -07:00 |
Myk Melez
|
7874d9e0cf
|
stub GestureRegistrationManager.setListener and GestureInteractiveZone.isSupported natives
|
2014-08-05 10:08:46 -07:00 |
Marco Castelluccio
|
021b692887
|
Remove WIP natives and logging statements
|
2014-08-05 10:05:59 -07:00 |
Marco Castelluccio
|
ae1a68db9f
|
Add native
|
2014-08-05 10:03:38 -07:00 |
Marco Castelluccio
|
6dbef60044
|
Merge branch 'master' of https://github.com/andreasgal/j2me.js into fileconnection_natives
Conflicts:
native.js
|
2014-08-05 09:49:50 -07:00 |
Marco Castelluccio
|
bb77501fe8
|
Implement other natives
|
2014-08-05 09:40:32 -07:00 |
Andreas Gal
|
c4f6099041
|
add support for (fake) weak references
|
2014-08-05 09:34:00 -07:00 |
Marco Castelluccio
|
dcbb37ffc1
|
Merge branch 'master' of https://github.com/andreasgal/j2me.js into fileconnection_natives
|
2014-08-05 08:49:21 -07:00 |
Marco Castelluccio
|
7d453a1cd6
|
Comment out draft natives
|
2014-08-05 08:48:57 -07:00 |
Andreas Gal
|
3555b404e5
|
fix formating
|
2014-08-04 21:51:46 -07:00 |
Marco Castelluccio
|
3af6ea31a8
|
Add other natives
|
2014-08-04 15:44:04 -07:00 |
Marco Castelluccio
|
7f548d0968
|
Add other natives
|
2014-08-04 14:09:27 -07:00 |
Marco Castelluccio
|
6fb18e080d
|
Add some FileConnection natives
|
2014-08-04 13:35:02 -07:00 |
Marco Castelluccio
|
5923815f32
|
Add file.separator property and IBM's reference implementation of the FileConnecion API
|
2014-08-03 19:58:29 -07:00 |
Marco Castelluccio
|
9048aa1042
|
Merge branch 'master' of https://github.com/marco-c/j2me.js into add_fileconn_properties
|
2014-08-03 19:29:53 -07:00 |
Andreas Gal
|
47a98049bb
|
fix monotonicTimeMillis and move to native.js
|
2014-08-02 13:19:32 -07:00 |
Andreas Gal
|
246b045b81
|
make things work in chrome
|
2014-08-02 11:27:25 -07:00 |
Andreas Gal
|
3c109d3e8a
|
fix a few things for the simple game demo
|
2014-08-02 01:08:28 -07:00 |
Andreas Gal
|
236e4e9a36
|
use numeric ids as field names
|
2014-08-01 22:47:26 -07:00 |
Marco Castelluccio
|
429acf589a
|
Add fileconn properties
|
2014-08-01 20:25:58 -07:00 |
Andreas Gal
|
cc7a8e0e87
|
Merge pull request #12 from fzzzy/master
Fix some incorrect _this stack.pop()ping in native.js
|
2014-08-01 19:52:52 -07:00 |
Andreas Gal
|
27ddf9f663
|
Merge pull request #13 from marco-c/add_microedition_platform_property
Add microedition.platform property
|
2014-08-01 19:52:13 -07:00 |
Marco Castelluccio
|
1cf72206c0
|
Add microedition.platform property
|
2014-08-01 19:41:07 -07:00 |
Donovan Preston
|
ee21138b4f
|
Fix some incorrect _this stack.pop()ping in native.js
|
2014-08-01 22:18:28 -04:00 |
Marco Castelluccio
|
82fef8e403
|
Add poll0 native
|
2014-08-01 13:36:00 -07:00 |
Andreas Gal
|
272035b45c
|
fixes to native event handling
|
2014-07-31 22:59:34 -07:00 |
Andreas Gal
|
853ba9a620
|
return locale in midp.Configuration
|
2014-07-31 16:02:20 -07:00 |
Andreas Gal
|
87566dc634
|
properly report forName(null)
|
2014-07-31 15:01:10 -07:00 |
Andreas Gal
|
f18ae0a550
|
add another midp native and support microedition.locale
|
2014-07-31 08:59:30 -07:00 |
Andreas Gal
|
f10491aa71
|
more midp native code
|
2014-07-30 17:40:39 -07:00 |
Andreas Gal
|
8c0cc49bd5
|
don't die on synthethic frames in the backtrace
|
2014-07-30 15:56:57 -07:00 |
Andreas Gal
|
3991c8a173
|
implement proper back traces
|
2014-07-30 15:49:58 -07:00 |
Andreas Gal
|
48714d05c0
|
move newString to classes
|
2014-07-29 17:40:19 -07:00 |
Andreas Gal
|
aa05e9f177
|
resolve all constant pool entries
|
2014-07-29 04:26:03 -07:00 |
Andreas Gal
|
77687793db
|
rename running -> alive
|
2014-07-29 02:19:10 -07:00 |
Andreas Gal
|
a7d87bcfb3
|
fix notifyAll
|
2014-07-29 02:08:04 -07:00 |
Andreas Gal
|
ffd8626cd3
|
common out code to unblock a thread
|
2014-07-29 01:07:15 -07:00 |
Andreas Gal
|
d7a1f4302d
|
make code run better in chrome
|
2014-07-28 19:13:32 -07:00 |
Andreas Gal
|
1f14601f29
|
add yield()
|
2014-07-28 15:19:07 -07:00 |
Andreas Gal
|
661777f211
|
add notify and notifyAll
|
2014-07-28 12:44:40 -07:00 |
Andreas Gal
|
eb7b9eec14
|
improve locking of class initialization
|
2014-07-28 12:42:42 -07:00 |
Andreas Gal
|
ae2426c4c0
|
a couple assorted fixes for threading
|
2014-07-28 00:53:37 -07:00 |
Andreas Gal
|
2f4d32f420
|
implement threading better
|
2014-07-27 23:39:41 -07:00 |
Andreas Gal
|
29c84a4c15
|
fix order of static class initialization
|
2014-07-27 20:30:10 -07:00 |
Andreas Gal
|
21359dfc2d
|
add a few missing unchecked arraycopy natives
|
2014-07-27 20:22:33 -07:00 |
Andreas Gal
|
2a08d3b8ea
|
add ClassTest.java and hashCode()
|
2014-07-26 18:47:38 -07:00 |
Andreas Gal
|
bde88bd000
|
add and fix vm for ClassTest.java
|
2014-07-26 18:20:54 -07:00 |
Andreas Gal
|
c79379d73b
|
fix array copy with object element type
|
2014-07-26 17:39:49 -07:00 |
Andreas Gal
|
ad400b894b
|
add a bunch of math tests
|
2014-07-26 15:00:19 -07:00 |
Andreas Gal
|
d394243a8a
|
better locking for class intialization
|
2014-07-26 11:42:02 -07:00 |
Andreas Gal
|
600324794d
|
assorted fixes to make TestThread work
|
2014-07-25 17:54:34 -07:00 |
Andreas Gal
|
a903846238
|
make interpreter fully preemptive
|
2014-07-25 15:24:14 -07:00 |
Andreas Gal
|
c761251cbc
|
make all tests pass again
|
2014-07-25 15:06:21 -07:00 |
Andreas Gal
|
2b48b809b0
|
pop this in Runtime native methods
|
2014-07-25 13:42:44 -07:00 |
Andreas Gal
|
8da1a82cd1
|
fix a few native methods
|
2014-07-25 13:28:26 -07:00 |
Andreas Gal
|
a976bfe339
|
fix synthetic method code
|
2014-07-25 13:23:10 -07:00 |
Andreas Gal
|
72f91a6a1a
|
big refactoring to eliminate nested interpreter loops
|
2014-07-25 13:06:48 -07:00 |
Andreas Gal
|
5f1e87b04a
|
remove callback pattern
|
2014-07-24 00:21:59 -07:00 |
Andreas Gal
|
697d6f14d3
|
move initClass to frame
|
2014-07-21 02:04:14 -07:00 |
Andreas Gal
|
3ffc368260
|
move newException onto frame
|
2014-07-21 02:01:06 -07:00 |
Andreas Gal
|
f4c46b933d
|
move invokeConstructor and newString onto frame
|
2014-07-21 01:50:36 -07:00 |
Andreas Gal
|
2ce801b4a8
|
use bind instead of closures
|
2014-07-21 00:30:37 -07:00 |
Andreas Gal
|
db8f263702
|
support for actual multithreading
|
2014-07-20 22:24:07 -07:00 |
Andreas Gal
|
c73674f64c
|
move native method lookup code up
|
2014-07-20 22:08:08 -07:00 |
Andreas Gal
|
d371434057
|
cleanup native method dispatch
|
2014-07-20 21:32:47 -07:00 |
Andreas Gal
|
f78a97eecc
|
preload java/lang/Object
|
2014-07-20 17:10:12 -07:00 |
Andreas Gal
|
09859504f0
|
change the way natives indicate descheduling
|
2014-07-20 16:47:23 -07:00 |
Andreas Gal
|
6109859fc7
|
implement rescheduling requests from within natives
|
2014-07-20 16:41:30 -07:00 |
Andreas Gal
|
599739cea6
|
make sure threads can't be started multiple times
|
2014-07-20 16:28:26 -07:00 |
Andreas Gal
|
23557e71ee
|
add support for starting new threads
|
2014-07-20 16:27:24 -07:00 |
Andreas Gal
|
2b24ecf72c
|
create exceptions on the current thread, not the main thread
|
2014-07-20 15:46:22 -07:00 |
Andreas Gal
|
c53c68007a
|
note current thread in frame in invoke path
|
2014-07-20 15:42:23 -07:00 |
Andreas Gal
|
8008918b51
|
move newException to classes from vm
|
2014-07-20 15:35:48 -07:00 |
Andreas Gal
|
18724d85c0
|
initialize main thread during startup
|
2014-07-20 00:35:00 -07:00 |
Andreas Gal
|
a585efe82e
|
don't bind this to the caller frame in natives
|
2014-07-19 17:34:43 -07:00 |
Andreas Gal
|
8a2bdec2b2
|
inline getNativeMethod
|
2014-07-19 17:33:14 -07:00 |
Andreas Gal
|
e1c685dba4
|
fix a bunch of corner cases around array type checking
|
2014-07-19 13:18:45 -07:00 |
Andreas Gal
|
76801f1c66
|
throw proper internal exception when class can't be loaded and use native character conversion instead of CLDC's
|
2014-07-19 11:53:27 -07:00 |
Andreas Gal
|
1dfef4cba4
|
more work on strings and charsets
|
2014-07-19 11:20:46 -07:00 |
Andreas Gal
|
2634b8499f
|
add another test
|
2014-07-19 09:23:14 -07:00 |
Andreas Gal
|
8fb2523d6b
|
switch default encoding to UTF-8 to fix a few test failures
|
2014-07-19 09:13:10 -07:00 |
Andreas Gal
|
de7bc07375
|
fix lsub
|
2014-07-19 00:02:20 -07:00 |
Andreas Gal
|
f90bca8af5
|
add a way to print backtraces and fix ifnull/ifnonnull
|
2014-07-18 23:24:26 -07:00 |
Andreas Gal
|
805adcfeef
|
call the constructor from newInstance
|
2014-07-18 21:56:30 -07:00 |
Andreas Gal
|
5bcefb1f6c
|
fix a test case
|
2014-07-18 18:33:12 -07:00 |
Andreas Gal
|
f59bebf2b3
|
fix dconst_0/1
|
2014-07-18 18:23:49 -07:00 |
Andreas Gal
|
671a6bfce9
|
fix a bunch of cases for TestDataInputStream
|
2014-07-18 18:09:55 -07:00 |
Andreas Gal
|
dbdf9bd66d
|
add TestClass and fix related bugs
|
2014-07-18 17:55:09 -07:00 |
Andreas Gal
|
22bdd1bb5c
|
fix arraylength
|
2014-07-18 14:44:50 -07:00 |
Andreas Gal
|
a972b0b4ac
|
fix native calls that return a long value
|
2014-07-18 11:00:19 -07:00 |
Andreas Gal
|
25cb7e98a6
|
a couple array fixes
|
2014-07-18 01:12:38 -07:00 |
Andreas Gal
|
b6a04472c8
|
fixup exception handling
|
2014-07-17 23:02:28 -07:00 |
Andreas Gal
|
bae132fb3d
|
fixes to exception handling
|
2014-07-17 22:00:32 -07:00 |
Andreas Gal
|
bafcea469d
|
throw JavaException from native code instead of using raiseException
|
2014-07-17 18:43:16 -07:00 |
Andreas Gal
|
af6e510174
|
catch Java exceptions in native code in the interpreter
|
2014-07-17 18:42:11 -07:00 |
Andreas Gal
|
6256dd31ff
|
use separate stack to invoke static initializers
|
2014-07-17 14:34:22 -07:00 |
Andreas Gal
|
7ac0fb0653
|
send output to a div
|
2014-07-17 01:41:50 -07:00 |
Andreas Gal
|
391f2d314a
|
make class initialization more precise
|
2014-07-17 01:37:35 -07:00 |
Andreas Gal
|
16c34bd445
|
don't export JavaException from Native
|
2014-07-15 19:21:40 -07:00 |
Andreas Gal
|
31eaa16642
|
fix console output, hello world works now
|
2014-07-15 00:01:11 -07:00 |
Andreas Gal
|
344d8ebbb5
|
comment out monitor code, it seems to be broken
|
2014-07-14 23:52:27 -07:00 |
Andreas Gal
|
27529726b9
|
more work on Class natives
|
2014-07-14 23:47:20 -07:00 |
Andreas Gal
|
5c70149d6e
|
add partial Class.forName
|
2014-07-14 23:37:33 -07:00 |
Andreas Gal
|
acf1233174
|
add unchecked_char_array
|
2014-07-14 23:19:26 -07:00 |
Andreas Gal
|
5b0b4aef27
|
implement a native method
|
2014-07-14 22:13:01 -07:00 |
Andreas Gal
|
35752868ef
|
eliminate other use of meta()
|
2014-07-13 19:57:33 -07:00 |
Andreas Gal
|
0e899fbc7e
|
rename getMethod to getNativeMethod in Native
|
2014-07-13 18:47:31 -07:00 |
Andreas Gal
|
1572da1730
|
be more lazy and cache more signature parsing
|
2014-07-13 10:51:34 -07:00 |
Andreas Gal
|
875ef93a73
|
more classinfo cleanup
|
2014-07-13 10:37:28 -07:00 |
Andreas Gal
|
7401fda65d
|
cleanup classinfo, resolve it earlier, don't keep classImage in memory
|
2014-07-13 09:28:19 -07:00 |
Andreas Gal
|
02f2466e32
|
implement arraycopy
|
2014-07-13 09:03:11 -07:00 |
Andreas Gal
|
6a89b9142f
|
at last, we can raise exceptions from within natives
|
2014-07-13 00:15:00 -07:00 |
Andreas Gal
|
b6d521de28
|
pass caller to natives as this
|
2014-07-13 00:12:33 -07:00 |
Andreas Gal
|
ead498de16
|
rewrite invocation path
|
2014-07-13 00:00:11 -07:00 |
Andreas Gal
|
7bfd169d76
|
factor ou code to call native methods
|
2014-07-12 23:13:53 -07:00 |
Andreas Gal
|
6c30aeb031
|
fix argument order for native methods
|
2014-07-12 16:07:47 -07:00 |
Andreas Gal
|
673c224628
|
rework VM core
|
2014-07-12 14:07:11 -07:00 |