from frame. */
static gcc_jit_rvalue *
-emit_mvar_val (Lisp_Object mvar)
+emit_mvar_rval (Lisp_Object mvar)
{
Lisp_Object const_vld = CALL1I (comp-mvar-const-vld, mvar);
Lisp_Object constant = CALL1I (comp-mvar-constant, mvar);
int i = 0;
gcc_jit_rvalue *gcc_args[4];
FOR_EACH_TAIL (args)
- gcc_args[i++] = emit_mvar_val (XCAR (args));
+ gcc_args[i++] = emit_mvar_rval (XCAR (args));
gcc_args[2] = emit_const_lisp_obj (Qnil);
gcc_args[3] = gcc_jit_context_new_rvalue_from_int (comp.ctxt,
comp.int_type,
ptrdiff_t nargs = list_length (args);
gcc_jit_rvalue **gcc_args = SAFE_ALLOCA (nargs * sizeof (*gcc_args));
FOR_EACH_TAIL (args)
- gcc_args[i++] = emit_mvar_val (XCAR (args));
+ gcc_args[i++] = emit_mvar_rval (XCAR (args));
SAFE_FREE ();
return emit_call (callee, ret_type, nargs, gcc_args, direct);
else if (EQ (op, Qcond_jump))
{
/* Conditional branch. */
- gcc_jit_rvalue *a = emit_mvar_val (arg[0]);
- gcc_jit_rvalue *b = emit_mvar_val (arg[1]);
+ gcc_jit_rvalue *a = emit_mvar_rval (arg[0]);
+ gcc_jit_rvalue *b = emit_mvar_rval (arg[1]);
gcc_jit_block *target1 = retrive_block (arg[2]);
gcc_jit_block *target2 = retrive_block (arg[3]);
/* (push-handler condition-case #s(comp-mvar 0 3 t (arith-error) cons nil) 1 bb_2 bb_1) */
int h_num UNINIT;
Lisp_Object handler_spec = arg[0];
- gcc_jit_rvalue *handler = emit_mvar_val (arg[1]);
+ gcc_jit_rvalue *handler = emit_mvar_rval (arg[1]);
if (EQ (handler_spec, Qcatcher))
h_num = CATCHER;
else if (EQ (handler_spec, Qcondition_case))
Lisp_Object arg1 = arg[1];
if (EQ (Ftype_of (arg1), Qcomp_mvar))
- res = emit_mvar_val (arg1);
+ res = emit_mvar_rval (arg1);
else if (EQ (FIRST (arg1), Qcall))
res = emit_limple_call (XCDR (arg1));
else if (EQ (FIRST (arg1), Qcallref))
{
gcc_jit_block_end_with_return (comp.block,
NULL,
- emit_mvar_val (arg[0]));
+ emit_mvar_rval (arg[0]));
}
else
{
{
bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type);
gcc_jit_rvalue *args[] =
- { emit_mvar_val (SECOND (insn)),
+ { emit_mvar_rval (SECOND (insn)),
gcc_jit_context_new_rvalue_from_int (comp.ctxt,
comp.bool_type,
type_hint) };
{
bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type);
gcc_jit_rvalue *args[] =
- { emit_mvar_val (SECOND (insn)),
- emit_mvar_val (THIRD (insn)),
+ { emit_mvar_rval (SECOND (insn)),
+ emit_mvar_rval (THIRD (insn)),
gcc_jit_context_new_rvalue_from_int (comp.ctxt,
comp.bool_type,
type_hint) };
static gcc_jit_rvalue *
emit_consp (Lisp_Object insn)
{
- gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn));
+ gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
gcc_jit_rvalue *res = emit_coerce (comp.bool_type,
emit_CONSP (x));
return gcc_jit_context_new_call (comp.ctxt,
static gcc_jit_rvalue *
emit_numperp (Lisp_Object insn)
{
- gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn));
+ gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
gcc_jit_rvalue *res = emit_NUMBERP (x);
return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1,
&res);
static gcc_jit_rvalue *
emit_integerp (Lisp_Object insn)
{
- gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn));
+ gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
gcc_jit_rvalue *res = emit_INTEGERP (x);
return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1,
&res);