Marco Castelluccio
1a84f5ad7b
Remove util.javaUTF8Decode. Fixes #861 .
2015-02-25 16:08:05 +01:00
Yuan Xulei
361eb0dd5e
Implement backgroundColor and foregroundColor as CommonEditorPrototype attributes.
2015-01-30 11:24:01 +08:00
Brendan Dahl
1741920316
Remove util.newPrimitiveArray.
2015-01-27 15:36:13 -08:00
Brendan Dahl
e0a2c48bc8
Remove util.newObject.
2015-01-27 15:10:04 -08:00
Brendan Dahl
83c00a5749
Remove util.newString.
2015-01-27 15:01:19 -08:00
Brendan Dahl
8d3f459d55
Remove util.newArray.
2015-01-27 14:59:21 -08:00
Brendan Dahl
eb75e40259
Change comment to fix in future.
2015-01-14 12:30:16 -08:00
Brendan Dahl
9c2e31d19b
Merge branch 'master' of https://github.com/andreasgal/j2me.js into jit-merge
...
Conflicts:
Makefile
main.html
midp/fs.js
midp/gfx.js
midp/media.js
override.js
tests/automation.js
vm.js
2014-12-29 20:47:38 -07:00
Marco Castelluccio
773f2b4415
Add toCodePointArray function to util.js
2014-12-14 19:01:24 +01:00
Brendan Dahl
756327cce6
Merge branch 'master' of https://github.com/mbebenita/j2me.js into jit-merge-mbx
2014-11-30 20:48:15 -08:00
Brendan Dahl
66eee2fcf6
Use statics for primitive arrays and primitive values.
2014-11-30 19:49:39 -08:00
Michael Bebenita
846b1c7b80
Writes errors to stderr, changes the way symbols are registered.
2014-11-30 16:21:34 -08:00
Brendan Dahl
90708550be
Fix various klass issues to get test framework running.
2014-11-27 11:15:28 -08:00
Michael Bebenita
f5f95ae10c
Lots and lots of changes.
2014-11-26 01:21:11 -08:00
Brendan Dahl
ec70b204a3
Add object arrays.
2014-11-25 16:12:33 -08:00
Michael Bebenita
5f932a41c0
Compute hash codes on object allocation.
2014-11-24 22:14:11 -08:00
Marcus Cavanaugh
b598df5994
Fix typo in util.js.
2014-11-19 10:22:08 -08:00
Marco Castelluccio
1c002d7f57
Move javaUTF8Decode function to util.js
2014-11-13 22:24:59 +01:00
Eric Rahm
525a6ffcc2
Add a fallible UTF-8 decoder to util
...
This adds a UTF-8 decoder that takes an ArrayBufferView and throws an exception
on error. |util.decodeUtf8| is left as-is as it supports just passing in an
ArrayBuffer and will sanitize the output string rather than throwing an
exception. Profiling found that passing in a Uint8Array, then wrapping it in
another Uint8Array lead to an about 40% slowdown, so I've made
|util.decodeUtf8Array| explicitly take an ArrayBufferView which avoids this
pitfall.
2014-10-28 13:09:30 -07:00
Marco Castelluccio
0013756746
Move newArray and its relatives from runtime.js to util.js
2014-10-27 13:04:14 +01:00
Marcus Cavanaugh
9b5373a0ec
Port StringBuffer to JS.
2014-09-30 11:15:29 -07:00
Marcus Cavanaugh
0c18df2554
Replace fromCharCode loop with TextEncoder; fix indentation; fix getField conventions.
2014-09-29 10:04:09 -07:00
Marcus Cavanaugh
fe323649c6
Reimplement java.lang.String with JS Strings.
2014-09-29 09:43:31 -07:00
Marco Castelluccio
01d6985889
Use 'S' for static, 'I' for non-static
2014-09-26 11:48:06 -07:00
Marco Castelluccio
b71ee629f6
Fix all getField callers
2014-09-25 21:04:20 -07:00
Marcus Cavanaugh
dd7b30dd76
Override slow java.lang.String methods.
2014-09-24 12:56:36 -07:00
Marco Castelluccio
ffc6f29f15
Use fromCharCode with an array instead of in a loop
2014-09-23 17:42:24 -07:00
Myk Melez
79f032cf35
remove unused util.* log methods
2014-09-08 01:11:45 -07:00
Myk Melez
5c95489e1a
pad MCC/MNC values more lazily
2014-09-05 16:06:44 -07:00
Marco Castelluccio
e9ffcd62ac
Fix fromJavaChars to work when count or offset are 0
2014-09-04 17:06:48 -07:00
Myk Melez
803d7eb787
fix syntax error in util declaration
2014-09-02 23:19:21 -07:00
Myk Melez
0006e12b7f
move compareTypedArrays to util.js
2014-09-02 22:31:28 -07:00
Andreas Gal
936de85d1c
add basic support for isolates, not complete yet
2014-08-07 10:10:54 -07:00
Andreas Gal
07d06897ac
fix test automation
2014-08-04 19:54:58 -07:00
Andreas Gal
236e4e9a36
use numeric ids as field names
2014-08-01 22:47:26 -07:00
Donovan Preston
494aa7d88e
Use a less sucky way to convert from [C to a js string
2014-08-01 12:52:24 -04:00
Andreas Gal
d5deb3379f
don't crash on null strings
2014-08-01 08:53:35 -07:00
Andreas Gal
4d4224fdce
fix fromJavaString and a few more MIDP native methods
2014-07-30 09:14:04 -07:00
Andreas Gal
d7a1f4302d
make code run better in chrome
2014-07-28 19:13:32 -07:00
Andreas Gal
ae2426c4c0
a couple assorted fixes for threading
2014-07-28 00:53:37 -07:00
Andreas Gal
aeb8639403
fix including inner classes from packages
2014-07-27 22:23:25 -07:00
Andreas Gal
5f7b47bcd4
use fround to truncate to floats
2014-07-19 19:10:15 -07:00
Andreas Gal
c897a21b3d
fix access to inherited fields
2014-07-19 15:53:58 -07:00
Andreas Gal
b7a81439b3
remove chars2string
2014-07-18 19:23:00 -07:00
Andreas Gal
f59bebf2b3
fix dconst_0/1
2014-07-18 18:23:49 -07:00
Andreas Gal
0dd711c6e6
handle relative inner classes more cleanly
2014-07-18 18:00:10 -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
25ef4e1b64
more tests
2014-07-16 20:53:54 -07:00
Andreas Gal
45b9e7a96a
rename gLong to long.js/Long
2014-07-16 14:13:18 -07:00