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

17 years ago* src/vm/jit/parse.c (new_parse): Changed leftover "OP" macro uses
edwin [Mon, 4 Sep 2006 23:24:39 +0000 (23:24 +0000)]
* src/vm/jit/parse.c (new_parse): Changed leftover "OP" macro uses
to "NEW_OP".

17 years ago* src/vm/jit/mips/emit.c (config.h): Added.
twisti [Mon, 4 Sep 2006 17:45:32 +0000 (17:45 +0000)]
* src/vm/jit/mips/emit.c (config.h): Added.
[ENABLE_THREADS] (threads/native/lock.h): Likewise.
(vm/exceptions.h): Likewise.
(vm/stringlocal.h): Likewise.
(vm/jit/asmpart.h): Likewise.
(vm/jit/dseg.h): Likewise.
(vm/jit/replace.h): Likewise.
(emit_exception_stubs): New method.
(emit_patcher_stubs): Likewise.
(emit_replacement_stubs): Likewise.

* src/vm/jit/mips/codegen.c (codegen): Use cd->stackframesize instead
of stackframesize, use emit functions to generate stubs and call trace
code.
(createnativestub): Likewise.

17 years ago* src/vm/jit/alpha/patcher.c (patcher_wrapper): Patch back machine
christian [Mon, 4 Sep 2006 17:12:48 +0000 (17:12 +0000)]
* src/vm/jit/alpha/patcher.c (patcher_wrapper): Patch back machine
code.
(patcher_aconst): Renamed to patcher_resolve_classref_to_classinfo.
(patcher_clinit): Renamed to patcher_initialize_class.
(patcher_resolve_native): Renamed to patcher_resolve_native_function.
(patcher_athrow_areturn): Renamed to patcher_resolve_class.
(patcher_checkcast_instanceof_class): Renamed to
patcher_resolve_classref_to_vftbl.
(patcher_checkcast_instanceof_flags): Renamed to
patcher_resolve_classref_to_flags.
(patcher_builtin_multianewarray): Removed.
(patcher_builtin_arraycheckcast): Likewise.

* src/vm/jit/alpha/codegen.c (codegen): Use new patcher functions.

17 years ago* src/vm/jit/alpha/emit.c (vm/builtin.h): Added.
twisti [Mon, 4 Sep 2006 16:33:57 +0000 (16:33 +0000)]
* src/vm/jit/alpha/emit.c (vm/builtin.h): Added.
(vm/jit/abi-asm.h): Likewise.
(vm/jit/replace.h): Likewise.
(emit_verbosecall_enter): New method.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/alpha/codegen.c (codegen): Use emit functions to generate
call trace code.
(createnativestub): Likewise.

17 years ago* src/vm/jit/powerpc/emit.c (config.h): Added.
twisti [Mon, 4 Sep 2006 15:48:16 +0000 (15:48 +0000)]
* src/vm/jit/powerpc/emit.c (config.h): Added.
[ENABLE_THREADS] (threads/native/lock.h): Likewise.
(vm/builtin.h): Likewise.
(vm/jit/abi-asm.h): Likewise.
(vm/jit/asmpart.h): Likewise.
(vm/jit/replace.h): Likewise.
(emit_exception_stubs): New method.
(emit_patcher_stubs): Likewise.
(emit_replacement_stubs): Likewise.
(emit_verbosecall_enter): Likewise.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen): Use emit functions to
generate stubs and call trace code.
(createnativestub): Likewise.

17 years ago* src/vm/jit/powerpc/asmpart.S (asm_call_jit_compiler): We don't save
twisti [Mon, 4 Sep 2006 14:21:11 +0000 (14:21 +0000)]
* src/vm/jit/powerpc/asmpart.S (asm_call_jit_compiler): We don't save
an argument on the stack anymore, offsets adjusted.
(asm_handle_exception): Use md_codegen_get_pv_from_pc instead of
assembler code and temporary variables as on other RISC architectures.

