mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-26 05:00:28 +02:00
Add the new jit_pointer_p predicate interface.
* include/lightning.h, lib/lightning.c: Add the new jit_pointer_p interface, that returns a boolean value telling if the pointer argument is inside the jit code buffer. This is useful to avoid the need to add extra labels and calls to jit_address to figure bounds of code buffer, and still keep internal data private.
This commit is contained in:
parent
948315f45e
commit
95e3fbc8bc
3 changed files with 18 additions and 0 deletions
|
@ -953,6 +953,8 @@ extern jit_node_t *_jit_new_node_pwd(jit_state_t*, jit_code_t,
|
|||
|
||||
#define jit_callee_save_p(u) _jit_callee_save_p(_jit,u)
|
||||
extern jit_bool_t _jit_callee_save_p(jit_state_t*, jit_int32_t);
|
||||
#define jit_pointer_p(u) _jit_pointer_p(_jit,u)
|
||||
extern jit_bool_t _jit_pointer_p(jit_state_t*,jit_pointer_t);
|
||||
|
||||
#define jit_get_note(n,u,v,w) _jit_get_note(_jit,n,u,v,w)
|
||||
extern jit_bool_t _jit_get_note(jit_state_t*,jit_pointer_t,char**,char**,int*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue