[PATCH 7/9] regression: add InvokestaticPatchingTest

2009-06-30 Thread Vegard Nossum
Signed-off-by: Vegard Nossum vegard.nos...@gmail.com --- Makefile |1 + regression/jvm/InvokestaticPatchingTest.java | 34 ++ regression/run-suite.sh |1 + 3 files changed, 36 insertions(+), 0 deletions(-)

[PATCH 2/4] x86: print machine register names in LIR for fixeg registers.

2009-06-30 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- arch/x86/lir-printer.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/x86/lir-printer.c b/arch/x86/lir-printer.c index 2dc2cc5..7f5558d 100644 --- a/arch/x86/lir-printer.c +++ b/arch/x86/lir-printer.c @@

[PATCH 1/4] vm: implement VMObject.getClass native

2009-06-30 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- vm/jato.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/vm/jato.c b/vm/jato.c index 26203af..023030f 100644 --- a/vm/jato.c +++ b/vm/jato.c @@ -110,6 +110,12 @@ native_vmthrowable_fill_in_stack_trace(struct

[PATCH 4/4] vm: implement VMClass.getName()

2009-06-30 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- vm/jato.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/vm/jato.c b/vm/jato.c index 023030f..729455f 100644 --- a/vm/jato.c +++ b/vm/jato.c @@ -116,6 +116,17 @@ native_vmobject_getclass(struct vm_object

[PATCH 01/10] Use 'gcc' instead of 'as'

2009-06-30 Thread Eduard - Gabriel Munteanu
Feeding 'as' through 'gcc' allows us to use preprocessing macros and other nice things in *.S files. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- Makefile |3 +-- scripts/build/test.mk |2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 10/10] x86: unify signal bottom handler trampoline code

2009-06-30 Thread Eduard - Gabriel Munteanu
This provides the necessary code for x86-64 and unifies it with 32-bit code. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/Makefile_32 |2 +- arch/x86/Makefile_64 |1 + arch/x86/{signal_32.S = signal-bh.S} | 46

[PATCH 06/10] Suppress deleting the tests runner on failure

2009-06-30 Thread Eduard - Gabriel Munteanu
If the runner is killed by a signal, make deletes the file. But it should leave it there so we can inspect it. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- scripts/build/test.mk |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git

[PATCH 03/10] x86-64: emit_unwind() and related

2009-06-30 Thread Eduard - Gabriel Munteanu
Implements emit_unwind() and other related emitters and provides unwind_64.S for x86-64. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/Makefile_64 |3 ++- arch/x86/emit-code.c | 27 ++- arch/x86/unwind_64.S | 41

[PATCH 02/10] x86: unify and cleanup emit_epilog()

2009-06-30 Thread Eduard - Gabriel Munteanu
This unifies emit_epilog() for x86-32 and x86-64 and makes it tidier. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/emit-code.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/arch/x86/emit-code.c

[PATCH 05/10] x86: build and link with exception.c on x86-64

2009-06-30 Thread Eduard - Gabriel Munteanu
exception.c was initially provided for x86-32, but the code can be reused on x86-64. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/Makefile_64 |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/Makefile_64 b/arch/x86/Makefile_64

[PATCH 04/10] x86: move fixup_*() functions in generic emitter code

2009-06-30 Thread Eduard - Gabriel Munteanu
These functions can be used on x86-64 as well, so we move them into the generic section and ensure they do what they're supposed to. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/emit-code.c | 94 +- 1 files

[PATCH 07/10] x86-64: remove JamVM leftover include form instruction selector

2009-06-30 Thread Eduard - Gabriel Munteanu
JamVM has been removed from Jato, so we must not include that file anymore. Signed-off-by: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro --- arch/x86/insn-selector_64.brg |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/x86/insn-selector_64.brg

[PATCH] jit: fix method_real_argument_count

2009-06-30 Thread Vegard Nossum
We're scanning the method signature to determine the number of real arguments to pass for an invoke opcode. We use the function method_real_argument_count() for this. But it doesn't skip class names, so if there is an uppercase J or D in the class name (of the argument type), we count one argument

[PATCH] x86: add INSN_GPR_TO_XMM for floating point immediate values using SSE

2009-06-30 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- arch/x86/emit-code.c|9 + arch/x86/include/arch/instruction.h |1 + arch/x86/insn-selector_32.brg | 13 +++-- arch/x86/lir-printer.c |7 +++ arch/x86/use-def.c