17 years ago* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Fixed off
tbfg [Mon, 4 Sep 2006 12:38:21 +0000 (12:38 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Fixed off
by one stackslot overwrite some stuff bug.

* src/vm/jit/powerpc64/codegen.c (codegen): Fix parameter passing
in.

17 years ago* src/vm/jit/powerpc64/arch.h: Reenabled platfrom features.
tbfg [Sat, 2 Sep 2006 14:26:04 +0000 (14:26 +0000)]
* src/vm/jit/powerpc64/arch.h: Reenabled platfrom features.

* src/vm/jit/powerpc64/codegen.c (codegen): Fixed native calls.
(createnativestub): Likewise.

17 years ago* srv/vm/jit/powerpc64/asmpart.S (asm_vm_call_method): Fixed argument
tbfg [Thu, 31 Aug 2006 19:58:15 +0000 (19:58 +0000)]
* srv/vm/jit/powerpc64/asmpart.S (asm_vm_call_method): Fixed argument
handling.

17 years ago* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Moved from
tbfg [Thu, 31 Aug 2006 13:32:19 +0000 (13:32 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Moved from
codegen.c refactored into function, and made it work.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/powerpc64/codegen.c (codegen_trace_args): Moved into
emit.c and renamed it to emit_verbosecall_enter.
(codegen): Using emit_verbosecall_* instead of inline code, and
various fixes to make verbose:call work.
(createnativestub): Likewise.

17 years ago* src/vm/jit/powerpc64/linux/md-abi.h: New REG_TOC name needed to
tbfg [Mon, 28 Aug 2006 19:31:37 +0000 (19:31 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.h: New REG_TOC name needed to
call builtins due to ppc64 function descriptors (ELF ABI).

* src/vm/jit/powerpc64/codegen.c (createnativestub): Big endian
requires M_LLD and M_IST to copy s4 values from dseg to stack.
(codegen): gen_method needs to create function descriptor call.

* src/vm/jit/powerpc64/asmpart.S: When linking statically
non function descriptor calls are generated by compiler.
Some ifdefs added to fix static linking.

17 years ago* src/vm/jit/patcher.h (patcher_resolve_class): Added.
twisti [Mon, 28 Aug 2006 15:18:54 +0000 (15:18 +0000)]
* src/vm/jit/patcher.h (patcher_resolve_class): Added.
(patcher_initialize_class): Likewise.
(patcher_resolve_classref_to_classinfo): Likewise.
(patcher_resolve_classref_to_vftbl): Likewise.
(patcher_resolve_classref_to_flags): Likewise.
(patcher_resolve_native_function): Likewise.

* src/vm/jit/powerpc/patcher.c (patcher_wrapper): Patch back machine
code.
(patcher_aconst): Renamed to patcher_resolve_classref_to_classinfo.
(patcher_clinit): Renamed to patcher_initialize_class.
(patcher_resolve_native): Renamed to patcher_resolve_native_function.
(patcher_athrow_areturn): Renamed to patcher_resolve_class.
(patcher_checkcast_class): Renamed to
patcher_resolve_classref_to_vftbl.
(patcher_checkcast_instanceof_flags): Renamed to
patcher_resolve_classref_to_flags.
(patcher_builtin_multianewarray): Removed.
(patcher_builtin_arraycheckcast): Likewise.
(patcher_instanceof_class): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen): Use new patcher functions
(some of them were already commited accidentally in the last commit).

17 years ago* src/vm/jit/emit.h (emit_verbosecall_enter): Added.
twisti [Mon, 28 Aug 2006 13:05:03 +0000 (13:05 +0000)]
* src/vm/jit/emit.h (emit_verbosecall_enter): Added.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/powerpc/emit.c (vm/builtin.h): Added.
(vm/jit/asmpart.h): Likewise.
(vm/jit/replace.h): Likewise.
(emit_exception_stubs): New method.
(emit_patcher_stubs): Likewise.
(emit_replacement_stubs): Likewise.
(emit_verbosecall_enter): Likewise.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/powerpc/codegen.c (vm/jit/abi-asm.h): Added.
(codegen_trace_args): Removed.
(codegen): Use cd->stackframesize instead of stackframesize, use emit
functions to generate stubs and call trace code.
(createnativestub): Likewise.

17 years ago* src/vm/jit/show.c (show_method): Stubs are printed green when
tbfg [Fri, 25 Aug 2006 11:55:21 +0000 (11:55 +0000)]
* src/vm/jit/show.c (show_method): Stubs are printed green when
using -debug-color.

* src/vm/jit/powerpc64/linux/md-os.c (md_signal_handler_sigusr2):
Moved into #ifdef ENABLE_THREADS conditional compile, as it depends
on threadobject.

* src/vm/jit/powerpc64/codegen.h: Added M_LADD_IMM and M_AADD_IMM
for better reading of code. Fixed M_CLR.

* src/vm/jit/powerpc64/codegen.c (codegen): Some fixes with ?RETURN,
some fixes for -verbose:call (still defunc),
(createnativestub): Lots of fixes in stackframe calculations.

* src/vm/jit/powerpc64/patcher.c (patch_aconst): Correct asm comment.

* src/vm/jit/powerpc64/disass.c (disassinstr): Display 64 bit
addresses in disassembled code (-sa).

* src/vm/jit/powerpc64/asmpart.S (L_asm_vm_call_method_return):
Fixed path for methods returning a value.
(L_asm_handle_exception): Fixed path for exception handling.
(asm_patcher_wrapper): Fixed path for codepatching.

17 years ago* src/vm/exceptions.c (new_illegalmonitorstateexception): Renamed to
twisti [Fri, 25 Aug 2006 07:54:27 +0000 (07:54 +0000)]
* src/vm/exceptions.c (new_illegalmonitorstateexception): Renamed to
exceptions_new_illegalmonitorstateexception.
(exceptions_throw_illegalmonitorstateexception): New method.
* src/vm/exceptions.h: Likewise.

* src/threads/native/lock.c (lock_monitor_exit): Use
exceptions_throw_illegalmonitorstateexception instead of
new_illegalmonitorstateexception.
(lock_monitor_wait): Likewise.
(lock_monitor_notify): Likewise.

* src/cacaoh/headers.c (new_illegalmonitorstateexception): Renamed to
exceptions_throw_illegalmonitorstateexception.

17 years ago* src/vm/jit/alpha/emit.c (emit_exception_stubs): Bugfix when
twisti [Fri, 25 Aug 2006 07:29:05 +0000 (07:29 +0000)]
* src/vm/jit/alpha/emit.c (emit_exception_stubs): Bugfix when
reallocating the code area.
(emit_patcher_stubs): Reuse the asm_patcher_wrapper call code.
(emit_replacement_stubs): Removed savedmcodeptr.

17 years ago* src/vm/jit/alpha/emit.c (emit_exception_stubs): Bugfix when
twisti [Fri, 25 Aug 2006 07:14:31 +0000 (07:14 +0000)]
* src/vm/jit/alpha/emit.c (emit_exception_stubs): Bugfix when
reallocating the code area.
(emit_patcher_stubs): Likewise.