Eric Rahm
adb0b6d802
Handle uncompressed entries in |loadFileFromJar|
...
We need to provide a proper byte length and offset to |slice|.
2014-10-22 17:56:54 -07:00
Eric Rahm
fa5897b35b
Fix handling of uncompressed JAR entries
...
The Uint8Array returned from zip.read is just an offset into the jar's array
buffer. We need to properly use the byte length and offset when carving out a
slice.
2014-10-22 12:04:26 -07:00
Marcus Cavanaugh
5fbc4c4552
Remove additional "if (!method.key)" check.
2014-10-09 13:52:41 -07:00
Marcus Cavanaugh
6bcc166d2d
Use a MethodInfo constructor to assist with caching ACCESS_FLAG lookups.
2014-10-06 15:32:40 -07:00
Marco Castelluccio
a73e4ed546
Merge branch 'master' of https://github.com/andreasgal/j2me.js into pass_key_to_getfield
...
Conflicts:
classes.js
2014-09-26 21:19:58 -07:00
Marco Castelluccio
01d6985889
Use 'S' for static, 'I' for non-static
2014-09-26 11:48:06 -07:00
Marco Castelluccio
e822564766
Use | 0
2014-09-26 09:51:15 -07:00
Marco Castelluccio
832bcd8a96
Pass fieldKey instead of fieldName, signature and staticFlag to getField
2014-09-25 21:00:07 -07:00
Marco Castelluccio
10b9bb3b90
Don't check if vfc/vmc are set, because now they're set for all classes. Fixes #342 .
2014-09-25 19:21:45 -07:00
Myk Melez
b23336b799
cache fields
2014-09-25 12:52:38 -07:00
Marco Castelluccio
40b99bbf2b
Don't call getMethod if the method is already in the virtual method cache
2014-09-24 22:59:58 -07:00
Marco Castelluccio
fa179469c3
Store 1 or 0 in the key according to whether the method is static or not
2014-09-24 22:51:46 -07:00
Marco Castelluccio
4021a2b927
Remove unused argument from getMethod
2014-09-24 22:38:41 -07:00
Marco Castelluccio
faccf951d9
Store the key lazily in methodInfo and pass the key to getMethod
2014-09-24 22:35:02 -07:00
Marco Castelluccio
d309f3e408
Minor cleanup
2014-09-24 20:25:15 -07:00
Marco Castelluccio
c0e1df461e
Implement a virtual method cache to reduce the cost of invokevirtual and invokeinterface
2014-09-24 20:20:49 -07:00
Myk Melez
cce935dc89
remove logging of class files we load
2014-09-09 14:37:47 -07:00
Myk Melez
0ecb2ef930
replace deprecated console.debug
2014-09-08 07:50:48 -07:00
Myk Melez
3cface3289
correct levels of various console.* calls
2014-09-08 01:22:18 -07:00
Marco Castelluccio
4cac18ff71
Classes that implement an interface also implement its superinterfaces
2014-08-21 13:09:58 -07:00
Andreas Gal
6f5866f663
move newPrimitiveArray to context as well
2014-08-06 16:53:35 -07:00
Andreas Gal
695d1619f8
move isolate-specific state out of CLASSES
2014-08-06 16:48:17 -07:00
Andreas Gal
67c5746f6d
move newArray to context
2014-08-06 13:52:18 -07:00
Andreas Gal
4dbfc348c8
move newMultiArray over to context
2014-08-06 13:49:46 -07:00
Andreas Gal
b7142d3304
remove style from canvas
2014-08-05 19:04:45 -07:00
Andreas Gal
1bbcd56b92
remove preloading patch, doesn't seem to speed us up
2014-08-05 17:59:45 -07:00
Andreas Gal
54efd3acbf
implement preloading
2014-08-05 17:08:59 -07:00
Myk Melez
34c1c630de
use the 'new' operator on *Array constructor for Chrome compat
2014-08-05 15:03:39 -07:00
Myk Melez
a798f31116
use Object.create to clarify intent
2014-08-05 12:15:13 -07:00
Myk Melez
9dbc196837
make ClassNotFoundException a subclass of Error
2014-08-05 11:55:34 -07:00
Andreas Gal
2d5936857c
load manifest from jar
2014-08-02 17:25:00 -07:00
Andreas Gal
236e4e9a36
use numeric ids as field names
2014-08-01 22:47:26 -07:00
Andreas Gal
99dc2b3003
avoid creating multiple array classInfo objects
2014-08-01 20:40:05 -07:00
Andreas Gal
297ab1b54b
fix accessing static fields inherited from interfaces
2014-08-01 19:51:01 -07:00
Andreas Gal
f992c490a7
fix interface method lookup
2014-07-31 19:42:36 -07:00
Andreas Gal
48714d05c0
move newString to classes
2014-07-29 17:40:19 -07:00
Andreas Gal
d7a1f4302d
make code run better in chrome
2014-07-28 19:13:32 -07:00
Andreas Gal
aeb8639403
fix including inner classes from packages
2014-07-27 22:23:25 -07:00
Andreas Gal
c761251cbc
make all tests pass again
2014-07-25 15:06:21 -07:00
Andreas Gal
4c6c50b6fa
propertly chain initClass in startup
2014-07-22 15:11:38 -07:00
Andreas Gal
44b74a7462
start properly chaning initClass
2014-07-22 15:04:46 -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
517bca78d8
newObject takes a classInfo object and no longer implicitly inits the class
2014-07-20 21:57:00 -07:00
Andreas Gal
1b3d71607d
flag whether class still needs initialization so we can bypass the initClass call
2014-07-20 21:17:08 -07:00
Andreas Gal
dbd8da606c
preload java/lang/Class
2014-07-20 17:15:09 -07:00
Andreas Gal
ea068c060f
preload java/lang/String
2014-07-20 17:12:15 -07:00
Andreas Gal
f78a97eecc
preload java/lang/Object
2014-07-20 17:10:12 -07:00
Andreas Gal
edb7c1af53
fix fetching the current thread
2014-07-20 16:08:39 -07:00