Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Michael Bebenita 60fb8c0f34 Renaming. 2014-12-25 10:11:18 -08:00
Michael Bebenita bd8f93965d Use PC instead of BCI in the interpreter. 2014-12-25 10:03:06 -08:00
Michael Bebenita 8182ac4c3d Typing fallout. 2014-12-25 09:39:53 -08:00
Michael Bebenita 816c9a38b5 Cleanup. 2014-12-25 09:39:01 -08:00
Michael Bebenita 2bca933433 Monomorphize many of the interpreter bytecodes. 2014-12-24 16:46:31 -08:00
Marcus Cavanaugh 1858b1bdd9 Port remaining createException() calls to $.new*. 2014-12-23 10:01:58 -06:00
Michael Bebenita e943c498b0 Fix tests and import fn. 2014-12-21 18:21:30 -08:00
Michael Bebenita 624135b5ed Don't allocate when calling methods from the interpreter. 2014-12-21 00:49:20 -08:00
Michael Bebenita 08276671f6 Only test return values in debug mode. 2014-12-21 00:08:46 -08:00
Michael Bebenita 07eb87c2b0 Adds a call graph analysis to determine where it's safe to skip generating yield code.
Hold static and special functions on method infos.
2014-12-20 21:03:03 -08:00
Brendan Dahl bda1440778 Merge branch 'master' of https://github.com/mbebenita/j2me.js into jit-merge-mbx
Conflicts:
	context.ts
	interpreter.ts
2014-12-19 10:06:47 -07:00
Michael Bebenita b8c8e5dca8 Add some instrumentation. 2014-12-19 00:54:42 -08:00
Michael Bebenita 6557256101 Merge. 2014-12-18 17:23:42 -08: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 04a4dc0937 Merge branch 'master' of https://github.com/mbebenita/j2me.js into jit-merge-mbx
Conflicts:
	runtime.ts
2014-12-18 12:27:38 -08:00
Michael Bebenita fe1dddf424 Add more instrumentation. 2014-12-18 00:53:16 -08:00
Brendan Dahl cba0031657 Add divide by zero checks. 2014-12-17 16:17:31 -08: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 8abc167fda Make unwind flag global so that it can be optimized by the JIT. 2014-12-16 20:46:05 -08:00
Brendan Dahl a2cf932a32 Add bailouts and convert type errors to java exceptions. 2014-12-16 17:46:47 -08:00
Brendan Dahl 363c716741 Fix isolate and thread tests. 2014-12-16 11:23:53 -08:00
Marcus Cavanaugh 38df0d4e57 Fix exception instantiation. 2014-12-16 10:27:20 -06:00
Brendan Dahl fef21ca51a Remove debugger. 2014-12-15 19:40:18 -08:00
Brendan Dahl eba653cc3b Fix class initialization yielding and promise exceptions. 2014-12-15 19:38:08 -08:00
Brendan Dahl d652c671fa Exception rewrite. 2014-12-15 18:54:47 -08:00
Brendan Dahl f81fa7db28 Temp 2014-12-15 17:38:27 -08:00
Marcus Cavanaugh 4875dc0748 Exception handling. 2014-12-15 19:06:53 -06:00
Brendan Dahl 15c5fc7d95 Remove unused code. 2014-12-15 12:49:37 -08:00
Marcus Cavanaugh 2a9a511fa2 Fix socket closing race. 2014-12-12 15:30:22 -06:00
Michael Bebenita 873ad77ac2 Clean up last commit and add timestamps to log messages. 2014-12-11 16:23:42 -08:00
Michael Bebenita 629bd80f34 Merge. 2014-12-11 16:04:20 -08:00
Michael Bebenita 7825d50a90 Some cleanup around how method tracing is logged. 2014-12-09 18:19:35 -08:00
Michael Bebenita abb25df708 Makes RuntimeKlasses normal objects. Storing properties on bound functions is slow in SM becaus they fall back to dictionary mode. 2014-12-08 10:55:05 -08:00
Michael Bebenita e4b94d48e3 Merge. 2014-12-06 11:22:05 -08:00
Michael Bebenita a63c8b0226 Trying to get rid of interpreter's calling convention. 2014-12-01 17:01:28 -08:00
Brendan Dahl 4abe001e2e Merge branch 'master' of https://github.com/andreasgal/j2me.js into jit-merge-mbx
Conflicts:
	libs/fs.js
	midp/media.js
	tests/automation.js
	vm.js
2014-12-01 10:25:23 -08:00
Michael Bebenita 40dfa017b2 Rename IP to BCI everywhere. 2014-12-01 09:47:42 -08:00
Michael Bebenita 9328215c32 Merge. 2014-12-01 00:15:56 -08:00
Michael Bebenita 51691d9fb4 Fixes a bug where were pushing 2 slots when returning a double array. 2014-12-01 00:06:12 -08:00
Michael Bebenita 7f038ee4aa Make sure we don't write inadvertently to stdout. 2014-12-01 00:04:48 -08: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
Michael Bebenita 17080841f0 Reference the balck box throw helper to make debugging easier. 2014-11-29 02:37:20 -08:00
Brendan Dahl 90708550be Fix various klass issues to get test framework running. 2014-11-27 11:15:28 -08:00
Michael Bebenita bcefeff226 Trace Java source lines in the interpreter. 2014-11-27 03:28:52 -08:00
Michael Bebenita 12bd1862e9 Use Bytecode enums in the interpreter. 2014-11-27 01:32:07 -08:00
Michael Bebenita 017608e78c TSify vm.js and rename to interpreter. 2014-11-27 01:15:46 -08:00