aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-05-02 20:12:41 +0100
committerAndrea Corallo2020-05-14 21:50:31 +0100
commit5bf685f17cd9e8875cb117a086a75c32d832f4f7 (patch)
tree83a32233de0dc439d3b9c14d42d1829381ceb3be /src
parent3ab6a756671f95213d5bf083cf9852e0c61af1db (diff)
downloademacs-5bf685f17cd9e8875cb117a086a75c32d832f4f7.tar.gz
emacs-5bf685f17cd9e8875cb117a086a75c32d832f4f7.zip
* Rename emit_mvar_val -> emit_mvar_rval
* src/comp.c (emit_mvar_val): Rename into 'emit_mvar_rval'. (emit_set_internal, emit_simple_limple_call, emit_limple_insn) (emit_call_with_type_hint, emit_call2_with_type_hint) (emit_consp, emit_numperp, emit_integerp): Update for 'emit_mvar_val' rename.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/comp.c b/src/comp.c
index c85181f626a..4ba7e400bc3 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1324,7 +1324,7 @@ emit_PURE_P (gcc_jit_rvalue *ptr)
1324 from frame. */ 1324 from frame. */
1325 1325
1326static gcc_jit_rvalue * 1326static gcc_jit_rvalue *
1327emit_mvar_val (Lisp_Object mvar) 1327emit_mvar_rval (Lisp_Object mvar)
1328{ 1328{
1329 Lisp_Object const_vld = CALL1I (comp-mvar-const-vld, mvar); 1329 Lisp_Object const_vld = CALL1I (comp-mvar-const-vld, mvar);
1330 Lisp_Object constant = CALL1I (comp-mvar-constant, mvar); 1330 Lisp_Object constant = CALL1I (comp-mvar-constant, mvar);
@@ -1382,7 +1382,7 @@ emit_set_internal (Lisp_Object args)
1382 int i = 0; 1382 int i = 0;
1383 gcc_jit_rvalue *gcc_args[4]; 1383 gcc_jit_rvalue *gcc_args[4];
1384 FOR_EACH_TAIL (args) 1384 FOR_EACH_TAIL (args)
1385 gcc_args[i++] = emit_mvar_val (XCAR (args)); 1385 gcc_args[i++] = emit_mvar_rval (XCAR (args));
1386 gcc_args[2] = emit_const_lisp_obj (Qnil); 1386 gcc_args[2] = emit_const_lisp_obj (Qnil);
1387 gcc_args[3] = gcc_jit_context_new_rvalue_from_int (comp.ctxt, 1387 gcc_args[3] = gcc_jit_context_new_rvalue_from_int (comp.ctxt,
1388 comp.int_type, 1388 comp.int_type,
@@ -1403,7 +1403,7 @@ emit_simple_limple_call (Lisp_Object args, gcc_jit_type *ret_type, bool direct)
1403 ptrdiff_t nargs = list_length (args); 1403 ptrdiff_t nargs = list_length (args);
1404 gcc_jit_rvalue **gcc_args = SAFE_ALLOCA (nargs * sizeof (*gcc_args)); 1404 gcc_jit_rvalue **gcc_args = SAFE_ALLOCA (nargs * sizeof (*gcc_args));
1405 FOR_EACH_TAIL (args) 1405 FOR_EACH_TAIL (args)
1406 gcc_args[i++] = emit_mvar_val (XCAR (args)); 1406 gcc_args[i++] = emit_mvar_rval (XCAR (args));
1407 1407
1408 SAFE_FREE (); 1408 SAFE_FREE ();
1409 return emit_call (callee, ret_type, nargs, gcc_args, direct); 1409 return emit_call (callee, ret_type, nargs, gcc_args, direct);
@@ -1531,8 +1531,8 @@ emit_limple_insn (Lisp_Object insn)
1531 else if (EQ (op, Qcond_jump)) 1531 else if (EQ (op, Qcond_jump))
1532 { 1532 {
1533 /* Conditional branch. */ 1533 /* Conditional branch. */
1534 gcc_jit_rvalue *a = emit_mvar_val (arg[0]); 1534 gcc_jit_rvalue *a = emit_mvar_rval (arg[0]);
1535 gcc_jit_rvalue *b = emit_mvar_val (arg[1]); 1535 gcc_jit_rvalue *b = emit_mvar_rval (arg[1]);
1536 gcc_jit_block *target1 = retrive_block (arg[2]); 1536 gcc_jit_block *target1 = retrive_block (arg[2]);
1537 gcc_jit_block *target2 = retrive_block (arg[3]); 1537 gcc_jit_block *target2 = retrive_block (arg[3]);
1538 1538
@@ -1569,7 +1569,7 @@ emit_limple_insn (Lisp_Object insn)
1569 /* (push-handler condition-case #s(comp-mvar 0 3 t (arith-error) cons nil) 1 bb_2 bb_1) */ 1569 /* (push-handler condition-case #s(comp-mvar 0 3 t (arith-error) cons nil) 1 bb_2 bb_1) */
1570 int h_num UNINIT; 1570 int h_num UNINIT;
1571 Lisp_Object handler_spec = arg[0]; 1571 Lisp_Object handler_spec = arg[0];
1572 gcc_jit_rvalue *handler = emit_mvar_val (arg[1]); 1572 gcc_jit_rvalue *handler = emit_mvar_rval (arg[1]);
1573 if (EQ (handler_spec, Qcatcher)) 1573 if (EQ (handler_spec, Qcatcher))
1574 h_num = CATCHER; 1574 h_num = CATCHER;
1575 else if (EQ (handler_spec, Qcondition_case)) 1575 else if (EQ (handler_spec, Qcondition_case))
@@ -1665,7 +1665,7 @@ emit_limple_insn (Lisp_Object insn)
1665 Lisp_Object arg1 = arg[1]; 1665 Lisp_Object arg1 = arg[1];
1666 1666
1667 if (EQ (Ftype_of (arg1), Qcomp_mvar)) 1667 if (EQ (Ftype_of (arg1), Qcomp_mvar))
1668 res = emit_mvar_val (arg1); 1668 res = emit_mvar_rval (arg1);
1669 else if (EQ (FIRST (arg1), Qcall)) 1669 else if (EQ (FIRST (arg1), Qcall))
1670 res = emit_limple_call (XCDR (arg1)); 1670 res = emit_limple_call (XCDR (arg1));
1671 else if (EQ (FIRST (arg1), Qcallref)) 1671 else if (EQ (FIRST (arg1), Qcallref))
@@ -1778,7 +1778,7 @@ emit_limple_insn (Lisp_Object insn)
1778 { 1778 {
1779 gcc_jit_block_end_with_return (comp.block, 1779 gcc_jit_block_end_with_return (comp.block,
1780 NULL, 1780 NULL,
1781 emit_mvar_val (arg[0])); 1781 emit_mvar_rval (arg[0]));
1782 } 1782 }
1783 else 1783 else
1784 { 1784 {
@@ -1799,7 +1799,7 @@ emit_call_with_type_hint (gcc_jit_function *func, Lisp_Object insn,
1799{ 1799{
1800 bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type); 1800 bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type);
1801 gcc_jit_rvalue *args[] = 1801 gcc_jit_rvalue *args[] =
1802 { emit_mvar_val (SECOND (insn)), 1802 { emit_mvar_rval (SECOND (insn)),
1803 gcc_jit_context_new_rvalue_from_int (comp.ctxt, 1803 gcc_jit_context_new_rvalue_from_int (comp.ctxt,
1804 comp.bool_type, 1804 comp.bool_type,
1805 type_hint) }; 1805 type_hint) };
@@ -1814,8 +1814,8 @@ emit_call2_with_type_hint (gcc_jit_function *func, Lisp_Object insn,
1814{ 1814{
1815 bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type); 1815 bool type_hint = EQ (CALL1I (comp-mvar-type, SECOND (insn)), type);
1816 gcc_jit_rvalue *args[] = 1816 gcc_jit_rvalue *args[] =
1817 { emit_mvar_val (SECOND (insn)), 1817 { emit_mvar_rval (SECOND (insn)),
1818 emit_mvar_val (THIRD (insn)), 1818 emit_mvar_rval (THIRD (insn)),
1819 gcc_jit_context_new_rvalue_from_int (comp.ctxt, 1819 gcc_jit_context_new_rvalue_from_int (comp.ctxt,
1820 comp.bool_type, 1820 comp.bool_type,
1821 type_hint) }; 1821 type_hint) };
@@ -1845,7 +1845,7 @@ emit_negate (Lisp_Object insn)
1845static gcc_jit_rvalue * 1845static gcc_jit_rvalue *
1846emit_consp (Lisp_Object insn) 1846emit_consp (Lisp_Object insn)
1847{ 1847{
1848 gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn)); 1848 gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
1849 gcc_jit_rvalue *res = emit_coerce (comp.bool_type, 1849 gcc_jit_rvalue *res = emit_coerce (comp.bool_type,
1850 emit_CONSP (x)); 1850 emit_CONSP (x));
1851 return gcc_jit_context_new_call (comp.ctxt, 1851 return gcc_jit_context_new_call (comp.ctxt,
@@ -1881,7 +1881,7 @@ emit_setcdr (Lisp_Object insn)
1881static gcc_jit_rvalue * 1881static gcc_jit_rvalue *
1882emit_numperp (Lisp_Object insn) 1882emit_numperp (Lisp_Object insn)
1883{ 1883{
1884 gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn)); 1884 gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
1885 gcc_jit_rvalue *res = emit_NUMBERP (x); 1885 gcc_jit_rvalue *res = emit_NUMBERP (x);
1886 return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1, 1886 return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1,
1887 &res); 1887 &res);
@@ -1890,7 +1890,7 @@ emit_numperp (Lisp_Object insn)
1890static gcc_jit_rvalue * 1890static gcc_jit_rvalue *
1891emit_integerp (Lisp_Object insn) 1891emit_integerp (Lisp_Object insn)
1892{ 1892{
1893 gcc_jit_rvalue *x = emit_mvar_val (SECOND (insn)); 1893 gcc_jit_rvalue *x = emit_mvar_rval (SECOND (insn));
1894 gcc_jit_rvalue *res = emit_INTEGERP (x); 1894 gcc_jit_rvalue *res = emit_INTEGERP (x);
1895 return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1, 1895 return gcc_jit_context_new_call (comp.ctxt, NULL, comp.bool_to_lisp_obj, 1,
1896 &res); 1896 &res);