* src/vm/jit/x86_64/codegen.c (vm/jit/emit.h): Added.
authortwisti <none@none>
Tue, 18 Apr 2006 20:34:52 +0000 (20:34 +0000)
committertwisti <none@none>
Tue, 18 Apr 2006 20:34:52 +0000 (20:34 +0000)
commit3d26e33c37a3112cb578c789737d3322c372428d
treeb6002a87a4101d7f3b2b67a63ecf858ac91650e5
parentb8600eecffc169521e43f0725fe481143ceceb01
* src/vm/jit/x86_64/codegen.c (vm/jit/emit.h): Added.
(codegen): Use emit_load/store functions instead of macors. Saves over
25kB object code size.

* src/vm/jit/x86_64/codegen.h (ALIGNCODENOP): Added.
(var_to_reg_int): Removed.
(var_to_reg_flt): Likewise.
(store_reg_to_var_int): Likewise.
(store_reg_to_var_flt): Likewise.
(M_INEG, M_LNEG, M_INEG_MEMBASE, M_LNEG_MEMBASE): Added.
(M_CMOVEQ_MEMBASE, M_CMOVNE_MEMBASE, M_CMOVLT_MEMBASE)
(M_CMOVLE_MEMBASE, M_CMOVGE_MEMBASE, M_CMOVGT_MEMBASE): Likewise.

* src/vm/jit/x86_64/emitfuncs.c (emit_load_s1): Added.
(emit_load_s2): Likewise.
(emit_load_s3): Likewise.
(emit_store): Likewise.
(emit_copy): Likewise.
(emit_cmovxx): Likewise.

* src/vm/jit/x86_64/emitfuncs.h (emit_cmovxx): Added.
src/vm/jit/x86_64/codegen.c
src/vm/jit/x86_64/codegen.h
src/vm/jit/x86_64/emitfuncs.c
src/vm/jit/x86_64/emitfuncs.h