[PATCH] Added dependencies installation instructions for Arch Linux

2009-12-13 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- README |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/README b/README index cd32316..15122b0 100644 --- a/README +++ b/README @@ -33,6 +33,10 @@ How can I try it out? $ su $ pkg install SUNWgnome

[PATCH] Add myself to AUTHORS

2009-12-13 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- AUTHORS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/AUTHORS b/AUTHORS index 92693d2..417ea18 100644 --- a/AUTHORS +++ b/AUTHORS @@ -24,3 +24,8 @@ L: Oslo, Norway N: Saeed Siam saeed.s...@gmail.com D: Array

[PATCH] Added dependencies installation instructions for Arch Linux

2009-11-21 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- README |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/README b/README index 03985d6..970bdcd 100644 --- a/README +++ b/README @@ -29,6 +29,10 @@ How can I try it out? $ su $ make install ; exit

[PATCH] Added dependencies installation instructions for Arch Linux

2009-11-21 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- This patch applies cleanly. Sorry. :) README |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/README b/README index 78d61fa..1b0cb7b 100644 --- a/README +++ b/README @@ -33,6 +33,10 @@ How can I try it out

Re: [PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Arthur Huillet
triggered by empty basic blocks. Cc: Arthur HUILLET arthur.huil...@free.fr Cc: Tomek Grabiec tgrab...@gmail.com Signed-off-by: Pekka Enberg penb...@cs.helsinki.fi --- jit/basic-block.c | 16 +--- jit/spill-reload.c |2 +- 2 files changed, 2 insertions(+), 16 deletions

Re: [PATCH 2/2] jit: introduce per-edge data flow resolution blocks

2009-08-08 Thread Arthur Huillet
Hi, On Sat, 8 Aug 2009 12:43:50 +0200 Tomek Grabiec tgrab...@gmail.com wrote: When resolving data flow we can not emit reload instructions at the end of a basic block. That's because the register we are reloading to might be allocated to another interval at the end of this block.

[PATCH] jit: fix control flow resolution in regalloc

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/spill-reload.c |4 ++-- regression/jvm/RegisterAllocatorTortureTest.java |5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index

Re: [PATCH] jit: fix control flow resolution in regalloc

2009-07-24 Thread Arthur Huillet
Hi, On Fri, 24 Jul 2009 22:44:15 +0200 Arthur HUILLET arthur.huil...@free.fr wrote: Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/spill-reload.c |4 ++-- regression/jvm/RegisterAllocatorTortureTest.java |5 ++--- 2 files changed, 4

[PATCH 1/4] jit: add prev_child field to struct live_interval

2009-07-24 Thread Arthur HUILLET
We need that for the register allocator. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- include/jit/vars.h |2 +- jit/interval.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/jit/vars.h b/include/jit/vars.h index b567116..a697b1c 100644

[PATCH 3/4] jit: bugfix for control flow resolution when a live interval ends at a basic block boundary

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/spill-reload.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index 520e6d7..61b97ff 100644 --- a/jit/spill-reload.c +++ b/jit/spill-reload.c @@ -196,7 +196,7 @@ static

[PATCH 4/4] jit: fix bb_last_insn so it returns the last LIR instruction of the block

2009-07-24 Thread Arthur HUILLET
. This is a bugfix. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/basic-block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/jit/basic-block.c b/jit/basic-block.c index 0a13062..4cd642e 100644 --- a/jit/basic-block.c +++ b/jit/basic-block.c

[RFC PATCH 3/3] WIP bits for control flow resolution

2009-07-23 Thread Arthur HUILLET
From: Arthur Huillet arthur.huil...@free.fr DO NOT MERGE THIS !!! Signed-off-by: Arthur Huillet arthur.huil...@free.fr diff --git a/Makefile b/Makefile index 58ad9db..55de435 100644 --- a/Makefile +++ b/Makefile @@ -256,6 +256,7 @@ REGRESSION_TEST_SUITE_CLASSES = \ regression/jvm

[PATCH 2/3] jit: add vreg_start_interval and interval_child_at

2009-07-23 Thread Arthur HUILLET
From: Arthur Huillet arthur.huil...@free.fr Those functions will be used by the register allocator when doing control flow resolution. Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- include/jit/vars.h |4 +++- jit/interval.c | 33 + 2 files

[RFC PATCH 1/3] jit: add bb_first_insn and bb_last_insn

2009-07-23 Thread Arthur HUILLET
From: Arthur Huillet arthur.huil...@free.fr Those functions are to be used by the register allocator when resolving control flow. Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- include/jit/basic-block.h |2 ++ jit/basic-block.c | 10 ++ 2 files changed, 12

Re: [RFC PATCH 3/3] WIP bits for control flow resolution

2009-07-23 Thread Arthur Huillet
Hi, if you apply this series, you can help me work on the bug. On Thu, 23 Jul 2009 23:24:50 +0200 Arthur HUILLET arthur.huil...@free.fr wrote: From: Arthur Huillet arthur.huil...@free.fr DO NOT MERGE THIS !!! Signed-off-by: Arthur Huillet arthur.huil...@free.fr diff --git a/Makefile b

Re: [PATCH] x86: ESP and EBP are of GPR type

2009-07-21 Thread Arthur Huillet
, Arthur Huillet wrote: Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- arch/x86/registers_32.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/registers_32.c b/arch/x86/registers_32.c index ecce9df..463572b 100644 --- a/arch/x86/registers_32.c

[PATCH] regression: add integer-float conversion tests

2009-07-03 Thread Arthur Huillet
Disabled until conversion is implemented. Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- regression/jvm/FloatArithmeticTest.java | 18 +- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/regression/jvm/FloatArithmeticTest.java b/regression/jvm

[PATCH] x86: factorize code for INVOKEVIRTUAL and FINVOKEVIRTUAL

2009-07-03 Thread Arthur Huillet
Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- arch/x86/insn-selector_32.brg | 108 +++-- 1 files changed, 40 insertions(+), 68 deletions(-) diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg index 0e8e84f..35d9ecb 100644

[PATCH] x86: factorize code for INVOKE and FINVOKE

2009-07-03 Thread Arthur Huillet
Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- arch/x86/insn-selector_32.brg | 125 - 1 files changed, 48 insertions(+), 77 deletions(-) diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg index 35d9ecb..857f2a9 100644

[PATCH] x86: floating point returning is now ABI conformant

2009-07-03 Thread Arthur Huillet
We use the top of the x87 stack as is specified by the i386 SystemV ABI. Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- arch/x86/emit-code.c| 12 +++ arch/x86/include/arch/instruction.h |3 + arch/x86/insn-selector_32.brg | 126

[PATCH] x86: fix FMUL FDIV FCMPL, implement FNEG, enable FloatArithmeticTest

2009-07-02 Thread Arthur Huillet
Signed-off-by: Arthur Huillet arthur.huil...@free.fr --- The patch that makes things work. :) arch/x86/emit-code.c|8 arch/x86/include/arch/instruction.h |1 + arch/x86/insn-selector_32.brg | 22 +++--- arch/x86/lir-printer.c

