[penberg/jato] 3422bc: x86: Use 16 bits for bytecode offsets

2009-10-24 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 3422bcff873271dca96451c53f69e47cbfab1220 http://github.com/penberg/jato/commit/3422bcff873271dca96451c53f69e47cbfab1220 Author: Pekka Enberg Date: 2009-10-24 (Sat, 24 Oct 2009) Changed paths: M arch/mmix/include/ar

[penberg/jato] b4f296: jit: fix get_reload_before_insn()

2009-10-24 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: b4f2964414e39c2ba01409ed59bdcd798cd1f29c http://github.com/penberg/jato/commit/b4f2964414e39c2ba01409ed59bdcd798cd1f29c Author: Tomek Grabiec Date: 2009-10-24 (Sat, 24 Oct 2009) Changed paths: M jit/spill-reload.c

[PATCH 1/5] jit: fix get_reload_before_insn()

2009-10-24 Thread Tomek Grabiec
LIR position passed to radix_tree_lookup() should be always even. Signed-off-by: Tomek Grabiec --- jit/spill-reload.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index 3dfb0b3..eaa2790 100644 --- a/jit/spill-reload.c +++ b/

[PATCH 2/5] jit: fix dead code in __insert_spill_reload_insn()

2009-10-24 Thread Tomek Grabiec
Reported-by: Pekka Enberg Signed-off-by: Tomek Grabiec --- 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 eaa2790..c7b3b51 100644 --- a/jit/spill-reload.c +++ b/jit/spill-reload.c @@ -225,7 +225,7 @@ stat

[PATCH] x86-64: Fix native_call() signature

2009-10-24 Thread Pekka Enberg
Fixes the following compilation error on x86-64: CC arch/x86/call.o arch/x86/call.c:257: error: conflicting types for ‘native_call’ include/vm/call.h:82: error: previous declaration of ‘native_call’ was here Cc: Eduard - Gabriel Munteanu Signed-off-by: Pekka Enberg --- arch/x86/c

[PATCH 4/5] jit: set bytecode offset of spill/reload instructions properly

2009-10-24 Thread Tomek Grabiec
Functions get_spill_after_insn() and get_reload_before_insn() not always return a pointer to struct insn (the API will be fixed in following patches). This can happen when we must insert spill instruction at the beginning of basic block, or a reload instruction at the end of basic block. In those c

[PATCH 5/5] jit: cleanup in spill-reload.c

2009-10-24 Thread Tomek Grabiec
This changes the API and renames get_spill_after_insn() and get_reload_before_insn() so that they do not return a pointer to struct insn, since it is not always a pointer to struct insn. Signed-off-by: Tomek Grabiec --- jit/spill-reload.c | 57 --

[PATCH 3/5] jit: make API to insert_reload_insn() the same as for insert_spill_insn()

2009-10-24 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- jit/spill-reload.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index c7b3b51..ba8ac27 100644 --- a/jit/spill-reload.c +++ b/jit/spill-reload.c @@ -168,20 +168,20 @@ insert_sp

[PATCH 2/2] jit: fix dead code in __insert_spill_reload_insn()

2009-10-24 Thread Tomek Grabiec
The if statement should be an assertion. Reported-by: Pekka Enberg Signed-off-by: Tomek Grabiec --- 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 7624bd6..f8fd582 100644 --- a/jit/spill-reload.c +++ b/j

[PATCH 1/2] jit: fix bug in get_spill_after_insn() and get_reload_after_insn()

2009-10-24 Thread Tomek Grabiec
When interval ends just before the next basic block, then prev_insn() will be called on that next basic block's first instruction and will return invalid instruction. We should not use prev_insn here because it does not work across basic block boundaries. Simmilar applies for next_insn() and get_

Strange code in __insert_spill_reload_insn()

2009-10-24 Thread Pekka Enberg
Hi Tomek, Looking at this commit: commit c0fdecf6c5a5eda9753c63dd039993bd82d4be09 Author: Tomek Grabiec Date: Sun Aug 30 21:45:41 2009 +0200 jit: implement precise live range calculation For each variable its live range is calculated precisely as described in Wimmer's master

[penberg/jato] 2121cc: x86: Introduce ->flags to struct insn

2009-10-24 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 2121cc83ce0297680af954cd1b7d5f67b52efdc9 http://github.com/penberg/jato/commit/2121cc83ce0297680af954cd1b7d5f67b52efdc9 Author: Pekka Enberg Date: 2009-10-24 (Sat, 24 Oct 2009) Changed paths: M arch/x86/emit-code.c

[penberg/jato] eaadf4: x86: Make non-globally used function static

2009-10-24 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: eaadf471d4866cb368f01cc70be6e57309450eb8 http://github.com/penberg/jato/commit/eaadf471d4866cb368f01cc70be6e57309450eb8 Author: Pekka Enberg Date: 2009-10-24 (Sat, 24 Oct 2009) Changed paths: M arch/x86/insn-select

[penberg/jato] 403062: x86: Mark object allocation points as safepoints

2009-10-24 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 403062f02973cca8c5d3df288c4d7f80306869be http://github.com/penberg/jato/commit/403062f02973cca8c5d3df288c4d7f80306869be Author: Pekka Enberg Date: 2009-10-24 (Sat, 24 Oct 2009) Changed paths: M arch/x86/insn-select