[penberg/jato] 27a646: Fix typo in README

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 27a64688281b4adb994165ab7273d2e4c9d2835d http://github.com/penberg/jato/commit/27a64688281b4adb994165ab7273d2e4c9d2835d Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M README Log Message:

[penberg/jato] 9f290d: Update README

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 9f290dee78e11308945bba0e1b0b428917aeb4e9 http://github.com/penberg/jato/commit/9f290dee78e11308945bba0e1b0b428917aeb4e9 Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M README Log Message:

[penberg/jato] 671d24: jit: clean up includes in jit/subroutine.c

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 671d24748077e5a19524026a5575465a4077a3bd http://github.com/penberg/jato/commit/671d24748077e5a19524026a5575465a4077a3bd Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M jit/subroutine.c Lo

[penberg/jato] fdb155: jit: rename subroutines_should_not_occure() to fai...

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: fdb155807a1c864e3c8f8be86cf7af7a27d70446 http://github.com/penberg/jato/commit/fdb155807a1c864e3c8f8be86cf7af7a27d70446 Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M include/jit/subrouti

[penberg/jato] a21441: Move LICENSE to top level

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: a214410456791f961a2d1da18356c557a415ecaa http://github.com/penberg/jato/commit/a214410456791f961a2d1da18356c557a415ecaa Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: A LICENSE R jit/LICE

[penberg/jato] 5ab2c5: regression: Move reflection API tests to new packa...

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 5ab2c53a70cc1f288c86a10e3a6da567a88f97de http://github.com/penberg/jato/commit/5ab2c53a70cc1f288c86a10e3a6da567a88f97de Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M Makefile A regress

[penberg/jato] 2800c1: vm: change call result return method for vm_call_m...

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 2800c15f01d34f3a876fa8ad8cade6d4d8bbc89b http://github.com/penberg/jato/commit/2800c15f01d34f3a876fa8ad8cade6d4d8bbc89b Author: Tomek Grabiec Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M arch/x86/call.c M

[PATCH] vm: fix bug in native_field_get()

2009-10-11 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- vm/reflection.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vm/reflection.c b/vm/reflection.c index d97fec9..faf27bd 100644 --- a/vm/reflection.c +++ b/vm/reflection.c @@ -621,7 +621,7 @@ struct vm_object *native_field_get(struct vm_

[PATCH 3/4] x86: make native_call() hard crash for not implemented types.

2009-10-11 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- arch/x86/call.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/call.c b/arch/x86/call.c index 717d53d..0b96020 100644 --- a/arch/x86/call.c +++ b/arch/x86/call.c @@ -137,7 +137,7 @@ void native_call(struct vm_method *meth

[PATCH 2/4] regression: fix TestCase.assertObjectEquals()

2009-10-11 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- regression/jvm/TestCase.java |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/regression/jvm/TestCase.java b/regression/jvm/TestCase.java index fd00063..2a53a8b 100644 --- a/regression/jvm/TestCase.java +++ b/regression/jvm/TestCase.java

[PATCH 1/4] vm: fix native_vmclass_get_declared_methods()

2009-10-11 Thread Tomek Grabiec
We should perform the vm_method_is_special() check also when public_only == false; Signed-off-by: Tomek Grabiec --- vm/reflection.c | 23 ++- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/vm/reflection.c b/vm/reflection.c index 6d03a57..d97fec9 100644 ---

[PATCH 4/4] regression: add regression test for method invokation via reflection

2009-10-11 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- regression/jvm/MethodTest.java | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/regression/jvm/MethodTest.java b/regression/jvm/MethodTest.java index c633f8c..b805da4 100644 --- a/regression/jvm/MethodTest.java +++ b/re

[PATCH 3/4] vm: rename encapsulate_value() to wrap()

2009-10-11 Thread Tomek Grabiec
While at it, make it more robust by using valueOf() functions. Signed-off-by: Tomek Grabiec --- include/vm/preload.h |8 +++ vm/preload.c | 56 ++ vm/reflection.c | 153 -- 3 files changed, 124 insertions(+), 93

[PATCH 4/4] vm: fix call_static_method() and call_virtual_method()

2009-10-11 Thread Tomek Grabiec
Those functions should return values wrapped in approptiate objects, not the value itself. This caused a SIGSEGV when running clojure because an integer value was accessed like an object reference. Signed-off-by: Tomek Grabiec --- vm/reflection.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH 1/4] vm: change call result return method for vm_call_method_*() so that it can handle any type

2009-10-11 Thread Tomek Grabiec
Before that, all vm_call_method_*() functions returned unsigned long which was not a good idea because there was no way to handle jlong or jdouble this way on x86. This patch changes the API, so that vm_call_method_*() functions are given a pointer to a union jvalue to which the result should be s

[PATCH 2/4] vm: implement unwrap() for J_LONG and J_DOUBLE

2009-10-11 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- include/vm/preload.h |2 ++ vm/preload.c | 14 ++ vm/reflection.c |7 ++- 3 files changed, 22 insertions(+), 1 deletions(-) diff --git a/include/vm/preload.h b/include/vm/preload.h index c71d8f9..a99fa89 100644 --- a/includ

[penberg/jato] 2e5dd6: x86: Separate 32 and 64-bit atomic.h

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 2e5dd6daedc211c399741f76ffa0d660c2a463e4 http://github.com/penberg/jato/commit/2e5dd6daedc211c399741f76ffa0d660c2a463e4 Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M arch/x86/include/arc

[penberg/jato] 54893c: Implement AtomicLong.VMSupportsCS8()

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 54893cea2f29b67241fbad13f02f1236ee0fcbd6 http://github.com/penberg/jato/commit/54893cea2f29b67241fbad13f02f1236ee0fcbd6 Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M vm/jato.c Log Messa

[penberg/jato] 57ac9b: jit: skip conversion of unreachable basic blocks

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 57ac9bead86fda7612245ead4faf3726395aa089 http://github.com/penberg/jato/commit/57ac9bead86fda7612245ead4faf3726395aa089 Author: Tomek Grabiec Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M jit/bytecode-to-ir.

[PATCH] jit: skip conversion of unreachable basic blocks

2009-10-11 Thread Tomek Grabiec
Basic blocks which are unreachable in CFG and are not exception handlers will not be converted. This is a workaround for a problem encountered in bytecode generated by clojure. Clojure generates unreachable basic blocks which leave empty mimic stack and jump to a basic block which expects a value

[penberg/jato] 60fd91: vm: Sort natives table

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 60fd910e17bd6c7671891f30e1b0e75e5e81112d http://github.com/penberg/jato/commit/60fd910e17bd6c7671891f30e1b0e75e5e81112d Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M vm/jato.c Log Messa

[penberg/jato] 286f4e: Implement Method.getModifiersInternal()

2009-10-11 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 286f4e557da4668fafb744fdee87678bb2c8494b http://github.com/penberg/jato/commit/286f4e557da4668fafb744fdee87678bb2c8494b Author: Pekka Enberg Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M Makefile M include