cacao.git
17 years ago* src/vm/jit/stack.c (new_stack_analyse): Combined calls to
edwin [Sat, 9 Sep 2006 21:41:45 +0000 (21:41 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Combined calls to
stack_create_instack.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.h (basicblock): Removed members instack and
edwin [Sat, 9 Sep 2006 21:33:48 +0000 (21:33 +0000)]
* src/vm/jit/jit.h (basicblock): Removed members instack and
outstack.

* src/vm/jit/stack.c (stack_check_invars): New function.
(stack_create_instack): New function.
(stack_mark_reached): Use new functions.
(new_stack_analyse): Likewise.

* src/vm/jit/stack.h (COPYCURSTACK): Removed macro.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.h (COPYCURSTACK): Do not create invars here.
edwin [Sat, 9 Sep 2006 20:05:35 +0000 (20:05 +0000)]
* src/vm/jit/stack.h (COPYCURSTACK): Do not create invars here.

* src/vm/jit/stack.c (stack_create_invars): New function.
(stack_mark_reached): Use stack_create_invars.
(new_stack_analyse): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.h (basicblock): Added fields varstart and varcount.
edwin [Sat, 9 Sep 2006 19:37:19 +0000 (19:37 +0000)]
* src/vm/jit/jit.h (basicblock): Added fields varstart and varcount.
Reordered fields for clarity and alignment.

* src/vm/jit/stack.c (new_stack_analyse): Set varstart and varcount
of each basic block.

--HG--
branch : unified_variables

17 years ago* src/vm/exceptions.c (exceptions_handle_exception): Added comment on
edwin [Sat, 9 Sep 2006 19:25:24 +0000 (19:25 +0000)]
* src/vm/exceptions.c (exceptions_handle_exception): Added comment on
why we have to do eager resolving here. Check for exceptions while
resolving the catch class reference.

* src/vm/linker.c (link_class_intern): Resolve exception classes
in handler entries lazily, instead of eagerly.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.h (CURKIND): Removed macro.
edwin [Sat, 9 Sep 2006 14:49:25 +0000 (14:49 +0000)]
* src/vm/jit/stack.h (CURKIND): Removed macro.
(CURTYPE): Removed macro.

* src/vm/jit/stack.c (new_stack_analyse): Removed the single use of
CURKIND.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.h (Changes): Added my name.
edwin [Sat, 9 Sep 2006 14:45:55 +0000 (14:45 +0000)]
* src/vm/jit/stack.h (Changes): Added my name.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.h (REQUIRE_1, REQUIRE_2, REQUIRE_3, REQUIRE_4):
edwin [Sat, 9 Sep 2006 14:41:03 +0000 (14:41 +0000)]
* src/vm/jit/stack.h (REQUIRE_1, REQUIRE_2, REQUIRE_3, REQUIRE_4):
Removed.
* src/vm/jit/stack.c (new_stack_analyse): Use the general REQUIRE
macro.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (IS_TEMPVAR): Fix bug spotted
edwin [Fri, 8 Sep 2006 23:59:52 +0000 (23:59 +0000)]
* src/vm/jit/stack.c (IS_TEMPVAR): Fix bug spotted
(and produced ;) by c_u.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Added some assertion.
edwin [Fri, 8 Sep 2006 20:54:05 +0000 (20:54 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Added some assertion.
When we do a STORE coalescing, the stackslot must have a creator.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Unified last_dup_boundary
edwin [Fri, 8 Sep 2006 20:50:13 +0000 (20:50 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Unified last_dup_boundary
and last_pei_boundary to coalescing_boundary.
Activated STORE coalescing. Change destination operand of creator, if any.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.h (COPYCURSTACK): Use GET_NEW_VAR.
edwin [Fri, 8 Sep 2006 20:41:20 +0000 (20:41 +0000)]
* src/vm/jit/stack.h (COPYCURSTACK): Use GET_NEW_VAR.
Removed SET_OUTVAR.
* src/vm/jit/stack.c (GET_NEW_VAR): New macro.
(various macros): Use GET_NEW_VAR, so the variable type is set.
Reset coalescing for non-consuming uses.
(SET_TEMPVAR): Fix: do not use "copy". Change the destination operand
of the creator, if any.
(DST_LOCAL): Activate LOAD coalescing.
(new_stack_analyse): Reset coalescing for pass-through operands.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.h (stackelement): Added creator field.
edwin [Fri, 8 Sep 2006 19:48:27 +0000 (19:48 +0000)]
* src/vm/jit/jit.h (stackelement): Added creator field.
* src/vm/jit/stack.h (COPYCURSTACK): Set creator = NULL.
* src/vm/jit/stack.c (DST, DST_LOCALVAR, MOVE_COPY_UP, COPY_DOWN):
Set creator to current iptr.
* src/vm/jit/stack.h: Cleaned up macros.
* src/vm/jit/stack.c: Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/codegen-common.h: Removed the NEW_VAR define.
edwin [Fri, 8 Sep 2006 18:14:50 +0000 (18:14 +0000)]
* src/vm/jit/codegen-common.h: Removed the NEW_VAR define.
* src/vm/jit/stack.c: Likewise.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/i386/codegen.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/reg.c: Likewise.
* src/vm/jit/reg.h: Likewise.
* src/vm/jit/jit.c: Likewise.
* src/vm/jit/codegen-common.c: Likewise.
* src/vm/jit/jit.h: Likewise, and removed the dupslots member from
the dst_operand_t union.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (new_show_icmd): Removed code for DUPs.
edwin [Fri, 8 Sep 2006 18:12:18 +0000 (18:12 +0000)]
* src/vm/jit/show.c (new_show_icmd): Removed code for DUPs.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/verify/typecheck.c: Removed code for DUPs.
edwin [Fri, 8 Sep 2006 17:59:51 +0000 (17:59 +0000)]
* src/vm/jit/verify/typecheck.c: Removed code for DUPs.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.c (codegen): Removed code for DUPs.
edwin [Fri, 8 Sep 2006 17:57:03 +0000 (17:57 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Removed code for DUPs.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.c (*LOAD, *STORE): Normalized the source ==
edwin [Fri, 8 Sep 2006 17:50:45 +0000 (17:50 +0000)]
* src/vm/jit/i386/codegen.c (*LOAD, *STORE): Normalized the source ==
dest check so it always looks the same.
(LLOAD, LSTORE): Use M_LNGMOVE, not M_INTMOVE.
(DSTORE): Combined with FSTORE, because it now has the same code.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.c (codegen): Fix LSTORE: The source == dest
edwin [Fri, 8 Sep 2006 17:37:26 +0000 (17:37 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Fix LSTORE: The source == dest
test was broken.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (new_show_method): Fix display of local table.
edwin [Fri, 8 Sep 2006 16:41:15 +0000 (16:41 +0000)]
* src/vm/jit/show.c (new_show_method): Fix display of local table.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Fix ICMD_RET: The variable
edwin [Fri, 8 Sep 2006 16:26:59 +0000 (16:26 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Fix ICMD_RET: The variable
index has to be mapped.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (DUP_SLOT): Turn off coalescing.
edwin [Fri, 8 Sep 2006 16:07:48 +0000 (16:07 +0000)]
* src/vm/jit/stack.c (DUP_SLOT): Turn off coalescing.
(MOVE_COPY_UP): New macro.
(COPY_DOWN): New macro.
(interface_map): Changed to array of interface_info.
(*STORE): Fix index into last_store_boundary (must be javaindex).
(DUP*, SWAP): Eliminate DUPs.
(new_stack_analyse): Mark invar interfaces used.

* src/vm/jit/show.c (new_show_method): Adapted to new
interface_map layout.

* src/vm/jit/allocator/simplereg.c (interface_regalloc): Adapted
to new interface_map layout.
(new_allocate_scratch_registers): Likewise.
(new_allocate_scratch_registers): Removed code for DUP* instructions.
(ICMD_MOVE, ICMD_COPY): Added.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.h (M_FLTMOVE): Only assert(0) if move would
edwin [Fri, 8 Sep 2006 16:02:40 +0000 (16:02 +0000)]
* src/vm/jit/i386/codegen.h (M_FLTMOVE): Only assert(0) if move would
have to be performed.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (show_variable): Check for invalid flags.
edwin [Fri, 8 Sep 2006 14:17:41 +0000 (14:17 +0000)]
* src/vm/jit/show.c (show_variable): Check for invalid flags.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.c (codegen): Removed a debug print.
edwin [Fri, 8 Sep 2006 14:16:29 +0000 (14:16 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Removed a debug print.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (DST_LOCALVAR): _Really_ turn off coalescing
edwin [Fri, 8 Sep 2006 14:15:39 +0000 (14:15 +0000)]
* src/vm/jit/stack.c (DST_LOCALVAR): _Really_ turn off coalescing
temporarily.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/allocator/simplereg.c (interface_regalloc): Changed
edwin [Fri, 8 Sep 2006 12:19:49 +0000 (12:19 +0000)]
* src/vm/jit/allocator/simplereg.c (interface_regalloc): Changed
allocation of interface registers. interface_map now contains the
necessary flags, and receives a combination of allocated flags
and regoff.

(new_allocate_scratch_registers): Copy the allocation of the
invars and outvars for each basic block.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.h (LOCAL_UNUSED): Changed (in comment) to UNUSED.
edwin [Fri, 8 Sep 2006 12:17:29 +0000 (12:17 +0000)]
* src/vm/jit/jit.h (LOCAL_UNUSED): Changed (in comment) to UNUSED.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/stack.c (stackdata_t): New struct for keeping internal
edwin [Fri, 8 Sep 2006 12:16:23 +0000 (12:16 +0000)]
* src/vm/jit/stack.c (stackdata_t): New struct for keeping internal
data of the stack analysis. This is necessary for converting macros
to functions.
(various macros): Adapted to use stackdata_t. Removed old code.
(DST_LOCALVAR): Temporarily turned off local variable coalescing.
(MARKREACHED): Converted to a function.
(stack_mark_reached): New function.
(last_store_boundary): Use java indices instead of internal local
indices into this table.
(new_stack_analyse): Removed old code.

* src/vm/jit/stack.h (various macros): Adapted to use stackdata_t.
(MARKREACHED): Converted to a function.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/parse.h: Removed old code.
edwin [Fri, 8 Sep 2006 12:10:39 +0000 (12:10 +0000)]
* src/vm/jit/parse.h: Removed old code.
* src/vm/jit/parse.c (new_parse): Do not modify m->maxlocals and cd->maxlocals.
They refer to the number of javalocals, and that's ok. We have jd->localcount
to keep the number of internal locals.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (new_show_method): Show isleafmethod.
edwin [Fri, 8 Sep 2006 12:07:57 +0000 (12:07 +0000)]
* src/vm/jit/show.c (new_show_method): Show isleafmethod.
(new_show_method): Pretty interface map printing (prepared for
interface register allocation changes).
(new_show_method): Print allocation of stack slots.
(show_allocation): New function.
(show_variable): Mark SAVEDVARs with an exclamation mark.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (new_show_method): Only show local table if there
edwin [Fri, 8 Sep 2006 01:05:58 +0000 (01:05 +0000)]
* src/vm/jit/show.c (new_show_method): Only show local table if there
are locals.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (jit_type): Made types uppercase.
edwin [Thu, 7 Sep 2006 23:17:28 +0000 (23:17 +0000)]
* src/vm/jit/show.c (jit_type): Made types uppercase.
(new_show_method): Prettier printing of locals_map and interface_map.
(SHOW_STACKVAR): Renamed to SHOW_VARIABLE.
(new_show_stackvar): Renamed to show_variable. Cleaned up.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/allocator/simplereg.c (reg_new_temp_func): Removed old
edwin [Thu, 7 Sep 2006 22:44:07 +0000 (22:44 +0000)]
* src/vm/jit/allocator/simplereg.c (reg_new_temp_func): Removed old
version.
(reg_free_temp_func): Likewise.
(allocate_scratch_registers): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/allocator/simplereg.c (reg_alloc_dup): Removed.
edwin [Thu, 7 Sep 2006 22:39:39 +0000 (22:39 +0000)]
* src/vm/jit/allocator/simplereg.c (reg_alloc_dup): Removed.
(new_reg_mark_copy): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/codegen.c (ICMD_COPY): Added.
edwin [Thu, 7 Sep 2006 14:41:18 +0000 (14:41 +0000)]
* src/vm/jit/i386/codegen.c (ICMD_COPY): Added.
(ICMD_MOVE): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/reg.h (varinfo): New field copycount.
edwin [Thu, 7 Sep 2006 14:38:51 +0000 (14:38 +0000)]
* src/vm/jit/reg.h (varinfo): New field copycount.
* src/vm/jit/parse.c (new_parse): Zero jd->var array.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/parse.c (new_parse): Allocate extra NOPs for stack
edwin [Thu, 7 Sep 2006 14:31:33 +0000 (14:31 +0000)]
* src/vm/jit/parse.c (new_parse): Allocate extra NOPs for stack
operations.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/show.c (ICMD_COPY): Uncommented.
edwin [Thu, 7 Sep 2006 14:25:04 +0000 (14:25 +0000)]
* src/vm/jit/show.c (ICMD_COPY): Uncommented.
(ICMD_MOVE): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.h, src/vm/jit/jit.c (ICMD_COPY): New ICMD.
edwin [Thu, 7 Sep 2006 14:24:00 +0000 (14:24 +0000)]
* src/vm/jit/jit.h, src/vm/jit/jit.c (ICMD_COPY): New ICMD.
(ICMD_MOVE): Likewise.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/allocator/simplreg: Removed #if defined(NEW_VAR) over some functions.
christian [Thu, 7 Sep 2006 14:00:39 +0000 (14:00 +0000)]
* src/vm/jit/allocator/simplreg: Removed #if defined(NEW_VAR) over some functions.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/jit.c (ENABLE_VERIFY): Corrected to ENABLE_VERIFIER.
edwin [Thu, 7 Sep 2006 13:41:43 +0000 (13:41 +0000)]
* src/vm/jit/jit.c (ENABLE_VERIFY): Corrected to ENABLE_VERIFIER.

--HG--
branch : unified_variables

17 years agoUnified variables changes for common/i386.
christian [Thu, 7 Sep 2006 13:29:05 +0000 (13:29 +0000)]
Unified variables changes for common/i386.

--HG--
branch : unified_variables

17 years ago* src/vm/jit/i386/emit.c: Use IS_INMEMORY macro.
twisti [Thu, 7 Sep 2006 12:52:31 +0000 (12:52 +0000)]
* src/vm/jit/i386/emit.c: Use IS_INMEMORY macro.
* src/vm/jit/i386/codegen.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Use IS_INMEMORY macro.
twisti [Thu, 7 Sep 2006 12:26:44 +0000 (12:26 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Use IS_INMEMORY macro.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/emit.c (emit_copy): Eliminate register move if
twisti [Thu, 7 Sep 2006 12:24:56 +0000 (12:24 +0000)]
* src/vm/jit/powerpc/emit.c (emit_copy): Eliminate register move if
one of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/emit.c (emit_copy): Only one not-equal comparison.
twisti [Thu, 7 Sep 2006 11:14:02 +0000 (11:14 +0000)]
* src/vm/jit/alpha/emit.c (emit_copy): Only one not-equal comparison.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc64/emit.c (emit_copy): Eliminate register move if
twisti [Thu, 7 Sep 2006 11:09:37 +0000 (11:09 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_copy): Eliminate register move if
one of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/emit.c (emit_copy): Eliminate register move if one
twisti [Thu, 7 Sep 2006 10:59:56 +0000 (10:59 +0000)]
* src/vm/jit/mips/emit.c (emit_copy): Eliminate register move if one
of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/i386/emit.c (emit_copy): Eliminate register move if one
twisti [Thu, 7 Sep 2006 10:46:39 +0000 (10:46 +0000)]
* src/vm/jit/i386/emit.c (emit_copy): Eliminate register move if one
of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/emit.c (emit_copy): Eliminate register move if one
twisti [Thu, 7 Sep 2006 10:16:04 +0000 (10:16 +0000)]
* src/vm/jit/x86_64/emit.c (emit_copy): Eliminate register move if one
of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/emit.c (emit_copy): Eliminate register move if one
twisti [Thu, 7 Sep 2006 10:03:45 +0000 (10:03 +0000)]
* src/vm/jit/alpha/emit.c (emit_copy): Eliminate register move if one
of the variables resides in memory.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (IS_SAVEDVAR): Added.
twisti [Thu, 7 Sep 2006 09:40:25 +0000 (09:40 +0000)]
* src/vm/jit/jit.h (IS_SAVEDVAR): Added.
(IS_INMEMORY): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_icmd): Separate real arguments and
edwin [Thu, 7 Sep 2006 00:32:45 +0000 (00:32 +0000)]
* src/vm/jit/show.c (new_show_icmd): Separate real arguments and
pass-through variables for INVOKE*.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_icmd): Separate real arguments and
edwin [Thu, 7 Sep 2006 00:29:42 +0000 (00:29 +0000)]
* src/vm/jit/show.c (new_show_icmd): Separate real arguments and
pass-through variables for BUILTIN.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc64/linux/md-abi.h: Bugfixes and changes for new
twisti [Wed, 6 Sep 2006 23:18:27 +0000 (23:18 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.h: Bugfixes and changes for new
instruction format.
* src/vm/jit/powerpc64/linux/md-abi.c: Likewise.
* src/vm/jit/powerpc64/emit.c: Likewise.
* src/vm/jit/powerpc64/codegen.c: Likewise.
* src/vm/jit/powerpc64/codegen.h: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
twisti [Wed, 6 Sep 2006 22:34:46 +0000 (22:34 +0000)]
* src/vm/jit/mips/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
Defined.
* src/vm/jit/mips/codegen.c: Use REG_A? defines instead of
rd->argintreg[] loads.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
twisti [Wed, 6 Sep 2006 22:16:48 +0000 (22:16 +0000)]
* src/vm/jit/alpha/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
Defined.
* src/vm/jit/alpha/codegen.c: Use REG_A? defines instead of
rd->argintreg[] loads.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
twisti [Wed, 6 Sep 2006 21:56:21 +0000 (21:56 +0000)]
* src/vm/jit/x86_64/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
Defined.
* src/vm/jit/x86_64/codegen.c: Use REG_A? defines instead of
rd->argintreg[] loads.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Removed obsolete precedessor
twisti [Wed, 6 Sep 2006 21:40:50 +0000 (21:40 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Removed obsolete precedessor
calucation.

--HG--
branch : new_instruction_format

17 years ago* tests/regression/jasmin/test_dup_x2.j: Split second test into
edwin [Wed, 6 Sep 2006 21:32:14 +0000 (21:32 +0000)]
* tests/regression/jasmin/test_dup_x2.j: Split second test into
separate file.
* tests/regression/jasmin/test_dup_x2_to_dup_x1: New test.

--HG--
branch : new_instruction_format

17 years ago* tests/regression/jasmin/runtest: Improved harness script.
edwin [Wed, 6 Sep 2006 21:30:54 +0000 (21:30 +0000)]
* tests/regression/jasmin/runtest: Improved harness script.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
twisti [Wed, 6 Sep 2006 21:17:00 +0000 (21:17 +0000)]
* src/vm/jit/powerpc/linux/md-abi.h (REG_A0, REG_A1, REG_A2, REG_A3):
Defined.
* src/vm/jit/powerpc/darwin/md-abi.h: Likewise.

* src/vm/jit/powerpc/codegen.c: Use REG_A? defines instead of
rd->argintreg[] loads.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/codegen.c (codegen): Generate the INVOKE/BUILTIN
twisti [Wed, 6 Sep 2006 17:05:14 +0000 (17:05 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Generate the INVOKE/BUILTIN
call code in a common place.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Generate the INVOKE/BUILTIN
twisti [Wed, 6 Sep 2006 16:43:28 +0000 (16:43 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Generate the INVOKE/BUILTIN
call code in a common place.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/i386/codegen.c (codegen): Don't move the function address
twisti [Wed, 6 Sep 2006 16:41:26 +0000 (16:41 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Don't move the function address
into disp for ICMD_BUILTIN.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/i386/codegen.c (codegen): Generate the INVOKE/BUILTIN
twisti [Wed, 6 Sep 2006 16:30:33 +0000 (16:30 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Generate the INVOKE/BUILTIN
call code in a common place.
(createnativestub): Removed unused disp variable.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Generate the INVOKE/BUILTIN
twisti [Wed, 6 Sep 2006 16:24:46 +0000 (16:24 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Generate the INVOKE/BUILTIN
call code in a common place.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Generate the INVOKE/BUILTIN
twisti [Wed, 6 Sep 2006 16:06:01 +0000 (16:06 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Generate the INVOKE/BUILTIN
call code in a common place.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (INS_FLAG_NOCHECK): Reversed to INS_FLAG_CHECK.
edwin [Wed, 6 Sep 2006 16:01:23 +0000 (16:01 +0000)]
* src/vm/jit/jit.h (INS_FLAG_NOCHECK): Reversed to INS_FLAG_CHECK.
* src/vm/jit/stack.c:  Likewise.
* src/vm/jit/stack.h: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/parse.h: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/parse.h (INSTRUCTIONS_CHECK): New macro.
edwin [Wed, 6 Sep 2006 15:22:35 +0000 (15:22 +0000)]
* src/vm/jit/parse.h (INSTRUCTIONS_CHECK): New macro.
* src/vm/jit/parse.c (new_parse): Merged twisti's reallocation of the
instruction array.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (ICMD_I2L): Use REG_ITMP1 for dst, this
twisti [Wed, 6 Sep 2006 14:38:38 +0000 (14:38 +0000)]
* src/vm/jit/alpha/codegen.c (ICMD_I2L): Use REG_ITMP1 for dst, this
can save a move.
(ICMD_LDIV, ICMD_LREM): Use argument registers for s1 and s2 when
loaded.

--HG--
branch : new_instruction_format

17 years agoChecked in jasmin tests.
edwin [Wed, 6 Sep 2006 14:32:22 +0000 (14:32 +0000)]
Checked in jasmin tests.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/parse.c (parserdata_t): New type.
edwin [Wed, 6 Sep 2006 14:01:23 +0000 (14:01 +0000)]
* src/vm/jit/parse.c (parserdata_t): New type.
(parse_setup): New function.
(parse_check_instructions): New function.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Ifdeffed handling of new var
christian [Wed, 6 Sep 2006 13:46:37 +0000 (13:46 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Ifdeffed handling of new var
system.

* src/vm/jit/stack.h: Likewise.

* src/vm/jit/parse.c (new_parse) : Likewise.

* src/vm/jit/parse.h: Likewise.

* src/vm/jit/jit.h: Ifdeffed structure entries for new var system.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Use M_ISUB in ICMD_ISUBCONST
twisti [Wed, 6 Sep 2006 12:37:19 +0000 (12:37 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Use M_ISUB in ICMD_ISUBCONST
instead of M_IADD.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/emit.c (emit_copy): Removed accidentally pasted
twisti [Wed, 6 Sep 2006 11:58:20 +0000 (11:58 +0000)]
* src/vm/jit/mips/emit.c (emit_copy): Removed accidentally pasted
code.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.h: Removed macros for old instruction format.
edwin [Wed, 6 Sep 2006 11:12:55 +0000 (11:12 +0000)]
* src/vm/jit/stack.h: Removed macros for old instruction format.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/parse.h: Removed NEW_ prefix from macros.
edwin [Wed, 6 Sep 2006 11:01:11 +0000 (11:01 +0000)]
* src/vm/jit/parse.h: Removed NEW_ prefix from macros.
* src/vm/jit/parse.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.h (CHECKOVERFLOW): Removed.
edwin [Wed, 6 Sep 2006 10:56:43 +0000 (10:56 +0000)]
* src/vm/jit/stack.h (CHECKOVERFLOW): Removed.
(NEW_CHECKOVERFLOW): Renamed to CHECKOVERFLOW.

* src/vm/jit/stack.c (new_stack_analyse): Removed NEW_ prefix from
macro names.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/emit.c: Renamed new_instruction to instruction.
edwin [Wed, 6 Sep 2006 10:48:06 +0000 (10:48 +0000)]
* src/vm/jit/x86_64/emit.c: Renamed new_instruction to instruction.
* src/vm/jit/x86_64/md-emit.h: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/stack.c (new_stack_analyse): Removed assert to check, that
christian [Wed, 6 Sep 2006 10:20:07 +0000 (10:20 +0000)]
* src/vm/stack.c (new_stack_analyse): Removed assert to check, that
all outvars are STACKVARS. Would be a possible conflict with swap

* src/vm/parse.c (new_parse): Data colletion for local var
renaming(de-coalescing)

* src/vm/parse.h (new_pase): Likewise.

* src/vm/jit.h: Likewise.

* src/vm/jit/i386/codegen.c (codegen): Ifdefed interface copy in regard to new
var system.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/emit.c (emit_load_s1): Removed obsolete src param.
edwin [Wed, 6 Sep 2006 10:16:26 +0000 (10:16 +0000)]
* src/vm/jit/mips/emit.c (emit_load_s1): Removed obsolete src param.
(emit_load_s2): Likewise.
(emit_load_s3): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc64/emit.c (emit_load): New function.
edwin [Wed, 6 Sep 2006 10:14:33 +0000 (10:14 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_load): New function.
(emit_load_s1): Implemented in terms of emit_load.
(emit_load_s2): Likewise.
(emit_load_s3): Likewise.
(emit_store_dst): New function.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/emit.c (emit_load): New function.
edwin [Wed, 6 Sep 2006 10:09:01 +0000 (10:09 +0000)]
* src/vm/jit/mips/emit.c (emit_load): New function.
(emit_load_s1): Implemented in terms of emit_load.
(emit_load_s2): Likewise.
(emit_load_s3): Likewise.
(emit_store_dst): New function.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Implement conflict checking
edwin [Wed, 6 Sep 2006 09:57:21 +0000 (09:57 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Implement conflict checking
and coalescing for *STORE.
* src/vm/jit/show.c (new_show_stackvar): Show coalescing info.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Mark all in and out
christian [Wed, 6 Sep 2006 00:18:21 +0000 (00:18 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Mark all in and out
Stackslots of Basic Blocks as STACKVAR.

* src/vm/jit/i386/codegen.c (codegen): Removed copy of interfaces
to in and from out stackslots.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc64/codegen.c (codegen): ++lookup in LOOKUPSWITCH
edwin [Wed, 6 Sep 2006 00:07:01 +0000 (00:07 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen): ++lookup in LOOKUPSWITCH
loop.
* src/vm/jit/powerpc64/codegen.c (codegen): Ported to new instruction
format.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/i386/codegen.c (codegen): Port LASTORECONST, PUT*CONST.
edwin [Tue, 5 Sep 2006 23:37:37 +0000 (23:37 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Port LASTORECONST, PUT*CONST.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/mips/codegen.c (codegen): Ported to new instruction format.
edwin [Tue, 5 Sep 2006 23:10:05 +0000 (23:10 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Ported to new instruction format.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/emit.c: Updated to new instruction format.
twisti [Tue, 5 Sep 2006 23:08:01 +0000 (23:08 +0000)]
* src/vm/jit/powerpc/emit.c: Updated to new instruction format.
* src/vm/jit/powerpc/codegen.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/builtin.c (builtin_print_argument): Print decimal values for
twisti [Tue, 5 Sep 2006 23:07:08 +0000 (23:07 +0000)]
* src/vm/builtin.c (builtin_print_argument): Print decimal values for
int and long arguments.

--HG--
branch : new_instruction_format

17 years ago* i386/emit.c: Changed to new instruction format.
christian [Tue, 5 Sep 2006 22:51:48 +0000 (22:51 +0000)]
* i386/emit.c: Changed to new instruction format.
* i386/codegen.c: Likewise.
* i386/codegen.h: Likewise.
* parse.c: Likewise.
* parse.h: Likewise.
* jit.h: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_icmd): Show LOOKUPSWITCH targets.
edwin [Tue, 5 Sep 2006 22:42:08 +0000 (22:42 +0000)]
* src/vm/jit/show.c (new_show_icmd): Show LOOKUPSWITCH targets.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Port MULTIANEWARRAY.
edwin [Tue, 5 Sep 2006 22:27:36 +0000 (22:27 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Port MULTIANEWARRAY.

--HG--
branch : new_instruction_format

17 years ago* sarc/vm/jit/parse.c (parse): Check return value of
edwin [Tue, 5 Sep 2006 22:23:06 +0000 (22:23 +0000)]
* sarc/vm/jit/parse.c (parse): Check return value of
lock_monitor_enter.

--HG--
branch : new_instruction_format

17 years ago* src/threads/native/lock.h (lock_monitor_enter): Return bool.
edwin [Tue, 5 Sep 2006 22:22:19 +0000 (22:22 +0000)]
* src/threads/native/lock.h (lock_monitor_enter): Return bool.
* src/threads/native/lock.c (lock_monitor_enter): Check for
NullPointerException.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/cfg.c (cfg_build): It's better to not reuse the loop
twisti [Tue, 5 Sep 2006 22:05:52 +0000 (22:05 +0000)]
* src/vm/jit/cfg.c (cfg_build): It's better to not reuse the loop
variable.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_icmd): Show BLOCK_OF tableswitch
edwin [Tue, 5 Sep 2006 21:53:36 +0000 (21:53 +0000)]
* src/vm/jit/show.c (new_show_icmd): Show BLOCK_OF tableswitch
targets.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_icmd): Show TABLESWITCH targets.
edwin [Tue, 5 Sep 2006 21:50:36 +0000 (21:50 +0000)]
* src/vm/jit/show.c (new_show_icmd): Show TABLESWITCH targets.

--HG--
branch : new_instruction_format