]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
add comments
authorAleksey Demakov <ademakov@gmail.com>
Tue, 27 May 2008 07:37:00 +0000 (07:37 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Tue, 27 May 2008 07:37:00 +0000 (07:37 +0000)
include/jit/jit-arch-generic.h
include/jit/jit-arch-x86-64.h

index c2000e2230f0de271efeaf11f8928175b3a4c7f8..ebcb39417639ec4460ec5e7ca6bb4919bd7e3bc8 100644 (file)
  */
 #undef _JIT_ARCH_GET_CURRENT_FRAME
 
+/*
+ * If defined _JIT_ARCH_GET_NEXT_FRAME() assigns the frame address following
+ * the frame supplied as second arg to the value supplied as first argument.
+ */
+#undef _JIT_ARCH_GET_NEXT_FRAME
+
+/*
+ * If defined _JIT_ARCH_GET_RETURN_ADDRESS() assigns the return address of
+ * the frame supplied as second arg to the value supplied as first argument.
+ */
+#undef _JIT_ARCH_GET_RETURN_ADDRESS
+
+/*
+ * If defined _JIT_ARCH_GET_CURRENT_RETURN() assigns the return address of
+ * the current to the supplied argument.
+ */
+#define _JIT_ARCH_GET_CURRENT_RETURN
+
 #endif /* _JIT_ARCH_GENERIC_H */
index 5d647b06fe4fae643da2fcdd414519b33988f982..8170e323d44e9da34a41492b05ff448339a3690d 100644 (file)
@@ -56,7 +56,7 @@ struct _jit_arch_frame
 #endif
 
 /*
- * If defined _JIT_ARCH_GET_NEXT_FRAME assigns the frame address following
+ * If defined _JIT_ARCH_GET_NEXT_FRAME() assigns the frame address following
  * the frame supplied as second arg to the value supplied as first argument.
  */
 #define _JIT_ARCH_GET_NEXT_FRAME(n, f)                                                 \
@@ -65,14 +65,18 @@ struct _jit_arch_frame
        } while(0)
 
 /*
- * If defined _JIT_ARCH_GET_RETURN_ADDRESS assigns the return address of the frame
- * supplied as second arg to the value supplied as first argument.
+ * If defined _JIT_ARCH_GET_RETURN_ADDRESS() assigns the return address of
+ * the frame supplied as second arg to the value supplied as first argument.
  */
 #define _JIT_ARCH_GET_RETURN_ADDRESS(r, f)                                             \
        do {                                                                            \
                (r) = (void *)((f) ? ((_jit_arch_frame_t *)(f))->return_address : 0);   \
        } while(0)
 
+/*
+ * If defined _JIT_ARCH_GET_CURRENT_RETURN() assigns the return address of
+ * the current to the supplied argument.
+ */
 #define _JIT_ARCH_GET_CURRENT_RETURN(r)                                \
        do {                                                    \
                void *__frame;                                  \