gcc_jit_function *check_type;
gcc_jit_function *check_impure;
Lisp_Object func_blocks; /* blk_name -> gcc_block. */
- Lisp_Object func_hash; /* subr_name -> reloc_field. */
+ Lisp_Object imported_func_h; /* subr_name -> reloc_field. */
Lisp_Object emitter_dispatcher;
gcc_jit_rvalue *data_relocs; /* Synthesized struct holding data relocs. */
gcc_jit_lvalue *func_relocs; /* Synthesized struct holding func relocs. */
int nargs, gcc_jit_type **types)
{
/* Don't want to declare the same function two times. */
- ICE_IF (!NILP (Fgethash (subr_sym, comp.func_hash, Qnil)),
+ ICE_IF (!NILP (Fgethash (subr_sym, comp.imported_func_h, Qnil)),
"unexpected double function declaration");
if (nargs == MANY)
f_ptr_type,
SSDATA (f_ptr_name));
- Fputhash (subr_sym, make_mint_ptr (field), comp.func_hash);
+ Fputhash (subr_sym, make_mint_ptr (field), comp.imported_func_h);
return field;
}
nargs,
args);
- Lisp_Object value = Fgethash (subr_sym, comp.func_hash, Qnil);
+ Lisp_Object value = Fgethash (subr_sym, comp.imported_func_h, Qnil);
ICE_IF (NILP (value), "missing function declaration");
gcc_jit_lvalue *f_ptr =
Always reinitialize this cause old function definitions are garbage collected
by libgccjit when the ctxt is released.
*/
- comp.func_hash = CALLN (Fmake_hash_table);
+ comp.imported_func_h = CALLN (Fmake_hash_table);
/* Define data structures. */
defsubr (&Scomp__compile_ctxt_to_file);
defsubr (&Snative_elisp_load);
- staticpro (&comp.func_hash);
- comp.func_hash = Qnil;
+ staticpro (&comp.imported_func_h);
+ comp.imported_func_h = Qnil;
staticpro (&comp.func_blocks);
staticpro (&comp.emitter_dispatcher);
comp.emitter_dispatcher = Qnil;