From 4c53bdb5a32a61755d94ebf136b7b8f8044a9c7f Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Tue, 27 May 2008 07:37:00 +0000 Subject: [PATCH] add comments --- include/jit/jit-arch-generic.h | 18 ++++++++++++++++++ include/jit/jit-arch-x86-64.h | 10 +++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/include/jit/jit-arch-generic.h b/include/jit/jit-arch-generic.h index c2000e2..ebcb394 100644 --- a/include/jit/jit-arch-generic.h +++ b/include/jit/jit-arch-generic.h @@ -29,4 +29,22 @@ */ #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 */ diff --git a/include/jit/jit-arch-x86-64.h b/include/jit/jit-arch-x86-64.h index 5d647b0..8170e32 100644 --- a/include/jit/jit-arch-x86-64.h +++ b/include/jit/jit-arch-x86-64.h @@ -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; \ -- 2.47.3