summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/lightning/core-common.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-09-11 15:39:39 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-09-11 15:39:39 +0000
commit621d748bac0914a93e3d399f81616c70fd083bb5 (patch)
tree60f1f5ee5be58c9a26adb24d0a185766d9f1b20b /src/runtime/c/pgf/lightning/core-common.h
parent18ee232497cea462434359cdd759e20321a2b750 (diff)
a major revision of the bytecode generator and JIT compiler. the effect is that now we can compute with lambda functions and with true tail recursion
Diffstat (limited to 'src/runtime/c/pgf/lightning/core-common.h')
-rw-r--r--src/runtime/c/pgf/lightning/core-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/lightning/core-common.h b/src/runtime/c/pgf/lightning/core-common.h
index b60f0bf31..04dbb2c7b 100644
--- a/src/runtime/c/pgf/lightning/core-common.h
+++ b/src/runtime/c/pgf/lightning/core-common.h
@@ -474,6 +474,12 @@ typedef union jit_code {
#endif
#endif
+#ifndef jit_setarg_p
+#ifdef JIT_FP
+#define jit_setarg_p(reg, ofs) jit_stxi_p((ofs), JIT_FP, (reg));
+#endif
+#endif
+
/* Common definitions when sizeof(long) = sizeof(int) */
#ifndef jit_addi_l