[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

[PATCH] x86: implement i2b conversion

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

[PATCH] x86: implement i2b conversion

2009-06-25 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- Hi, this is the updated, working version. Please merge. Sorry for screwing up. arch/x86/emit-code.c|8 arch/x86/include/arch/instruction.h |1 + arch/x86/insn-selector_32.brg

[PATCH] regression: add PrintTest test

2009-06-25 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- Hi, this patch adds a PrintTest regression test - for now the only thing enabled is a write call because that's the only working thing. :) Makefile |3 ++- regression/jvm/PrintTest.java | 39

[PATCH] regression: add PrintTest test

2009-06-25 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- This patch works, please merge. Makefile |3 ++- regression/jvm/PrintTest.java | 39 +++ regression/run-suite.sh |1 + 3 files changed, 42 insertions(+), 1 deletions

[PATCH] x86: add OP_MUL(reg, reg)

2009-06-25 Thread Arthur HUILLET
It is necessary for System.out.println to work. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- arch/x86/insn-selector_32.brg |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg index 96316b7

[PATCH] run-suite: fix missing $JAVA_OPTS on cmdline

2009-06-25 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- regression/run-suite.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/regression/run-suite.sh b/regression/run-suite.sh index 4b89769..f5b7625 100755 --- a/regression/run-suite.sh +++ b/regression/run-suite.sh

[PATCH] bc2ir: fix refcount bug in spill_expression

2009-06-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/bytecode-to-ir.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jit/bytecode-to-ir.c b/jit/bytecode-to-ir.c index 76fd5a4..862a335 100644 --- a/jit/bytecode-to-ir.c +++ b/jit/bytecode-to-ir.c @@ -143,7 +143,7

[PATCH 1/2] jit: add predecessors to basic block structure

2009-06-24 Thread Arthur HUILLET
The list of predecessors is not set yet, this is just the infrastructure. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- include/jit/basic-block.h |2 ++ jit/basic-block.c | 32 +++- jit/trace-jit.c | 23

[PATCH 2/2] jit: set up bb predecessors in bb_add_successor

2009-06-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- jit/basic-block.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/jit/basic-block.c b/jit/basic-block.c index df984eb..5a4fa53 100644 --- a/jit/basic-block.c +++ b/jit/basic-block.c @@ -167,6 +167,7 @@ int

[PATCH 1/3] jit: add EXPR_MIMIC_STACK_SLOT and expr_set_type

2009-06-24 Thread Arthur HUILLET
This will be necessary for bc2ir to work. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- include/jit/expression.h | 16 jit/expression.c | 12 jit/tree-printer.c | 11 +-- 3 files changed, 37 insertions(+), 2 deletions(-) diff

[PATCH] x86: add OP_AND(reg, reg)

2009-06-24 Thread Arthur HUILLET
It is necessary for System.out.println Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- arch/x86/emit-code.c|7 +++ arch/x86/include/arch/instruction.h |1 + arch/x86/insn-selector_32.brg | 15 +++ arch/x86/lir-printer.c |7

[PATCH] bc2ir: fix converters array out-of-bound access

2009-06-02 Thread Arthur HUILLET
--- jit/bytecode-to-ir.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/jit/bytecode-to-ir.c b/jit/bytecode-to-ir.c index 0ad607e..19a0c29 100644 --- a/jit/bytecode-to-ir.c +++ b/jit/bytecode-to-ir.c @@ -371,6 +371,11 @@ static int do_convert_bb_to_ir(struct

[PATCH] test_convert_goto: empty basic blocks need OPC_NOP

2009-06-02 Thread Arthur HUILLET
An empty basic block is a block of size 1, with a JVM NOP instruction. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- test/jit/branch-bc-test.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/jit/branch-bc-test.c b/test/jit/branch-bc-test.c index 5684c65

[PATCH] regression: fix building of ObjectStackTest

2009-06-02 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- regression/jvm/ObjectStackTest.java |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/regression/jvm/ObjectStackTest.java b/regression/jvm/ObjectStackTest.java index f5afcbe..ee2184a 100644 --- a/regression/jvm

[PATCH] regression: enable all tests in PutstaticTest

2009-04-24 Thread Arthur HUILLET
They all work fine now. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- regression/jvm/PutstaticTest.java |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/regression/jvm/PutstaticTest.java b/regression/jvm/PutstaticTest.java index faa162f..cbf9496 100644

[PATCH] x86: improve naming of multiplication operations in LIR

2009-04-15 Thread Arthur HUILLET
MUL_MEMBASE_REG and MUL_REG_REG have been renamed to MUL_*_EAX because of the implicit eax operand of the x86 mul instruction. MUL_REG_REG was introduced and emits the x86 imul instruction that does not have implicit operands. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- arch/x86

[PATCH] Added support for LIR tracing. Implemented for x86.

2009-04-15 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- Hi, this patch adds a LIR tracer. It has only been implemented for x86 so I assume you will have to tweak it a bit before merging it upstream. It seems to work fine here, so please apply. arch/x86/Makefile_32