Brendan Dahl
6a7a52c8c7
Remove superfluous setAsCurrentContext calls.
2015-01-06 16:55:00 -08:00
Marcus Cavanaugh
b8bbc48e87
Replace $S with J2ME.newString.
2014-12-23 14:17:16 -06:00
Marcus Cavanaugh
57437e0ebf
Remove createAlternateImpl.
2014-12-18 18:41:24 -06:00
Marcus Cavanaugh
c685415529
Convert JavaExceptions into plain exceptions.
2014-12-18 18:41:07 -06:00
Brendan Dahl
68ec422421
First round of interpreter cleanup:
...
-Remove execute ignoring yields.
-Rename interpreter functions
-Move frame pops into the interpreter in prep for next cleanup step
2014-12-17 12:30:14 -08:00
Michael Bebenita
7bf6e682d6
Remove some usages for util.X methods and fix bug for newArray
2014-12-16 20:47:02 -08:00
Marcus Cavanaugh
38df0d4e57
Fix exception instantiation.
2014-12-16 10:27:20 -06:00
Brendan Dahl
f97eef6351
Fix override exceptions.
2014-12-15 19:39:46 -08:00
Brendan Dahl
eba653cc3b
Fix class initialization yielding and promise exceptions.
2014-12-15 19:38:08 -08:00
Brendan Dahl
f81fa7db28
Temp
2014-12-15 17:38:27 -08:00
Brendan Dahl
7da432a797
Merge branch 'master' of https://github.com/mbebenita/j2me.js into jit-merge-mbx
2014-12-11 16:26:23 -08:00
Brendan Dahl
1a562a8943
Misc cleanup.
2014-12-11 16:04:44 -08:00
Michael Bebenita
7825d50a90
Some cleanup around how method tracing is logged.
2014-12-09 18:19:35 -08:00
Michael Bebenita
2b5bf724d1
Change some of the natives to not expect null slots.
2014-12-09 11:48:23 -08:00
Marcus Cavanaugh
6fbec776d2
fix voidReturnType.
2014-12-04 17:37:29 -08:00
Brendan Dahl
66eee2fcf6
Use statics for primitive arrays and primitive values.
2014-11-30 19:49:39 -08:00
Michael Bebenita
05df20fa47
Don't rely on compiled script execution to create the class hierarchy.
2014-11-29 02:23:10 -08:00
Brendan Dahl
90708550be
Fix various klass issues to get test framework running.
2014-11-27 11:15:28 -08:00
Brendan Dahl
c6ea0a6287
Fix get class info.
2014-11-26 18:40:02 -08:00
Brendan Dahl
d49c18ff56
Array fixes.
2014-11-26 18:35:12 -08:00
Brendan Dahl
5626524ff7
Fixed calling natives and overrides.
2014-11-26 16:53:34 -08:00
Michael Bebenita
cfc77cab0c
Changes.
2014-11-26 13:22:15 -08:00
Brendan Dahl
67586c7f1c
Fix returns for natives.
2014-11-25 11:25:18 -08:00
Brendan Dahl
9e1924cb81
Resolve merge conflicts.
2014-11-17 15:58:56 -08:00
Marco Castelluccio
66aea4338f
Convert numbers to integers in natives that should return integers
2014-11-15 17:51:51 +01:00
Myk Melez
73fd3cac3f
measure async natives per promise
2014-11-14 09:03:12 -08:00
Brendan Dahl
0cffbb9025
Support async natives.
2014-11-07 13:31:11 -08:00
Brendan Dahl
b2ca0f58d5
Add support for invoking natives.
...
Fix several return issues.
2014-11-04 09:33:20 -08:00
Eric Rahm
c64a188b39
Improve perf of createAlternanteImpl
...
- Creates return-type specific return functions that are determined at
creation time.
- Splits off promise handling to it's own function. Overrides that use promises
must indicate so when creating the override with the usesPromise param.
- Updates overrides that use promises
2014-11-03 17:47:51 -08:00
Marco Castelluccio
f3b184b3e4
Move newArray and its relatives from Context and Runtime to util
2014-10-27 13:13:54 +01:00
Marco Castelluccio
820f2ef5da
Pass ctx as last optional parameter. Fixes #485 .
2014-10-27 12:37:53 +01:00
Marco Castelluccio
606e1fda61
Add info about time spent waiting for a native. Fixes #420 .
2014-10-24 11:18:11 +02:00
Marco Castelluccio
41bfebdec5
Update documentation for createAlternateImpl
2014-10-22 12:25:26 +02:00
Marco Castelluccio
4af2a450c4
Calculate number of parameters from the function signature
2014-10-22 12:16:59 +02:00
Marco Castelluccio
b9250183d7
Handle VM pause and resume in Native.create
2014-10-16 15:03:16 -07:00
Marco Castelluccio
338f62bdaa
Remove opts parameter from Override.create/Native.create and use the MethodInfo's isStatic property. Fixes #443 .
2014-10-14 16:38:16 -07:00
Marco Castelluccio
824c3fa01c
Merge branch 'native_simple_override_simple' into introduce_native_create
2014-10-14 15:12:18 -07:00
Marco Castelluccio
06147f0230
Always return booleans for functions that should return booleans
2014-10-14 14:55:10 -07:00
Marco Castelluccio
8dc9aae3f3
Support returning doubles from alternate impls
2014-10-14 11:26:29 -07:00
Marco Castelluccio
f08c5ec14e
Support alternate impls that throw VM.Pause or VM.Yield
2014-10-14 11:24:33 -07:00
Marco Castelluccio
a8bc55af70
Replace Override.simple with Override.create, that supports returning long values and lets functions use the context. Fixes #379 .
2014-10-14 10:29:34 -07:00
Marco Castelluccio
a8cfd29a59
Introduce Native.simple; port some overrides to Override.simple
2014-10-14 09:42:01 -07:00
Marcus Cavanaugh
0a6b67fd1c
Move alternateImpl detection into MethodInfo constructor.
2014-10-08 14:05:34 -07:00
Myk Melez
2be0a5b730
Revert "Move alternateImpl detection into MethodInfo constructor."
2014-10-08 12:20:48 -07:00
Marcus Cavanaugh
81e80969b6
Move alternateImpl detection into MethodInfo constructor.
2014-10-07 11:14:05 -07:00
Marco
362983df71
Merge pull request #367 from mcav/stringbuffer
...
Port StringBuffer to JS.
2014-10-01 11:43:26 -07:00
Marco Castelluccio
592b685ab4
Add comments to explain the Permissions overrides
2014-09-30 19:41:50 -07:00
Marco Castelluccio
a16833e9dd
Replace the Latin word "maximus" with the English "maximums"
2014-09-30 19:30:09 -07:00
Marco Castelluccio
9a5f629207
Add comment explaining the "+ 2"
2014-09-30 19:29:25 -07:00
Marco Castelluccio
8375d059ee
Merge branch 'master' of https://github.com/andreasgal/j2me.js into optimize_DomainPolicy
2014-09-30 19:28:27 -07:00