diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-09-25 10:35:06 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-09-25 10:35:06 +0000 |
| commit | 14e6eec5ecdd9ca68a891dbf7173a3620f6e76c1 (patch) | |
| tree | 6a4b0dd61a023a560f0c5a9b2e4d61f4a62e982e /src/runtime/c/pgf/lightning/core-common.h | |
| parent | 928217f9d91b45fe48f6e176d42ee5c80d427257 (diff) | |
now a complete JIT compiler and ByteCode compiler for the def rules in the abstract syntax. there might be some bugs yet to be found, meta variables and computation under lambda is only partially supported
Diffstat (limited to 'src/runtime/c/pgf/lightning/core-common.h')
| -rw-r--r-- | src/runtime/c/pgf/lightning/core-common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/lightning/core-common.h b/src/runtime/c/pgf/lightning/core-common.h index 04dbb2c7b..3cda23322 100644 --- a/src/runtime/c/pgf/lightning/core-common.h +++ b/src/runtime/c/pgf/lightning/core-common.h @@ -52,6 +52,12 @@ typedef struct { #define JIT_V0 JIT_V(0) #define JIT_V1 JIT_V(1) #define JIT_V2 JIT_V(2) +#define JIT_FPR0 JIT_FPR(0) +#define JIT_FPR1 JIT_FPR(1) +#define JIT_FPR2 JIT_FPR(2) +#define JIT_FPR3 JIT_FPR(3) +#define JIT_FPR4 JIT_FPR(4) +#define JIT_FPR5 JIT_FPR(5) #define _jitl _jit.jitl @@ -149,7 +155,7 @@ typedef union jit_code { #define jit_xorr_ul(d, s1, s2) jit_xorr_l((d), (s1), (s2)) #define jit_addr_p(d, s1, s2) jit_addr_ul((d), (s1), (s2)) -#define jit_addi_p(d, rs, is) jit_addi_ul((d), (rs), (long) (is)) +#define jit_addi_p(d, rs, is) (jit_addi_ul((d), (rs), (long) (is)), _jit.x.pc) #define jit_movr_p(d, rs) jit_movr_ul((d), (rs)) #define jit_subr_p(d, s1, s2) jit_subr_ul((d), (s1), (s2)) #define jit_subi_p(d, rs, is) jit_subi_ul((d), (rs), (long) (is)) |
