cacao.git
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

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Port ICMD_CHECKCAST.
edwin [Tue, 5 Sep 2006 21:20:34 +0000 (21:20 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Port ICMD_CHECKCAST.

--HG--
branch : new_instruction_format

17 years ago* src/vm/method.h (methodinfo): Removed members basicblockcount,
twisti [Tue, 5 Sep 2006 21:20:33 +0000 (21:20 +0000)]
* src/vm/method.h (methodinfo): Removed members basicblockcount,
basicblocks, basicblockindex, instructioncount, instructions,
stackcount, and stack.

* src/vm/jit/cfg.c: Use jitdata variables instead of methodinfo ones.
* src/vm/jit/reorder.c: Likewise.
* src/vm/jit/ifconv/ifconv.c: Likewise.
* src/vm/jit/allocator/simplereg.c: Likewise.
* src/vm/jit/replace.c: Likewise.
* src/vm/jit/jit.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/Makefile.am (libarch_la_SOURCES): Added
twisti [Tue, 5 Sep 2006 21:17:54 +0000 (21:17 +0000)]
* src/vm/jit/powerpc/Makefile.am (libarch_la_SOURCES): Added
accidentally removed codegen.c.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Use d for return type checks.
twisti [Tue, 5 Sep 2006 21:16:30 +0000 (21:16 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Use d for return type checks.

--HG--
branch : new_instruction_format

17 years ago* src/cacaoh/headers.c: Use a dummy flag for natively overloaded
twisti [Tue, 5 Sep 2006 21:15:02 +0000 (21:15 +0000)]
* src/cacaoh/headers.c: Use a dummy flag for natively overloaded
methods.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Deactivate replacement points.
edwin [Tue, 5 Sep 2006 21:14:00 +0000 (21:14 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Deactivate replacement points.
* src/vm/jit/x86_64/codegen.c (codegen): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Set fieldtype in all cases.
edwin [Tue, 5 Sep 2006 21:06:54 +0000 (21:06 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Set fieldtype in all cases.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_basicblock): Prettier if.
edwin [Tue, 5 Sep 2006 20:58:06 +0000 (20:58 +0000)]
* src/vm/jit/show.c (new_show_basicblock): Prettier if.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Use jd->new_basicblocks.
edwin [Tue, 5 Sep 2006 20:57:13 +0000 (20:57 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Use jd->new_basicblocks.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c: Use invars/outvars instead of
edwin [Tue, 5 Sep 2006 20:50:21 +0000 (20:50 +0000)]
* src/vm/jit/alpha/codegen.c: Use invars/outvars instead of
instack/outstack.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Port handling of INVOKE*
edwin [Tue, 5 Sep 2006 20:17:46 +0000 (20:17 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Port handling of INVOKE*
arguments.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/alpha/emit.c: Ported to new instruction format.
edwin [Tue, 5 Sep 2006 20:11:30 +0000 (20:11 +0000)]
* src/vm/jit/alpha/emit.c: Ported to new instruction format.
* src/vm/jit/alpha/codegen.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (instruction): Removed.
twisti [Tue, 5 Sep 2006 19:38:28 +0000 (19:38 +0000)]
* src/vm/jit/jit.h (instruction): Removed.
(new_instruction): Renamed to instruction.

* src/vm/builtin.c: Renamed new_instruction to instruction.
* src/vm/builtin.h: Likewise.
* src/vm/resolve.c: Likewise.
* src/vm/resolve.h: Likewise.
* src/vm/jit/powerpc/emit.c: Likewise.
* src/vm/jit/powerpc/Makefile.am: Likewise.
* src/vm/jit/codegen-common.h: Likewise.
* src/vm/jit/cfg.c: Likewise.
* src/vm/jit/reorder.c: Likewise.
* src/vm/jit/emit.h: Likewise.
* src/vm/jit/stack.c: Likewise.
* src/vm/jit/stack.h: Likewise.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/dseg.c: Likewise.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/verify/typeinfo.c: Likewise.
* src/vm/jit/show.h: Likewise.
* src/vm/jit/allocator/simplereg.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/codegen-common.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Converted with
edwin [Tue, 5 Sep 2006 19:06:22 +0000 (19:06 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Converted with
portcodegen.pl.
* src/vm/jit/sparc64/codegen.c (codegen): Likewise.
* src/vm/jit/alpha/codegen.c (codegen): Likewise.
* src/vm/jit/mips/codegen.c (codegen): Likewise.
* src/vm/jit/i386/codegen.c (codegen): Likewise.
* src/vm/jit/powerpc64/codegen.c (codegen): Likewise.

--HG--
branch : new_instruction_format

17 years agoMerge changes from trunk (powerpc64).
edwin [Tue, 5 Sep 2006 18:43:12 +0000 (18:43 +0000)]
Merge changes from trunk (powerpc64).

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Use emit_load instead of
edwin [Tue, 5 Sep 2006 17:42:22 +0000 (17:42 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Use emit_load instead of
emit_load_s1/s2 for variable arguments and interface copying.
* src/vm/jit/alpha/codegen.c (codegen): Likewise.
* src/vm/jit/mips/codegen.c (codegen): Likewise.
* src/vm/jit/i386/codegen.c (codegen): Likewise.
* src/vm/jit/powerpc64/codegen.c (codegen): Likewise.

--HG--
branch : new_instruction_format

17 years agoMerged changes from trunk.
edwin [Tue, 5 Sep 2006 17:21:21 +0000 (17:21 +0000)]
Merged changes from trunk.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (basicblock): Changed type of iinstr to
edwin [Tue, 5 Sep 2006 16:12:09 +0000 (16:12 +0000)]
* src/vm/jit/jit.h (basicblock): Changed type of iinstr to
new_instruction *.
* src/vm/jit/stack.c (new_stack_analyse): Removed obsolete casts.
* src/vm/jit/show.c (new_show_basicblock): Likewise.
* src/vm/jit/verify/typecheck.c (verify_basic_block): Likewise.
* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Likewise.
* src/vm/jit/parse.c (new_parse): Likewise.
* src/vm/jit/x86_64/codegen.c (new_parse): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (s3_operand_t): Removed arrayvftbl.
edwin [Tue, 5 Sep 2006 12:42:12 +0000 (12:42 +0000)]
* src/vm/jit/jit.h (s3_operand_t): Removed arrayvftbl.
* src/vm/jit/x86_64/codegen.c (codegen): ICMD_MULTIANEWARRAY:
Use s3.c.cls instead of s3.arrayvftbl.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (jitdata): Removed field new_rd.
edwin [Tue, 5 Sep 2006 12:29:16 +0000 (12:29 +0000)]
* src/vm/jit/jit.h (jitdata): Removed field new_rd.
* src/vm/jit/jit.c (jit_compile): Use rd instead of new_rd.
(jit_compile_intern): Likewise.
* src/vm/jit/verify/typecheck.c (typecheck): Likewise.
(verify_basic_block): Removed unused variables.
* src/vm/jit/allocator/simplereg.c (new_regalloc):
Use rd instead of new_rd.
* src/vm/jit/x86_64/codegen.c (codegen): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/x86_64/codegen.c: Ported to new instruction format.
edwin [Tue, 5 Sep 2006 11:53:11 +0000 (11:53 +0000)]
* src/vm/jit/x86_64/codegen.c: Ported to new instruction format.
* src/vm/jit/x86_64/emit.c: Likewise.
* src/vm/jit/x86_64/md-emit.h: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (s3_operand_t): Added union field arrayvftbl.
edwin [Tue, 5 Sep 2006 11:50:47 +0000 (11:50 +0000)]
* src/vm/jit/jit.h (s3_operand_t): Added union field arrayvftbl.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.c (jit_compile): Test setup for the new x86_64
edwin [Tue, 5 Sep 2006 11:47:44 +0000 (11:47 +0000)]
* src/vm/jit/jit.c (jit_compile): Test setup for the new x86_64
codegen.
(jit_compile_intern): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/emit.h (emit_load*): Changed for new instruction format.
edwin [Tue, 5 Sep 2006 11:42:55 +0000 (11:42 +0000)]
* src/vm/jit/emit.h (emit_load*): Changed for new instruction format.
(emit_store*): Likewise.
(emit_copy*): Likewise.
(emit_store_dst): New function.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (basicblock): Added fields invars and outvars.
edwin [Tue, 5 Sep 2006 11:40:03 +0000 (11:40 +0000)]
* src/vm/jit/jit.h (basicblock): Added fields invars and outvars.
* src/vm/jit/stack.h (MARKREACHED): Set invars.
* src/vm/jit/stack.c (new_stack_analyse): Set invars and outvars.
* src/vm/jit/show.c (new_show_basicblock): Show invars and outvars.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/jit.h (NEW_INSTRUCTION_*): Renamed to INSTRUCTION_.
edwin [Tue, 5 Sep 2006 11:34:49 +0000 (11:34 +0000)]
* src/vm/jit/jit.h (NEW_INSTRUCTION_*): Renamed to INSTRUCTION_.
The old INSTRUCTION_ and ICMD_ macros are removed.
* src/vm/resolve.c (NEW_INSTRUCTION_*): Replaced with INSTRUCTION_.
* src/vm/jit/show.c (new_show_icmd): Likewise.
* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Likewise.
* src/vm/jit/stack.c (new_stack_analyse): Likewise, and add a call
of builtintable_replace_function.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/verify/typecheck.c: Ported to new instruction format.
edwin [Tue, 5 Sep 2006 11:20:04 +0000 (11:20 +0000)]
* src/vm/jit/verify/typecheck.c: Ported to new instruction format.
* src/vm/jit/verify/typeinfo.c (typeinfo_print): Likewise.
(typeinfo_print_short): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/builtin.h (builtintable_replace_function): Ported to new
edwin [Tue, 5 Sep 2006 11:16:06 +0000 (11:16 +0000)]
* src/vm/builtin.h (builtintable_replace_function): Ported to new
instruction format.
* src/vm/builtin.c (builtintable_replace_function): Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.c (new_show_variable_array): New function.
edwin [Tue, 5 Sep 2006 11:13:58 +0000 (11:13 +0000)]
* src/vm/jit/show.c (new_show_variable_array): New function.
(new_show_method): Fixed calculation of lastbptr.
Only show code lengths if stage >= SHOW_CODE.

--HG--
branch : new_instruction_format

17 years ago* src/vm/resolve.h: Removed code for old instruction format.
edwin [Tue, 5 Sep 2006 10:52:12 +0000 (10:52 +0000)]
* src/vm/resolve.h: Removed code for old instruction format.
* src/vm/resolve.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/allocator/simplereg.h: Removed code for old instruction
edwin [Tue, 5 Sep 2006 10:47:11 +0000 (10:47 +0000)]
* src/vm/jit/allocator/simplereg.h: Removed code for old instruction
format.
* src/vm/jit/allocator/simplereg.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/show.h: Removed code for old instruction format.
edwin [Tue, 5 Sep 2006 10:44:52 +0000 (10:44 +0000)]
* src/vm/jit/show.h: Removed code for old instruction format.
* src/vm/jit/show.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/stack.h: Removed code for old instruction format.
edwin [Tue, 5 Sep 2006 10:39:58 +0000 (10:39 +0000)]
* src/vm/jit/stack.h: Removed code for old instruction format.
* src/vm/jit/stack.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/parse.h: Removed code for old instruction format.
edwin [Tue, 5 Sep 2006 10:37:26 +0000 (10:37 +0000)]
* src/vm/jit/parse.h: Removed code for old instruction format.
* src/vm/jit/parse.c: Likewise.

--HG--
branch : new_instruction_format

17 years ago* src/vm/jit/i386/Makefile.am (noinst_HEADERS): Removed
twisti [Tue, 5 Sep 2006 10:15:55 +0000 (10:15 +0000)]
* src/vm/jit/i386/Makefile.am (noinst_HEADERS): Removed
icmd_uses_reg_res.inc.

17 years ago* src/vm/jit/i386/icmd_uses_reg_res.inc: Removed.
twisti [Tue, 5 Sep 2006 10:10:10 +0000 (10:10 +0000)]
* src/vm/jit/i386/icmd_uses_reg_res.inc: Removed.

17 years ago* src/vm/jit/x86_64/codegen.h (ICONST): Fix this macro so it properly
edwin [Tue, 5 Sep 2006 10:09:52 +0000 (10:09 +0000)]
* src/vm/jit/x86_64/codegen.h (ICONST): Fix this macro so it properly
uses its arguments.
(LCONST): Likewise.

17 years ago* src/tests/Howdy.java: Removed.
twisti [Tue, 5 Sep 2006 10:04:50 +0000 (10:04 +0000)]
* src/tests/Howdy.java: Removed.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Use cd->stackframesize
twisti [Tue, 5 Sep 2006 10:03:40 +0000 (10:03 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Use cd->stackframesize
instead of stackframesize (bugfix).
(createnativestub): Likewise.

17 years ago* src/vm/jit/codegen-common.h (codegen_reg_of_dst): New function.
edwin [Tue, 5 Sep 2006 09:59:53 +0000 (09:59 +0000)]
* src/vm/jit/codegen-common.h (codegen_reg_of_dst): New function.
* src/vm/jit/codegen-common.c (codegen_reg_of_dst): Likewise.
Right now this duplicates codegen_reg_of_var's body. We should
probably make one of these functions inline the other.

17 years ago* src/vm/jit/ifconv/ifconv.c (ifconv_static): Deactivated
edwin [Tue, 5 Sep 2006 00:12:10 +0000 (00:12 +0000)]
* src/vm/jit/ifconv/ifconv.c (ifconv_static): Deactivated
show_basicblock calls that will become a problem when code for the
old instruction format is removed.
(check): Likewise.

17 years ago* src/vm/resolve.c (resolve_field): new_resolve_field_verifier_checks
edwin [Tue, 5 Sep 2006 00:02:30 +0000 (00:02 +0000)]
* src/vm/resolve.c (resolve_field): new_resolve_field_verifier_checks
used instead of the old function that will be removed soon.
(resolve_method): Use new_resolve_method_verifier_checks instead of the
old function that will be removed soon.
(new_resolve_method_verifier_checks): Port handling of TYPEINFO_IS_NEWOBJECT.
(new_resolve_method_verifier_checks): Likewise.
(new_constrain_unresolved_field): Likewise.
(new_constrain_unresolved_method): Likewise.