Branch: refs/heads/master
Home:   http://github.com/penberg/jato

Commit: 2800c15f01d34f3a876fa8ad8cade6d4d8bbc89b
    
http://github.com/penberg/jato/commit/2800c15f01d34f3a876fa8ad8cade6d4d8bbc89b
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M arch/x86/call.c
  M include/vm/call.h
  M vm/call.c
  M vm/jni-interface.c
  M vm/reflection.c

Log Message:
-----------
vm: change call result return method for vm_call_method_*() so that it can 
handle any type

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
saved. This way we can use vm_call_method_*() functions in a machine
and type independed way.

While at it, implement JNI funciton families:
 CallStatic*Method()
 CallStatic*MethodV()
 Call*Method()

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: 5b3f9aceb2a06450a7b144d891613cbb19ba12be
    
http://github.com/penberg/jato/commit/5b3f9aceb2a06450a7b144d891613cbb19ba12be
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M include/vm/preload.h
  M vm/preload.c
  M vm/reflection.c

Log Message:
-----------
vm: implement unwrap() for J_LONG and J_DOUBLE

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: d40ed3a80f0834e0e4ef3563ea7b6360f34c892a
    
http://github.com/penberg/jato/commit/d40ed3a80f0834e0e4ef3563ea7b6360f34c892a
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M include/vm/preload.h
  M vm/preload.c
  M vm/reflection.c

Log Message:
-----------
vm: rename encapsulate_value() to wrap()

While at it, make it more robust by using valueOf() functions.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: c112c32fe6ac47688d888d88241767eb68d29158
    
http://github.com/penberg/jato/commit/c112c32fe6ac47688d888d88241767eb68d29158
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M vm/reflection.c

Log Message:
-----------
vm: fix call_static_method() and call_virtual_method()

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 <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: 79f827b6c3ad989ba7b05268d5f1ce7f333ae761
    
http://github.com/penberg/jato/commit/79f827b6c3ad989ba7b05268d5f1ce7f333ae761
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M vm/reflection.c

Log Message:
-----------
vm: fix native_vmclass_get_declared_methods()

We should perform the vm_method_is_special() check also when
public_only == false;

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: ac9a5a30b7f879cf869c6f4888f9a504b6cecaa0
    
http://github.com/penberg/jato/commit/ac9a5a30b7f879cf869c6f4888f9a504b6cecaa0
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M regression/jvm/TestCase.java

Log Message:
-----------
regression: fix TestCase.assertObjectEquals()

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: d323b0fe358ccc54f1277ca23becbb79d50391ee
    
http://github.com/penberg/jato/commit/d323b0fe358ccc54f1277ca23becbb79d50391ee
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M arch/x86/call.c

Log Message:
-----------
x86: make native_call() hard crash for not implemented types.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: b9216f14470638be038b2a748915931d11c232e0
    
http://github.com/penberg/jato/commit/b9216f14470638be038b2a748915931d11c232e0
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M regression/jvm/MethodTest.java

Log Message:
-----------
regression: add regression test for method invokation via reflection

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: b4b01dcdd6052eafe18501f683274daf3b42aba6
    
http://github.com/penberg/jato/commit/b4b01dcdd6052eafe18501f683274daf3b42aba6
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-10-11 (Sun, 11 Oct 2009)

Changed paths:
  M vm/reflection.c

Log Message:
-----------
vm: fix bug in native_field_get()

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to