1184 lines
138 KiB
HTML
Executable File
1184 lines
138 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="generator" content="TempleOS V5.03">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="/style/templeos.css">
|
|
<script src="/script/templeos.js"></script>
|
|
<style type="text/css">
|
|
.cF0{color:#000000;background-color:#ffffff;}
|
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
|
.cF8{color:#555555;background-color:#ffffff;}
|
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre id="content">
|
|
<a name="l1"></a><span class=cF9>I64</span><span class=cF0> </span><span class=cFD>OptPass789A</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>COptReg</span><span class=cF0> *reg_offsets,</span><span class=cF1>U8</span><span class=cF0> *buf,</span><span class=cF9>CDbgInfo</span><span class=cF0> **_dbg)
|
|
<a name="l2"></a>{</span><span class=cF2>/*cc->pass==7 is first time</span><span class=cF0>
|
|
<a name="l3"></a></span><span class=cF2>cc->pass==8 is second time</span><span class=cF0>
|
|
<a name="l4"></a></span><span class=cF2>cc->pass==9 is third time</span><span class=cF0>
|
|
<a name="l5"></a></span><span class=cF2>cc->pass==9 is fourth time and repeated until size stops shrinking</span><span class=cF0>
|
|
<a name="l6"></a></span><span class=cF2>size is now known</span><span class=cF0>
|
|
<a name="l7"></a></span><span class=cF2>cc->pass==10 is final pass, code is placed into buf.</span><span class=cF0>
|
|
<a name="l8"></a></span><span class=cF2>*/</span><span class=cF0>
|
|
<a name="l9"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,*tmpi_next;
|
|
<a name="l10"></a> </span><span class=cF9>I64</span><span class=cF0> i,cnt,num_lines=cc->max_line+1-cc->min_line,rip=0,rip2;
|
|
<a name="l11"></a> </span><span class=cF1>U8</span><span class=cF0> *ptr,saved_arg1_arg2_r[3*</span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF9>CICArg</span><span class=cF0>)];
|
|
<a name="l12"></a> </span><span class=cF9>CCodeMisc</span><span class=cF0> *lb;
|
|
<a name="l13"></a> </span><span class=cF9>CAOT</span><span class=cF0> *tmpaot;
|
|
<a name="l14"></a> </span><span class=cF9>CAOTAbsAddr</span><span class=cF0> *tmpa;
|
|
<a name="l15"></a> </span><span class=cF9>CAOTImportExport</span><span class=cF0> *tmpie;
|
|
<a name="l16"></a> </span><span class=cF9>CAOTHeapGlbl</span><span class=cF0> *tmphg;
|
|
<a name="l17"></a> </span><span class=cF9>CAOTHeapGlblRef</span><span class=cF0> *tmphgr;
|
|
<a name="l18"></a> </span><span class=cF9>CDbgInfo</span><span class=cF0> *dbg_info;
|
|
<a name="l19"></a> </span><span class=cF9>CAOTCtrl</span><span class=cF0> *aotc=cc->aotc;
|
|
<a name="l20"></a> </span><span class=cF1>Bool</span><span class=cF0> short_jmp;
|
|
<a name="l21"></a> </span><span class=cF9>CHashClass</span><span class=cF0> *tmpc;
|
|
<a name="l22"></a> </span><span class=cF9>CHashFun</span><span class=cF0> *tmpf;
|
|
<a name="l23"></a> </span><span class=cF9>CHashGlblVar</span><span class=cF0> *tmpg;
|
|
<a name="l24"></a> </span><span class=cF9>CExternUsage</span><span class=cF0> *tmpeu;
|
|
<a name="l25"></a>
|
|
<a name="l26"></a> </span><span class=cF1>if</span><span class=cF0> (_dbg) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l27"></a> *_dbg=dbg_info=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>offset</span><span class=cF7>(</span><span class=cF9>CDbgInfo</span><span class=cF0>.body</span><span class=cF7>)</span><span class=cF0>+</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>U32</span><span class=cF7>)</span><span class=cF0>*</span><span class=cF7>(</span><span class=cF0>num_lines+1</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l28"></a> dbg_info->min_line=cc->min_line;
|
|
<a name="l29"></a> dbg_info->max_line=cc->max_line;
|
|
<a name="l30"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
|
|
<a name="l31"></a> dbg_info->body[0]=aotc->rip;
|
|
<a name="l32"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l33"></a> dbg_info->body[0]=buf;
|
|
<a name="l34"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l35"></a> dbg_info=</span><span class=cF3>NULL</span><span class=cF0>;
|
|
<a name="l36"></a>
|
|
<a name="l37"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->flags,</span><span class=cF3>CCf_PASS_TRACE_PRESENT</span><span class=cF7>)</span><span class=cF0> &&
|
|
<a name="l38"></a> </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->saved_pass_trace,cc->pass</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l39"></a> </span><span class=cF6>"$BK,1$$LTRED$$IV,1$This code gets merged together and patched.\n"</span><span class=cF0>
|
|
<a name="l40"></a> </span><span class=cF6>"$FG$$IV,0$$BK,0$"</span><span class=cF0>;
|
|
<a name="l41"></a>
|
|
<a name="l42"></a> cc->last_float_op_ic=</span><span class=cF3>NULL</span><span class=cF0>;
|
|
<a name="l43"></a> tmpi=&cc->coc.coc_head;
|
|
<a name="l44"></a> tmpi->ic_last_start=-1;
|
|
<a name="l45"></a> tmpi->ic_cnt=0;
|
|
<a name="l46"></a> tmpi=tmpi->next;
|
|
<a name="l47"></a> </span><span class=cF1>while</span><span class=cF0> (tmpi->ic_code) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l48"></a> tmpi_next=tmpi->next;
|
|
<a name="l49"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_PASS_TRACE</span><span class=cF0> && </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->saved_pass_trace,cc->pass</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l50"></a> </span><span class=cFD>ICPut</span><span class=cF0>(cc,tmpi);
|
|
<a name="l51"></a> rip2=rip;
|
|
<a name="l52"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
|
|
<a name="l53"></a> rip2+=aotc->rip;
|
|
<a name="l54"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l55"></a> rip2+=buf;
|
|
<a name="l56"></a> cc->cur_ic_float_op_num=0;
|
|
<a name="l57"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags &</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l58"></a> tmpi->ic_flags=tmpi->ic_flags&
|
|
<a name="l59"></a> ~(</span><span class=cF3>ICF_PREV_DELETED</span><span class=cF0>|</span><span class=cF3>ICF_DONT_RESTORE</span><span class=cF0>)|</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
|
|
<a name="l60"></a> </span><span class=cF1>if</span><span class=cF0> (cc->pass==7)
|
|
<a name="l61"></a> cc->dont_push_float=</span><span class=cF5>Btr</span><span class=cF0>(&tmpi->ic_flags,</span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>);
|
|
<a name="l62"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(saved_arg1_arg2_r,&tmpi->arg1,3*</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CICArg</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l63"></a> tmpi->ic_cnt=0;
|
|
<a name="l64"></a> tmpi->ic_last_start=-1;
|
|
<a name="l65"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.type.mode) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l66"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_ARG2_TO_F64</span><span class=cF0>) {
|
|
<a name="l67"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,tmpi->arg2.type,
|
|
<a name="l68"></a> tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,</span><span class=cF3>FALSE</span><span class=cF0>,CN_A2,rip2);
|
|
<a name="l69"></a> tmpi->arg2.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
|
|
<a name="l70"></a> tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
|
|
<a name="l71"></a> tmpi->arg2.disp=0;
|
|
<a name="l72"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_ARG2_TO_INT</span><span class=cF0>) {
|
|
<a name="l73"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,
|
|
<a name="l74"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,</span><span class=cF3>TRUE</span><span class=cF0>,CN_A2,rip2);
|
|
<a name="l75"></a> tmpi->arg2.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
|
|
<a name="l76"></a> tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
|
|
<a name="l77"></a> tmpi->arg2.disp=0;
|
|
<a name="l78"></a> }
|
|
<a name="l79"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l80"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.type.mode) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l81"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_ARG1_TO_F64</span><span class=cF0>) {
|
|
<a name="l82"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RDX</span><span class=cF0>,tmpi->arg1.type,
|
|
<a name="l83"></a> tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,</span><span class=cF3>FALSE</span><span class=cF0>,CN_A1,rip2);
|
|
<a name="l84"></a> tmpi->arg1.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
|
|
<a name="l85"></a> tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RDX</span><span class=cF0>;
|
|
<a name="l86"></a> tmpi->arg1.disp=0;
|
|
<a name="l87"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_ARG1_TO_INT</span><span class=cF0>) {
|
|
<a name="l88"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RDX</span><span class=cF0>,
|
|
<a name="l89"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,</span><span class=cF3>TRUE</span><span class=cF0>,CN_A1,rip2);
|
|
<a name="l90"></a> tmpi->arg1.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
|
|
<a name="l91"></a> tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RDX</span><span class=cF0>;
|
|
<a name="l92"></a> tmpi->arg1.disp=0;
|
|
<a name="l93"></a> }
|
|
<a name="l94"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l95"></a>
|
|
<a name="l96"></a> </span><span class=cF1>switch</span><span class=cF0> [tmpi->ic_code] </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l97"></a> </span><span class=cF1>start</span><span class=cF0>:
|
|
<a name="l98"></a> </span><span class=cF1>start</span><span class=cF0>:
|
|
<a name="l99"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ABS_ADDR</span><span class=cF0>:
|
|
<a name="l100"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xB848);
|
|
<a name="l101"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l102"></a> </span><span class=cF1>if</span><span class=cF0> (buf && cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0> &&
|
|
<a name="l103"></a> !</span><span class=cF7>(</span><span class=cF0>cc->flags&(</span><span class=cF3>CCF_NO_ABSS</span><span class=cF0>|</span><span class=cF3>CCF_ASM_EXPRESSIONS</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l104"></a> tmpa=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTAbsAddr</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l105"></a> tmpa->next=aotc->abss;
|
|
<a name="l106"></a> tmpa->type=</span><span class=cF3>AAT_ADD_U64</span><span class=cF0>;
|
|
<a name="l107"></a> aotc->abss=tmpa;
|
|
<a name="l108"></a> tmpa->rip=rip2+tmpi->ic_cnt-8;
|
|
<a name="l109"></a> }
|
|
<a name="l110"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l111"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_HEAP_GLBL</span><span class=cF0>:
|
|
<a name="l112"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xB848);
|
|
<a name="l113"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,0);
|
|
<a name="l114"></a> tmphg=tmpi->ic_data;
|
|
<a name="l115"></a> </span><span class=cF1>if</span><span class=cF0> (buf && cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0> &&
|
|
<a name="l116"></a></span><span class=cF2>//TODO:is this necessary--flags?</span><span class=cF0>
|
|
<a name="l117"></a> !</span><span class=cF7>(</span><span class=cF0>cc->flags&(</span><span class=cF3>CCF_NO_ABSS</span><span class=cF0>|</span><span class=cF3>CCF_ASM_EXPRESSIONS</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l118"></a> tmphgr=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTHeapGlblRef</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l119"></a> tmphgr->next=tmphg->references;
|
|
<a name="l120"></a> tmphg->references=tmphgr;
|
|
<a name="l121"></a> tmphgr->rip=rip2+tmpi->ic_cnt-8;
|
|
<a name="l122"></a> }
|
|
<a name="l123"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l124"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADDR_IMPORT</span><span class=cF0>:
|
|
<a name="l125"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xB8);
|
|
<a name="l126"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0);
|
|
<a name="l127"></a> </span><span class=cF1>if</span><span class=cF0> (buf && !</span><span class=cF7>(</span><span class=cF0>cc->flags&</span><span class=cF3>CCF_NO_ABSS</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l128"></a> tmpg=tmpi->ic_data;
|
|
<a name="l129"></a> tmpie=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTImportExport</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l130"></a> tmpie->type=</span><span class=cF3>IET_IMM_U32</span><span class=cF0>;
|
|
<a name="l131"></a> tmpie->rip=rip2+tmpi->ic_cnt-4;
|
|
<a name="l132"></a> tmpie->next=tmpg->ie_lst;
|
|
<a name="l133"></a> tmpg->ie_lst=tmpie;
|
|
<a name="l134"></a> }
|
|
<a name="l135"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xC06348);
|
|
<a name="l136"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l137"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_RIP</span><span class=cF0>:
|
|
<a name="l138"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xB848);
|
|
<a name="l139"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,rip2+tmpi->ic_cnt-2);
|
|
<a name="l140"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0> && buf &&!</span><span class=cF7>(</span><span class=cF0>cc->flags&</span><span class=cF3>CCF_NO_ABSS</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l141"></a> tmpa=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTAbsAddr</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l142"></a> tmpa->next=aotc->abss;
|
|
<a name="l143"></a> tmpa->type=</span><span class=cF3>AAT_ADD_U64</span><span class=cF0>;
|
|
<a name="l144"></a> aotc->abss=tmpa;
|
|
<a name="l145"></a> tmpa->rip=rip2+tmpi->ic_cnt-8;
|
|
<a name="l146"></a> }
|
|
<a name="l147"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l148"></a> </span><span class=cF1>end</span><span class=cF0>:
|
|
<a name="l149"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l150"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip2);
|
|
<a name="l151"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l152"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_CARRY</span><span class=cF0>:
|
|
<a name="l153"></a> </span><span class=cFD>ICFlagBranch</span><span class=cF0>(tmpi,rip,0x72820F,buf);
|
|
<a name="l154"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l155"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_CARRY</span><span class=cF0>:
|
|
<a name="l156"></a> </span><span class=cFD>ICFlagBranch</span><span class=cF0>(tmpi,rip,0x73830F,buf);
|
|
<a name="l157"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l158"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_ZERO</span><span class=cF0>:
|
|
<a name="l159"></a> </span><span class=cFD>ICTestAndBranch</span><span class=cF0>(tmpi,rip,0x74840F,buf,rip2);
|
|
<a name="l160"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l161"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>:
|
|
<a name="l162"></a> </span><span class=cFD>ICTestAndBranch</span><span class=cF0>(tmpi,rip,0x75850F,buf,rip2);
|
|
<a name="l163"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l164"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_MM_ZERO</span><span class=cF0>:
|
|
<a name="l165"></a> </span><span class=cFD>ICPreIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l166"></a> </span><span class=cFD>ICFlagBranch</span><span class=cF0>(tmpi,rip,0x74840F,buf);
|
|
<a name="l167"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l168"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_MM_NOT_ZERO</span><span class=cF0>:
|
|
<a name="l169"></a> </span><span class=cFD>ICPreIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l170"></a> </span><span class=cFD>ICFlagBranch</span><span class=cF0>(tmpi,rip,0x75850F,buf);
|
|
<a name="l171"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l172"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_EQU_EQU</span><span class=cF0>:
|
|
<a name="l173"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x74840F,0x74840F,
|
|
<a name="l174"></a> 0x74840F,0x74840F,buf,rip2);
|
|
<a name="l175"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l176"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_EQU_EQU2</span><span class=cF0>:
|
|
<a name="l177"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x74840F,0x74840F,
|
|
<a name="l178"></a> 0x74840F,0x74840F,buf,rip2);
|
|
<a name="l179"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l180"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_EQU</span><span class=cF0>:
|
|
<a name="l181"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x75850F,0x75850F,
|
|
<a name="l182"></a> 0x75850F,0x75850F,buf,rip2);
|
|
<a name="l183"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l184"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_EQU2</span><span class=cF0>:
|
|
<a name="l185"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x75850F,0x75850F,
|
|
<a name="l186"></a> 0x75850F,0x75850F,buf,rip2);
|
|
<a name="l187"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l188"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_LESS</span><span class=cF0>:
|
|
<a name="l189"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF0>)
|
|
<a name="l190"></a> </span><span class=cFD>ICFCmpAndBranch</span><span class=cF0>(cc,tmpi, rip,0x72820F,0x77870F,buf,rip2);
|
|
<a name="l191"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l192"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x72820F,0x7C8C0F,
|
|
<a name="l193"></a> 0x77870F,0x7F8F0F,buf,rip2);
|
|
<a name="l194"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l195"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_LESS2</span><span class=cF0>:
|
|
<a name="l196"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x72820F,0x7C8C0F,
|
|
<a name="l197"></a> 0x77870F,0x7F8F0F,buf,rip2);
|
|
<a name="l198"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l199"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_GREATER_EQU</span><span class=cF0>:
|
|
<a name="l200"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF0>)
|
|
<a name="l201"></a> </span><span class=cFD>ICFCmpAndBranch</span><span class=cF0>(cc,tmpi, rip,0x73830F,0x76860F,buf,rip2);
|
|
<a name="l202"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l203"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x73830F,0x7D8D0F,
|
|
<a name="l204"></a> 0x76860F,0x7E8E0F,buf,rip2);
|
|
<a name="l205"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l206"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_GREATER_EQU2</span><span class=cF0>:
|
|
<a name="l207"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x73830F,0x7D8D0F,
|
|
<a name="l208"></a> 0x76860F,0x7E8E0F,buf,rip2);
|
|
<a name="l209"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l210"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_GREATER</span><span class=cF0>:
|
|
<a name="l211"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF0>)
|
|
<a name="l212"></a> </span><span class=cFD>ICFCmpAndBranch</span><span class=cF0>(cc,tmpi, rip,0x77870F,0x72820F,buf,rip2);
|
|
<a name="l213"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l214"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x77870F,0x7F8F0F,
|
|
<a name="l215"></a> 0x72820F,0x7C8C0F,buf,rip2);
|
|
<a name="l216"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l217"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_GREATER2</span><span class=cF0>:
|
|
<a name="l218"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x77870F,0x7F8F0F,
|
|
<a name="l219"></a> 0x72820F,0x7C8C0F,buf,rip2);
|
|
<a name="l220"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l221"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_LESS_EQU</span><span class=cF0>:
|
|
<a name="l222"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF0>)
|
|
<a name="l223"></a> </span><span class=cFD>ICFCmpAndBranch</span><span class=cF0>(cc,tmpi, rip,0x76860F,0x73830F,buf,rip2);
|
|
<a name="l224"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l225"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip,0x76860F,0x7E8E0F,
|
|
<a name="l226"></a> 0x73830F,0x7D8D0F,buf,rip2);
|
|
<a name="l227"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l228"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_LESS_EQU2</span><span class=cF0>:
|
|
<a name="l229"></a> </span><span class=cFD>ICCmpAndBranch</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip,0x76860F,0x7E8E0F,
|
|
<a name="l230"></a> 0x73830F,0x7D8D0F,buf,rip2);
|
|
<a name="l231"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l232"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_BT</span><span class=cF0>:
|
|
<a name="l233"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xA30F,0x20BA0F,0x72820F,buf,rip2);
|
|
<a name="l234"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l235"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_BTS</span><span class=cF0>:
|
|
<a name="l236"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xAB0F,0x28BA0F,0x72820F,buf,rip2);
|
|
<a name="l237"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l238"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_BTR</span><span class=cF0>:
|
|
<a name="l239"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xB30F,0x30BA0F,0x72820F,buf,rip2);
|
|
<a name="l240"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l241"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_BTC</span><span class=cF0>:
|
|
<a name="l242"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xBB0F,0x38BA0F,0x72820F,buf,rip2);
|
|
<a name="l243"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l244"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_BT</span><span class=cF0>:
|
|
<a name="l245"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xA30F,0x20BA0F,0x73830F,buf,rip2);
|
|
<a name="l246"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l247"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_BTS</span><span class=cF0>:
|
|
<a name="l248"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xAB0F,0x28BA0F,0x73830F,buf,rip2);
|
|
<a name="l249"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l250"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_BTR</span><span class=cF0>:
|
|
<a name="l251"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xB30F,0x30BA0F,0x73830F,buf,rip2);
|
|
<a name="l252"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l253"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_NOT_BTC</span><span class=cF0>:
|
|
<a name="l254"></a> </span><span class=cFD>ICBrBitOps</span><span class=cF0>(tmpi,rip,0xBB0F,0x38BA0F,0x73830F,buf,rip2);
|
|
<a name="l255"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l256"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_AND_ZERO</span><span class=cF0>:
|
|
<a name="l257"></a> </span><span class=cFD>ICAndBranch</span><span class=cF0>(tmpi,rip,0x74840F,buf,rip2);
|
|
<a name="l258"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l259"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BR_AND_NOT_ZERO</span><span class=cF0>:
|
|
<a name="l260"></a> </span><span class=cFD>ICAndBranch</span><span class=cF0>(tmpi,rip,0x75850F,buf,rip2);
|
|
<a name="l261"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l262"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SUB_CALL</span><span class=cF0>:
|
|
<a name="l263"></a> lb=</span><span class=cFD>OptLabelFwd</span><span class=cF0>(tmpi->ic_data);
|
|
<a name="l264"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
|
|
<a name="l265"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,lb->addr-</span><span class=cF7>(</span><span class=cF0>rip+5</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l266"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l267"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_JMP</span><span class=cF0>:
|
|
<a name="l268"></a> lb=</span><span class=cFD>OptLabelFwd</span><span class=cF0>(tmpi->ic_data);
|
|
<a name="l269"></a> short_jmp=</span><span class=cF5>ToBool</span><span class=cF0>(tmpi->ic_flags&</span><span class=cF3>ICF_SHORT_JMP</span><span class=cF0>);
|
|
<a name="l270"></a> </span><span class=cF1>if</span><span class=cF0> (!buf && lb->addr!=</span><span class=cF3>INVALID_PTR</span><span class=cF0> &&
|
|
<a name="l271"></a> </span><span class=cF3>I8_MIN</span><span class=cF0>+5<lb->addr-rip<</span><span class=cF3>I8_MAX</span><span class=cF0>-5)
|
|
<a name="l272"></a> short_jmp=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l273"></a> </span><span class=cF1>if</span><span class=cF0> (short_jmp) {
|
|
<a name="l274"></a> tmpi->ic_flags|=</span><span class=cF3>ICF_SHORT_JMP</span><span class=cF0>;
|
|
<a name="l275"></a> i=lb->addr-(rip+2);
|
|
<a name="l276"></a> </span><span class=cF1>if</span><span class=cF0> (buf || i)
|
|
<a name="l277"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,i<<8+0xEB);
|
|
<a name="l278"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l279"></a> tmpi->ic_code=</span><span class=cF3>IC_NOP1</span><span class=cF0>;
|
|
<a name="l280"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l281"></a> i=lb->addr-(rip+5);
|
|
<a name="l282"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE9);
|
|
<a name="l283"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,i);
|
|
<a name="l284"></a> }
|
|
<a name="l285"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l286"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LABEL</span><span class=cF0>:
|
|
<a name="l287"></a> lb=tmpi->ic_data;
|
|
<a name="l288"></a> lb->addr=rip;
|
|
<a name="l289"></a> </span><span class=cF1>if</span><span class=cF0> (lb->flags&</span><span class=cF3>CMF_POP_CMP</span><span class=cF0>) {
|
|
<a name="l290"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l291"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,8,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l292"></a> }
|
|
<a name="l293"></a> </span><span class=cF1>if</span><span class=cF0> (lb->type==</span><span class=cF3>CMT_ASM_LABEL</span><span class=cF0>)
|
|
<a name="l294"></a> lb->addr+=lb->rip;
|
|
<a name="l295"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l296"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_STR_CONST</span><span class=cF0>:
|
|
<a name="l297"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GET_LABEL</span><span class=cF0>:
|
|
<a name="l298"></a> lb=tmpi->ic_data;
|
|
<a name="l299"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
|
|
<a name="l300"></a> i=lb->addr+aotc->rip;
|
|
<a name="l301"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l302"></a> i=lb->addr+buf;
|
|
<a name="l303"></a> </span><span class=cFD>ICLea</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l304"></a> </span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_PTR</span><span class=cF0>,0,i,cc,buf,rip2);
|
|
<a name="l305"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l306"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ASM</span><span class=cF0>:
|
|
<a name="l307"></a> tmpaot=tmpi->ic_data;
|
|
<a name="l308"></a> tmpi->ic_cnt+=tmpaot->aot_U8s;
|
|
<a name="l309"></a> </span><span class=cF1>if</span><span class=cF0> (buf) {
|
|
<a name="l310"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(buf+rip,tmpaot->buf,tmpaot->aot_U8s);
|
|
<a name="l311"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpaot->buf);
|
|
<a name="l312"></a> tmpaot->buf=buf;
|
|
<a name="l313"></a> tmpaot->rip=rip;
|
|
<a name="l314"></a> tmpaot->rip2=rip2;
|
|
<a name="l315"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
|
|
<a name="l316"></a> </span><span class=cFD>CmpFixUpAOTAsm</span><span class=cF0>(cc,tmpaot);
|
|
<a name="l317"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l318"></a> </span><span class=cFD>CmpFixUpJITAsm</span><span class=cF0>(cc,tmpaot);
|
|
<a name="l319"></a> cnt=tmpi->ic_cnt;
|
|
<a name="l320"></a> </span><span class=cF1>goto</span><span class=cF0> op789A_skip_copy;
|
|
<a name="l321"></a> }
|
|
<a name="l322"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l323"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL</span><span class=cF0>:
|
|
<a name="l324"></a> i=tmpi->ic_data-(rip2+5);
|
|
<a name="l325"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF3>I32_MIN</span><span class=cF0><=i<=</span><span class=cF3>I32_MAX</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l326"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xBB48);
|
|
<a name="l327"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l328"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xD3FF);
|
|
<a name="l329"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l330"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
|
|
<a name="l331"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,i);
|
|
<a name="l332"></a> }
|
|
<a name="l333"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l334"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_EXTERN</span><span class=cF0>: </span><span class=cF2>//Only for static modules</span><span class=cF0>
|
|
<a name="l335"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
|
|
<a name="l336"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0);
|
|
<a name="l337"></a> </span><span class=cF1>if</span><span class=cF0> (buf) {
|
|
<a name="l338"></a> tmpf=tmpi->ic_data;
|
|
<a name="l339"></a> tmpeu=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CExternUsage</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l340"></a> tmpeu->next=tmpf->ext_lst;
|
|
<a name="l341"></a> tmpf->ext_lst=tmpeu;
|
|
<a name="l342"></a> tmpeu->rip=rip2+1;
|
|
<a name="l343"></a> }
|
|
<a name="l344"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l345"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_INDIRECT2</span><span class=cF0>:
|
|
<a name="l346"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xBB48);
|
|
<a name="l347"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>) i=rip2+tmpi->ic_cnt;
|
|
<a name="l348"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l349"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x13FF);
|
|
<a name="l350"></a> </span><span class=cF1>if</span><span class=cF0> (buf && cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>&& !</span><span class=cF7>(</span><span class=cF0>cc->flags&</span><span class=cF3>CCF_NO_ABSS</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l351"></a> tmpa=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTAbsAddr</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l352"></a> tmpa->next=aotc->abss;
|
|
<a name="l353"></a> tmpa->type=</span><span class=cF3>AAT_ADD_U64</span><span class=cF0>;
|
|
<a name="l354"></a> aotc->abss=tmpa;
|
|
<a name="l355"></a> tmpa->rip=i;
|
|
<a name="l356"></a> }
|
|
<a name="l357"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l358"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_IMPORT</span><span class=cF0>:
|
|
<a name="l359"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GetOption</span><span class=cF7>(</span><span class=cF3>OPTf_USE_IMM64</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l360"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xBB48);
|
|
<a name="l361"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,0);
|
|
<a name="l362"></a> </span><span class=cF1>if</span><span class=cF0> (buf) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l363"></a> tmpf=tmpi->ic_data;
|
|
<a name="l364"></a> tmpie=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTImportExport</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l365"></a> tmpie->type=</span><span class=cF3>IET_IMM_I64</span><span class=cF0>;
|
|
<a name="l366"></a> tmpie->rip=rip2+tmpi->ic_cnt-8;
|
|
<a name="l367"></a> tmpie->next=tmpf->ie_lst;
|
|
<a name="l368"></a> tmpf->ie_lst=tmpie;
|
|
<a name="l369"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l370"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xD3FF);
|
|
<a name="l371"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l372"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
|
|
<a name="l373"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0);
|
|
<a name="l374"></a> </span><span class=cF1>if</span><span class=cF0> (buf) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l375"></a> tmpf=tmpi->ic_data;
|
|
<a name="l376"></a> tmpie=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTImportExport</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l377"></a> tmpie->type=</span><span class=cF3>IET_REL_I32</span><span class=cF0>;
|
|
<a name="l378"></a> tmpie->rip=rip2+tmpi->ic_cnt-4;
|
|
<a name="l379"></a> tmpie->next=tmpf->ie_lst;
|
|
<a name="l380"></a> tmpf->ie_lst=tmpie;
|
|
<a name="l381"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l382"></a> }
|
|
<a name="l383"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l384"></a> </span><span class=cF1>end</span><span class=cF0>:
|
|
<a name="l385"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
|
|
<a name="l386"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l387"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LEAVE</span><span class=cF0>:
|
|
<a name="l388"></a> </span><span class=cF1>if</span><span class=cF0> (cc->htc.fun) {
|
|
<a name="l389"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->htc.fun->flags,</span><span class=cF3>Ff_INTERRUPT</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l390"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,</span><span class=cF3>REGG_CLOBBERED</span><span class=cF0>|cc->htc.fun->used_reg_mask&
|
|
<a name="l391"></a> </span><span class=cF7>(</span><span class=cF3>REGG_LOCAL_VARS</span><span class=cF0>|</span><span class=cF3>REGG_LOCAL_NON_PTR_VARS</span><span class=cF0>|</span><span class=cF3>REGG_STK_TMP</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l392"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l393"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,cc->htc.fun->used_reg_mask&
|
|
<a name="l394"></a> </span><span class=cF7>(</span><span class=cF3>REGG_LOCAL_VARS</span><span class=cF0>|</span><span class=cF3>REGG_LOCAL_NON_PTR_VARS</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l395"></a> }
|
|
<a name="l396"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_data<=</span><span class=cF3>I16_MAX</span><span class=cF0>) {
|
|
<a name="l397"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_data)
|
|
<a name="l398"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xC9); </span><span class=cF2>//LEAVE</span><span class=cF0>
|
|
<a name="l399"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l400"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x5D); </span><span class=cF2>//POP RBP</span><span class=cF0>
|
|
<a name="l401"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l402"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l403"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x5D); </span><span class=cF2>//POP RBP</span><span class=cF0>
|
|
<a name="l404"></a> }
|
|
<a name="l405"></a> </span><span class=cF1>if</span><span class=cF0> (cc->htc.fun && </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->htc.fun->flags,</span><span class=cF3>Ff_INTERRUPT</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l406"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->htc.fun->flags,</span><span class=cF3>Ff_HASERRCODE</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l407"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,8);
|
|
<a name="l408"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xCF48);
|
|
<a name="l409"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (cc->htc.fun && cc->htc.fun->arg_cnt &&
|
|
<a name="l410"></a> </span><span class=cF7>(</span><span class=cF5>Bt</span><span class=cF0>(&cc->htc.fun->flags,</span><span class=cF3>Ff_RET1</span><span class=cF0>) ||
|
|
<a name="l411"></a> </span><span class=cF5>Bt</span><span class=cF0>(&cc->htc.fun->flags,</span><span class=cF3>Ff_ARGPOP</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0> &&
|
|
<a name="l412"></a> !</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->htc.fun->flags,</span><span class=cF3>Ff_NOARGPOP</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l413"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xC2);
|
|
<a name="l414"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,cc->htc.fun->arg_cnt<<3);
|
|
<a name="l415"></a> } </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l416"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xC3);
|
|
<a name="l417"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l418"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_RET</span><span class=cF0>:
|
|
<a name="l419"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xC3);
|
|
<a name="l420"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l421"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_FS</span><span class=cF0>:
|
|
<a name="l422"></a> </span><span class=cFD>ICZero</span><span class=cF0>(tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>);
|
|
<a name="l423"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0x8B4864);
|
|
<a name="l424"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l425"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GS</span><span class=cF0>:
|
|
<a name="l426"></a> </span><span class=cFD>ICZero</span><span class=cF0>(tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>);
|
|
<a name="l427"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0x8B4865);
|
|
<a name="l428"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l429"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOV_FS</span><span class=cF0>:
|
|
<a name="l430"></a> </span><span class=cFD>ICZero</span><span class=cF0>(tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>);
|
|
<a name="l431"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x64);
|
|
<a name="l432"></a></span><span class=cF2>//It's ugly to use ic_class here</span><span class=cF0>
|
|
<a name="l433"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l434"></a> </span><span class=cF3>MDF_DISP</span><span class=cF0>+</span><span class=cFD>CmpRawType</span><span class=cF7>(</span><span class=cF0>tmpi->ic_class</span><span class=cF7>)</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,tmpi->ic_data,
|
|
<a name="l435"></a> rip2);
|
|
<a name="l436"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l437"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOV_GS</span><span class=cF0>:
|
|
<a name="l438"></a> </span><span class=cFD>ICZero</span><span class=cF0>(tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>);
|
|
<a name="l439"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x65);
|
|
<a name="l440"></a></span><span class=cF2>//It's ugly to use ic_class here</span><span class=cF0>
|
|
<a name="l441"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l442"></a> </span><span class=cF3>MDF_DISP</span><span class=cF0>+</span><span class=cFD>CmpRawType</span><span class=cF7>(</span><span class=cF0>tmpi->ic_class</span><span class=cF7>)</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,tmpi->ic_data,
|
|
<a name="l443"></a> rip2);
|
|
<a name="l444"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l445"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_HOLYC_TYPECAST</span><span class=cF0>:
|
|
<a name="l446"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l447"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l448"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l449"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_COM</span><span class=cF0>:
|
|
<a name="l450"></a> </span><span class=cFD>ICUnaries</span><span class=cF0>(tmpi,SLASH_OP_NOT,rip2);
|
|
<a name="l451"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l452"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOT</span><span class=cF0>:
|
|
<a name="l453"></a> </span><span class=cFD>ICNot</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l454"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l455"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_UNARY_MINUS</span><span class=cF0>:
|
|
<a name="l456"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->res.type.raw_type==</span><span class=cF3>RT_F64</span><span class=cF0>)
|
|
<a name="l457"></a> </span><span class=cFD>ICFUnaryMinus</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l458"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l459"></a> </span><span class=cFD>ICUnaries</span><span class=cF0>(tmpi,SLASH_OP_NEG,rip2);
|
|
<a name="l460"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l461"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADDR</span><span class=cF0>:
|
|
<a name="l462"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOV</span><span class=cF0>:
|
|
<a name="l463"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l464"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l465"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l466"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_DEREF</span><span class=cF0>:
|
|
<a name="l467"></a> </span><span class=cFD>ICDeref</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l468"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l469"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_DEREF_PP</span><span class=cF0>:
|
|
<a name="l470"></a> </span><span class=cFD>ICDerefPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_INC,rip2);
|
|
<a name="l471"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l472"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_DEREF_MM</span><span class=cF0>:
|
|
<a name="l473"></a> </span><span class=cFD>ICDerefPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l474"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l475"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC__PP</span><span class=cF0>:
|
|
<a name="l476"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l477"></a> </span><span class=cFD>ICPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_INC,rip2);
|
|
<a name="l478"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l479"></a> </span><span class=cFD>ICFPostIncDec</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_INC</span><span class=cF0>,rip2);
|
|
<a name="l480"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l481"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC__MM</span><span class=cF0>:
|
|
<a name="l482"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l483"></a> </span><span class=cFD>ICPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l484"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l485"></a> </span><span class=cFD>ICFPostIncDec</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_DEC</span><span class=cF0>,rip2);
|
|
<a name="l486"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l487"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_PP_</span><span class=cF0>:
|
|
<a name="l488"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l489"></a> </span><span class=cFD>ICPreIncDec</span><span class=cF0>(tmpi,SLASH_OP_INC,rip2);
|
|
<a name="l490"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l491"></a> </span><span class=cFD>ICFPreIncDec</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_INC</span><span class=cF0>,rip2);
|
|
<a name="l492"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l493"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MM_</span><span class=cF0>:
|
|
<a name="l494"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l495"></a> </span><span class=cFD>ICPreIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l496"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l497"></a> </span><span class=cFD>ICFPreIncDec</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_DEC</span><span class=cF0>,rip2);
|
|
<a name="l498"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l499"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LEA</span><span class=cF0>:
|
|
<a name="l500"></a> </span><span class=cFD>ICLea</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l501"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,cc,buf,rip2);
|
|
<a name="l502"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l503"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_POWER</span><span class=cF0>:
|
|
<a name="l504"></a> </span><span class=cFD>ICFPow</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l505"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l506"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHL</span><span class=cF0>:
|
|
<a name="l507"></a> </span><span class=cFD>ICShift</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l508"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l509"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l510"></a> 0xE0D1E0D3E0C1,0xE0D1E0D3E0C1,rip2);
|
|
<a name="l511"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l512"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHR</span><span class=cF0>:
|
|
<a name="l513"></a> </span><span class=cFD>ICShift</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l514"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l515"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l516"></a> 0xE8D1E8D3E8C1,0xF8D1F8D3F8C1,rip2);
|
|
<a name="l517"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l518"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MUL</span><span class=cF0>:
|
|
<a name="l519"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l520"></a> </span><span class=cFD>ICMul</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l521"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l522"></a> </span><span class=cFD>ICFMul</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l523"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l524"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_DIV</span><span class=cF0>:
|
|
<a name="l525"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l526"></a> </span><span class=cFD>ICDiv</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l527"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l528"></a> </span><span class=cFD>ICFDiv</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l529"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l530"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOD</span><span class=cF0>:
|
|
<a name="l531"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l532"></a> </span><span class=cFD>ICMod</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l533"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l534"></a> </span><span class=cFD>ICFMod</span><span class=cF0>(cc,tmpi,rip2);
|
|
<a name="l535"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l536"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND</span><span class=cF0>:
|
|
<a name="l537"></a> </span><span class=cFD>ICAddEct</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l538"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l539"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,0x23,rip2);
|
|
<a name="l540"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l541"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OR</span><span class=cF0>:
|
|
<a name="l542"></a> </span><span class=cFD>ICAddEct</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l543"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l544"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,0x0B,rip2);
|
|
<a name="l545"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l546"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_XOR</span><span class=cF0>:
|
|
<a name="l547"></a> </span><span class=cFD>ICAddEct</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l548"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l549"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,0x33,rip2);
|
|
<a name="l550"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l551"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADD</span><span class=cF0>:
|
|
<a name="l552"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l553"></a> </span><span class=cFD>ICAddEct</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l554"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l555"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,0x03,rip2);
|
|
<a name="l556"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l557"></a> </span><span class=cFD>ICFAdd</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l558"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l559"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SUB</span><span class=cF0>:
|
|
<a name="l560"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l561"></a> </span><span class=cFD>ICSub</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l562"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l563"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,rip2);
|
|
<a name="l564"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l565"></a> </span><span class=cFD>ICFSub</span><span class=cF0>(cc,tmpi,buf,rip2);
|
|
<a name="l566"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l567"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_EQU_EQU</span><span class=cF0>:
|
|
<a name="l568"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x75,0x75,rip2);
|
|
<a name="l569"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l570"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOT_EQU</span><span class=cF0>:
|
|
<a name="l571"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x74,0x74,rip2);
|
|
<a name="l572"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l573"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LESS</span><span class=cF0>:
|
|
<a name="l574"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l575"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x73,0x7D,rip2);
|
|
<a name="l576"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l577"></a> </span><span class=cFD>ICFCmp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_LESS</span><span class=cF0>,rip2);
|
|
<a name="l578"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l579"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GREATER_EQU</span><span class=cF0>:
|
|
<a name="l580"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l581"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x72,0x7C,rip2);
|
|
<a name="l582"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l583"></a> </span><span class=cFD>ICFCmp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_GREATER_EQU</span><span class=cF0>,rip2);
|
|
<a name="l584"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l585"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GREATER</span><span class=cF0>:
|
|
<a name="l586"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l587"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x76,0x7E,rip2);
|
|
<a name="l588"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l589"></a> </span><span class=cFD>ICFCmp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_GREATER</span><span class=cF0>,rip2);
|
|
<a name="l590"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l591"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LESS_EQU</span><span class=cF0>:
|
|
<a name="l592"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l593"></a> </span><span class=cFD>ICCmp</span><span class=cF0>(tmpi,0x77,0x7F,rip2);
|
|
<a name="l594"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l595"></a> </span><span class=cFD>ICFCmp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_LESS_EQU</span><span class=cF0>,rip2);
|
|
<a name="l596"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l597"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND_AND</span><span class=cF0>:
|
|
<a name="l598"></a> </span><span class=cFD>ICAndAnd</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l599"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l600"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OR_OR</span><span class=cF0>:
|
|
<a name="l601"></a> </span><span class=cFD>ICOrOr</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l602"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l603"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_XOR_XOR</span><span class=cF0>:
|
|
<a name="l604"></a> </span><span class=cFD>ICXorXor</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l605"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l606"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ASSIGN</span><span class=cF0>:
|
|
<a name="l607"></a> </span><span class=cFD>ICAssign</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l608"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l609"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ASSIGN_PP</span><span class=cF0>:
|
|
<a name="l610"></a> </span><span class=cFD>ICAssignPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_INC,rip2);
|
|
<a name="l611"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l612"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ASSIGN_MM</span><span class=cF0>:
|
|
<a name="l613"></a> </span><span class=cFD>ICAssignPostIncDec</span><span class=cF0>(tmpi,SLASH_OP_DEC,rip2);
|
|
<a name="l614"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l615"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHL_EQU</span><span class=cF0>:
|
|
<a name="l616"></a> </span><span class=cFD>ICShiftEqu</span><span class=cF0>(tmpi,tmpi->arg1_type_pointed_to,
|
|
<a name="l617"></a> tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l618"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l619"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l620"></a> 0xE0D1E0D3E0C1,0xE0D1E0D3E0C1,rip2);
|
|
<a name="l621"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l622"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHR_EQU</span><span class=cF0>:
|
|
<a name="l623"></a> </span><span class=cFD>ICShiftEqu</span><span class=cF0>(tmpi,tmpi->arg1_type_pointed_to,
|
|
<a name="l624"></a> tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l625"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l626"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l627"></a> 0xE8D1E8D3E8C1,0xF8D1F8D3F8C1,rip2);
|
|
<a name="l628"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l629"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MUL_EQU</span><span class=cF0>:
|
|
<a name="l630"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l631"></a> </span><span class=cFD>ICMulEqu</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l632"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l633"></a> </span><span class=cFD>ICFOpEqu</span><span class=cF0>(cc,tmpi,SLASH_OP_FMUL,buf,rip2);
|
|
<a name="l634"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l635"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_DIV_EQU</span><span class=cF0>:
|
|
<a name="l636"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l637"></a> </span><span class=cFD>ICDivEqu</span><span class=cF0>(tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,rip2);
|
|
<a name="l638"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l639"></a> </span><span class=cFD>ICFOpEqu</span><span class=cF0>(cc,tmpi,SLASH_OP_FDIV,buf,rip2);
|
|
<a name="l640"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l641"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOD_EQU</span><span class=cF0>:
|
|
<a name="l642"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l643"></a> </span><span class=cFD>ICDivEqu</span><span class=cF0>(tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,rip2);
|
|
<a name="l644"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l645"></a> </span><span class=cFD>ICFModEqu</span><span class=cF0>(cc,tmpi,rip2);
|
|
<a name="l646"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l647"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND_EQU</span><span class=cF0>:
|
|
<a name="l648"></a> </span><span class=cFD>ICAndEqu</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l649"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l650"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OR_EQU</span><span class=cF0>:
|
|
<a name="l651"></a> </span><span class=cFD>ICOrEqu</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l652"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l653"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_XOR_EQU</span><span class=cF0>:
|
|
<a name="l654"></a> </span><span class=cFD>ICXorEqu</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l655"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l656"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADD_EQU</span><span class=cF0>:
|
|
<a name="l657"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l658"></a> </span><span class=cFD>ICAddSubEctEqu</span><span class=cF0>(tmpi,tmpi->arg1_type_pointed_to,
|
|
<a name="l659"></a> tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l660"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l661"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l662"></a> 0x010000000003,rip2);
|
|
<a name="l663"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l664"></a> </span><span class=cFD>ICFOpEqu</span><span class=cF0>(cc,tmpi,SLASH_OP_FADD,buf,rip2);
|
|
<a name="l665"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l666"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SUB_EQU</span><span class=cF0>:
|
|
<a name="l667"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_USE_INT</span><span class=cF0>)
|
|
<a name="l668"></a> </span><span class=cFD>ICAddSubEctEqu</span><span class=cF0>(tmpi,tmpi->arg1_type_pointed_to,
|
|
<a name="l669"></a> tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l670"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l671"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,
|
|
<a name="l672"></a> 0x29000000052B,rip2);
|
|
<a name="l673"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l674"></a> </span><span class=cFD>ICFOpEqu</span><span class=cF0>(cc,tmpi,SLASH_OP_FSUB,buf,rip2);
|
|
<a name="l675"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l676"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHL_CONST</span><span class=cF0>:
|
|
<a name="l677"></a> </span><span class=cFD>ICShift</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l678"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l679"></a> </span><span class=cF3>MDF_IMM</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,0,tmpi->ic_data,
|
|
<a name="l680"></a> 0xE0D1E0D3E0C1,0xE0D1E0D3E0C1,rip2);
|
|
<a name="l681"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l682"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SHR_CONST</span><span class=cF0>:
|
|
<a name="l683"></a> </span><span class=cFD>ICShift</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l684"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,
|
|
<a name="l685"></a> </span><span class=cF3>MDF_IMM</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,0,tmpi->ic_data,
|
|
<a name="l686"></a> 0xE8D1E8D3E8C1,0xF8D1F8D3F8C1,rip2);
|
|
<a name="l687"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l688"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADD_CONST</span><span class=cF0>:
|
|
<a name="l689"></a> </span><span class=cFD>ICAddSubEctImm</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l690"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,tmpi->ic_data,
|
|
<a name="l691"></a> 0x0003,rip2);
|
|
<a name="l692"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l693"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SUB_CONST</span><span class=cF0>:
|
|
<a name="l694"></a> </span><span class=cFD>ICAddSubEctImm</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l695"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,tmpi->ic_data,
|
|
<a name="l696"></a> 0x052B,rip2);
|
|
<a name="l697"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l698"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ENTER</span><span class=cF0>:
|
|
<a name="l699"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xEC8B4855);
|
|
<a name="l700"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_data)
|
|
<a name="l701"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-tmpi->ic_data,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l702"></a> </span><span class=cF1>if</span><span class=cF0> (cc->htc.fun) {
|
|
<a name="l703"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->htc.fun->flags,</span><span class=cF3>Ff_INTERRUPT</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l704"></a> </span><span class=cFD>ICPushRegs</span><span class=cF0>(tmpi,</span><span class=cF3>REGG_CLOBBERED</span><span class=cF0>|cc->htc.fun->used_reg_mask&
|
|
<a name="l705"></a> </span><span class=cF7>(</span><span class=cF3>REGG_LOCAL_VARS</span><span class=cF0>|</span><span class=cF3>REGG_LOCAL_NON_PTR_VARS</span><span class=cF0>|</span><span class=cF3>REGG_STK_TMP</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l706"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l707"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>sys_var_init_flag</span><span class=cF0> && i)
|
|
<a name="l708"></a> </span><span class=cFD>ICLocalVarInit</span><span class=cF0>(tmpi);
|
|
<a name="l709"></a> </span><span class=cFD>ICPushRegs</span><span class=cF0>(tmpi,cc->htc.fun->used_reg_mask
|
|
<a name="l710"></a> &</span><span class=cF7>(</span><span class=cF3>REGG_LOCAL_VARS</span><span class=cF0>|</span><span class=cF3>REGG_LOCAL_NON_PTR_VARS</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l711"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l712"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>REG_REGS_NUM</span><span class=cF0>;i++)
|
|
<a name="l713"></a> </span><span class=cF1>if</span><span class=cF0> (reg_offsets[i]>0 && reg_offsets[i].</span><span class=cF1>offset</span><span class=cF0>!=</span><span class=cF3>I64_MAX</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l714"></a> tmpc=</span><span class=cF5>OptClassFwd</span><span class=cF0>(reg_offsets[i].m->member_class);
|
|
<a name="l715"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,i,0,</span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpc->raw_type,
|
|
<a name="l716"></a> </span><span class=cF3>REG_RBP</span><span class=cF0>,reg_offsets[i].</span><span class=cF1>offset</span><span class=cF0>,rip2);
|
|
<a name="l717"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l718"></a> }
|
|
<a name="l719"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l720"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADD_RSP</span><span class=cF0>:
|
|
<a name="l721"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l722"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l723"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_INDIRECT</span><span class=cF0>:
|
|
<a name="l724"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF3>I8_MIN</span><span class=cF0><=tmpi->ic_data<=</span><span class=cF3>I8_MAX</span><span class=cF0>) {
|
|
<a name="l725"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x2454FF); </span><span class=cF2>//CALL disp[RSP]</span><span class=cF0>
|
|
<a name="l726"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l727"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l728"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x2494FF); </span><span class=cF2>//CALL disp[RSP]</span><span class=cF0>
|
|
<a name="l729"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l730"></a> }
|
|
<a name="l731"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l732"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_PUSH</span><span class=cF0>:
|
|
<a name="l733"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l734"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l735"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_POP</span><span class=cF0>:
|
|
<a name="l736"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x58);
|
|
<a name="l737"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l738"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_INVLPG</span><span class=cF0>:
|
|
<a name="l739"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l740"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l741"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x38010F);
|
|
<a name="l742"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l743"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CLFLUSH</span><span class=cF0>:
|
|
<a name="l744"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l745"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l746"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x38AE0F);
|
|
<a name="l747"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l748"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GET_RFLAGS</span><span class=cF0>:
|
|
<a name="l749"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x9C);
|
|
<a name="l750"></a> </span><span class=cFD>ICPop</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip2);
|
|
<a name="l751"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l752"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CARRY</span><span class=cF0>:
|
|
<a name="l753"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xC0920F); </span><span class=cF2>//SETC AL</span><span class=cF0>
|
|
<a name="l754"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x01E083); </span><span class=cF2>//AND EAX,1</span><span class=cF0>
|
|
<a name="l755"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l756"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_RDTSC</span><span class=cF0>:
|
|
<a name="l757"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_RDTSC</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
|
|
<a name="l758"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l759"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SET_RFLAGS</span><span class=cF0>:
|
|
<a name="l760"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l761"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0x9D);
|
|
<a name="l762"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l763"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GET_RBP</span><span class=cF0>:
|
|
<a name="l764"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l765"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RBP</span><span class=cF0>,0,rip2);
|
|
<a name="l766"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l767"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SET_RBP</span><span class=cF0>:
|
|
<a name="l768"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RBP</span><span class=cF0>,0,
|
|
<a name="l769"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l770"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l771"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GET_RSP</span><span class=cF0>:
|
|
<a name="l772"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l773"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>,0,rip2);
|
|
<a name="l774"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l775"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SET_RSP</span><span class=cF0>:
|
|
<a name="l776"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>,0,
|
|
<a name="l777"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l778"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l779"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_RETURN_VAL</span><span class=cF0>:
|
|
<a name="l780"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SET_RAX</span><span class=cF0>:
|
|
<a name="l781"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l782"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l783"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l784"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_RETURN_VAL2</span><span class=cF0>:
|
|
<a name="l785"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_GET_RAX</span><span class=cF0>:
|
|
<a name="l786"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l787"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BT</span><span class=cF0>:
|
|
<a name="l788"></a> </span><span class=cFD>ICBitOps</span><span class=cF0>(tmpi,&tmpi->arg1,&tmpi->arg2,tmpi->next,
|
|
<a name="l789"></a> 0xA30F,0x20BA0F,rip2);
|
|
<a name="l790"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l791"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTS</span><span class=cF0>:
|
|
<a name="l792"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTS</span><span class=cF0>:
|
|
<a name="l793"></a> </span><span class=cFD>ICBitOps</span><span class=cF0>(tmpi,&tmpi->arg1,&tmpi->arg2,tmpi->next,
|
|
<a name="l794"></a> 0xAB0F,0x28BA0F,rip2);
|
|
<a name="l795"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l796"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTR</span><span class=cF0>:
|
|
<a name="l797"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTR</span><span class=cF0>:
|
|
<a name="l798"></a> </span><span class=cFD>ICBitOps</span><span class=cF0>(tmpi,&tmpi->arg1,&tmpi->arg2,tmpi->next,
|
|
<a name="l799"></a> 0xB30F,0x30BA0F,rip2);
|
|
<a name="l800"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l801"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTC</span><span class=cF0>:
|
|
<a name="l802"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTC</span><span class=cF0>:
|
|
<a name="l803"></a> </span><span class=cFD>ICBitOps</span><span class=cF0>(tmpi,&tmpi->arg1,&tmpi->arg2,tmpi->next,
|
|
<a name="l804"></a> 0xBB0F,0x38BA0F,rip2);
|
|
<a name="l805"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l806"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BSF</span><span class=cF0>:
|
|
<a name="l807"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l808"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l809"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xC0BC0F48);
|
|
<a name="l810"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x0375);
|
|
<a name="l811"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xD0F748);
|
|
<a name="l812"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l813"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BSR</span><span class=cF0>:
|
|
<a name="l814"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l815"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l816"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xC0BD0F48);
|
|
<a name="l817"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x0375);
|
|
<a name="l818"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xD0F748);
|
|
<a name="l819"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l820"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SIGN_I64</span><span class=cF0>:
|
|
<a name="l821"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l822"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l823"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_SIGN_I64</span><span class=cF0>,
|
|
<a name="l824"></a> </span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
|
|
<a name="l825"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l826"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_TOUPPER</span><span class=cF0>:
|
|
<a name="l827"></a> </span><span class=cFD>ICToUpper</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l828"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l829"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_TO_I64</span><span class=cF0>:
|
|
<a name="l830"></a> </span><span class=cFD>ICToI64</span><span class=cF0>(cc,tmpi,rip2);
|
|
<a name="l831"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l832"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_TO_F64</span><span class=cF0>:
|
|
<a name="l833"></a> </span><span class=cFD>ICToF64</span><span class=cF0>(cc,tmpi,rip2);
|
|
<a name="l834"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l835"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_TO_BOOL</span><span class=cF0>:
|
|
<a name="l836"></a> </span><span class=cFD>ICToBool</span><span class=cF0>(cc,tmpi,rip2);
|
|
<a name="l837"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l838"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SQR</span><span class=cF0>:
|
|
<a name="l839"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_SQR</span><span class=cF0>,rip2);
|
|
<a name="l840"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l841"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ABS</span><span class=cF0>:
|
|
<a name="l842"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_ABS</span><span class=cF0>,rip2);
|
|
<a name="l843"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l844"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SQRT</span><span class=cF0>:
|
|
<a name="l845"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_SQRT</span><span class=cF0>,rip2);
|
|
<a name="l846"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l847"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SIN</span><span class=cF0>:
|
|
<a name="l848"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_SIN</span><span class=cF0>,rip2);
|
|
<a name="l849"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l850"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_COS</span><span class=cF0>:
|
|
<a name="l851"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_COS</span><span class=cF0>,rip2);
|
|
<a name="l852"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l853"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_TAN</span><span class=cF0>:
|
|
<a name="l854"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_TAN</span><span class=cF0>,rip2);
|
|
<a name="l855"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l856"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ATAN</span><span class=cF0>:
|
|
<a name="l857"></a> </span><span class=cFD>ICFTemplateFun</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_ATAN</span><span class=cF0>,rip2);
|
|
<a name="l858"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l859"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ABS_I64</span><span class=cF0>:
|
|
<a name="l860"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l861"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l862"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xC08548);
|
|
<a name="l863"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x0379);
|
|
<a name="l864"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xD8F748);
|
|
<a name="l865"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l866"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MIN_I64</span><span class=cF0>:
|
|
<a name="l867"></a> </span><span class=cFD>ICMinMax</span><span class=cF0>(tmpi,0x4F,rip2);
|
|
<a name="l868"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l869"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MAX_I64</span><span class=cF0>:
|
|
<a name="l870"></a> </span><span class=cFD>ICMinMax</span><span class=cF0>(tmpi,0x4C,rip2);
|
|
<a name="l871"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l872"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MIN_U64</span><span class=cF0>:
|
|
<a name="l873"></a> </span><span class=cFD>ICMinMax</span><span class=cF0>(tmpi,0x47,rip2);
|
|
<a name="l874"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l875"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MAX_U64</span><span class=cF0>:
|
|
<a name="l876"></a> </span><span class=cFD>ICMinMax</span><span class=cF0>(tmpi,0x42,rip2);
|
|
<a name="l877"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l878"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MOD_U64</span><span class=cF0>:
|
|
<a name="l879"></a> </span><span class=cFD>ICModU64</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l880"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l881"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SQR_I64</span><span class=cF0>:
|
|
<a name="l882"></a> </span><span class=cFD>ICSqr</span><span class=cF0>(tmpi,SLASH_OP_IMUL,rip2);
|
|
<a name="l883"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l884"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SQR_U64</span><span class=cF0>:
|
|
<a name="l885"></a> </span><span class=cFD>ICSqr</span><span class=cF0>(tmpi,SLASH_OP_MUL,rip2);
|
|
<a name="l886"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l887"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SWAP_U8</span><span class=cF0>:
|
|
<a name="l888"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SWAP_U16</span><span class=cF0>:
|
|
<a name="l889"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SWAP_U32</span><span class=cF0>:
|
|
<a name="l890"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SWAP_I64</span><span class=cF0>:
|
|
<a name="l891"></a> </span><span class=cFD>ICSwap</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l892"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l893"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_QUE_INIT</span><span class=cF0>:
|
|
<a name="l894"></a> </span><span class=cFD>ICQueInit</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l895"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l896"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_QUE_INS</span><span class=cF0>:
|
|
<a name="l897"></a> </span><span class=cFD>ICQueIns</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l898"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l899"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_QUE_INS_REV</span><span class=cF0>:
|
|
<a name="l900"></a> </span><span class=cFD>ICQueInsRev</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l901"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l902"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_QUE_REM</span><span class=cF0>:
|
|
<a name="l903"></a> </span><span class=cFD>ICQueRem</span><span class=cF0>(tmpi,rip2);
|
|
<a name="l904"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l905"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_STRLEN</span><span class=cF0>:
|
|
<a name="l906"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l907"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l908"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_STRLEN</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
|
|
<a name="l909"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l910"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_IN_U32</span><span class=cF0>:
|
|
<a name="l911"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l912"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l913"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l914"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xE5+tmpi->arg1.disp<<8);
|
|
<a name="l915"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l916"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg1.disp<<16);
|
|
<a name="l917"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xED);
|
|
<a name="l918"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l919"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l920"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l921"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l922"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l923"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xED);
|
|
<a name="l924"></a> }
|
|
<a name="l925"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l926"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_IN_U16</span><span class=cF0>:
|
|
<a name="l927"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l928"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l929"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l930"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xE500+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg1.disp<<16);
|
|
<a name="l931"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l932"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg1.disp<<16);
|
|
<a name="l933"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xED00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>);
|
|
<a name="l934"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l935"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l936"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l937"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l938"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l939"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xED00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>);
|
|
<a name="l940"></a> }
|
|
<a name="l941"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l942"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_IN_U8</span><span class=cF0>:
|
|
<a name="l943"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l944"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l945"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg1.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l946"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xE4+tmpi->arg1.disp<<8);
|
|
<a name="l947"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l948"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg1.disp<<16);
|
|
<a name="l949"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEC);
|
|
<a name="l950"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l951"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l952"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l953"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l954"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xC033);
|
|
<a name="l955"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEC);
|
|
<a name="l956"></a> }
|
|
<a name="l957"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l958"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OUT_U32</span><span class=cF0>:
|
|
<a name="l959"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l960"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l961"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l962"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l963"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xE7+tmpi->arg2.disp<<8);
|
|
<a name="l964"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l965"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg2.disp<<16);
|
|
<a name="l966"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEF);
|
|
<a name="l967"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l968"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l969"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l970"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,rip2);
|
|
<a name="l971"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l972"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l973"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEF);
|
|
<a name="l974"></a> }
|
|
<a name="l975"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l976"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OUT_U16</span><span class=cF0>:
|
|
<a name="l977"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l978"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l979"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l980"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l981"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0xE700+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg2.disp<<16);
|
|
<a name="l982"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l983"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg2.disp<<16);
|
|
<a name="l984"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xEF00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>);
|
|
<a name="l985"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l986"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l987"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l988"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,rip2);
|
|
<a name="l989"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l990"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l991"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xEF00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>);
|
|
<a name="l992"></a> }
|
|
<a name="l993"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l994"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OUT_U8</span><span class=cF0>:
|
|
<a name="l995"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.type&</span><span class=cF3>MDF_IMM</span><span class=cF0>) {
|
|
<a name="l996"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l997"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l998"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->arg2.disp<=</span><span class=cF3>U8_MAX</span><span class=cF0>)
|
|
<a name="l999"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xE6+tmpi->arg2.disp<<8);
|
|
<a name="l1000"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1001"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,0xBA00+</span><span class=cF3>OC_OP_SIZE_PREFIX</span><span class=cF0>+tmpi->arg2.disp<<16);
|
|
<a name="l1002"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEE);
|
|
<a name="l1003"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1004"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
|
<a name="l1005"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
|
|
<a name="l1006"></a> tmpi->arg2.type,tmpi->arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg2.disp,rip2);
|
|
<a name="l1007"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
|
|
<a name="l1008"></a> tmpi->arg1.type,tmpi->arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi->arg1.disp,rip2);
|
|
<a name="l1009"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xEE);
|
|
<a name="l1010"></a> }
|
|
<a name="l1011"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1012"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOBOUND_SWITCH</span><span class=cF0>:
|
|
<a name="l1013"></a> </span><span class=cFD>ICSwitch</span><span class=cF0>(tmpi,rip,</span><span class=cF3>TRUE</span><span class=cF0>,cc,buf,rip2);
|
|
<a name="l1014"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1015"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_SWITCH</span><span class=cF0>:
|
|
<a name="l1016"></a> </span><span class=cFD>ICSwitch</span><span class=cF0>(tmpi,rip,</span><span class=cF3>FALSE</span><span class=cF0>,cc,buf,rip2);
|
|
<a name="l1017"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1018"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOP1</span><span class=cF0>:
|
|
<a name="l1019"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOP2</span><span class=cF0>:
|
|
<a name="l1020"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpi);
|
|
<a name="l1021"></a> </span><span class=cF1>goto</span><span class=cF0> op789A_next;
|
|
<a name="l1022"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_START</span><span class=cF0>:
|
|
<a name="l1023"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_PUSH_REGS</span><span class=cF0>:
|
|
<a name="l1024"></a> </span><span class=cFD>ICPushRegs</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l1025"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1026"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_END</span><span class=cF0>:
|
|
<a name="l1027"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l1028"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->res.type.mode)
|
|
<a name="l1029"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l1030"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip2);
|
|
<a name="l1031"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1032"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_POP_REGS</span><span class=cF0>:
|
|
<a name="l1033"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,tmpi->ic_data);
|
|
<a name="l1034"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1035"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_PUSH_CMP</span><span class=cF0>:
|
|
<a name="l1036"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_END2</span><span class=cF0>:
|
|
<a name="l1037"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_END</span><span class=cF0>:
|
|
<a name="l1038"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_ADD_RSP1</span><span class=cF0>:
|
|
<a name="l1039"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1040"></a> </span><span class=cF1>default</span><span class=cF0>:
|
|
<a name="l1041"></a> </span><span class=cF6>"Pass:%d Missing IC hndlr\n"</span><span class=cF0>,cc->pass;
|
|
<a name="l1042"></a> </span><span class=cFD>ICPut</span><span class=cF0>(cc,tmpi);
|
|
<a name="l1043"></a> </span><span class=cF5>LexExcept</span><span class=cF0>(cc,</span><span class=cF6>"Compiler Optimization Error at "</span><span class=cF0>);
|
|
<a name="l1044"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1045"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->res.type.mode) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1046"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>) {
|
|
<a name="l1047"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_PUSH_CMP</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1048"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x242CDF); </span><span class=cF2>//FILD U64 [RSP]</span><span class=cF0>
|
|
<a name="l1049"></a> </span><span class=cFD>ICU24</span><span class=cF0>(tmpi,0x241CDD); </span><span class=cF2>//FSTP U64 [RSP]</span><span class=cF0>
|
|
<a name="l1050"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1051"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l1052"></a> </span><span class=cF3>FALSE</span><span class=cF0>,CN_RES,rip2);
|
|
<a name="l1053"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&tmpi->ic_flags,</span><span class=cF3>ICf_DONT_POP_FLOAT0</span><span class=cF0>+
|
|
<a name="l1054"></a> cc->cur_ic_float_op_num-1</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1055"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l1056"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip2);
|
|
<a name="l1057"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1058"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags & </span><span class=cF3>ICF_RES_TO_INT</span><span class=cF0>) {
|
|
<a name="l1059"></a> </span><span class=cFD>ICFCvt</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l1060"></a> </span><span class=cF3>TRUE</span><span class=cF0>,CN_RES,rip2);
|
|
<a name="l1061"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi->res.type,tmpi->res.</span><span class=cF1>reg</span><span class=cF0>,tmpi->res.disp,
|
|
<a name="l1062"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip2);
|
|
<a name="l1063"></a> }
|
|
<a name="l1064"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1065"></a> }
|
|
<a name="l1066"></a> cnt=tmpi->ic_cnt;
|
|
<a name="l1067"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_DEL_PREV_INS</span><span class=cF0>) {
|
|
<a name="l1068"></a> </span><span class=cF1>if</span><span class=cF0> (cc->pass>8)
|
|
<a name="l1069"></a> cnt=tmpi->ic_last_start;
|
|
<a name="l1070"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_DEL_PREV_INS</span><span class=cF0>;
|
|
<a name="l1071"></a> }
|
|
<a name="l1072"></a> </span><span class=cF1>if</span><span class=cF0> (cnt && buf)
|
|
<a name="l1073"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(buf+rip,tmpi->ic_body,cnt);
|
|
<a name="l1074"></a>op789A_skip_copy:
|
|
<a name="l1075"></a> </span><span class=cF1>if</span><span class=cF0> (dbg_info && cc->min_line<=tmpi->ic_line<=cc->max_line) {
|
|
<a name="l1076"></a> i=tmpi->ic_line-cc->min_line;
|
|
<a name="l1077"></a> </span><span class=cF1>if</span><span class=cF0> (!dbg_info->body[i])
|
|
<a name="l1078"></a> dbg_info->body[i]=rip2;
|
|
<a name="l1079"></a> }
|
|
<a name="l1080"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_PASS_TRACE</span><span class=cF0> &&
|
|
<a name="l1081"></a> </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&cc->saved_pass_trace,cc->pass</span><span class=cF7>)</span><span class=cF0> && cnt) {
|
|
<a name="l1082"></a> </span><span class=cF6>"$RED$"</span><span class=cF0>;
|
|
<a name="l1083"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1084"></a> </span><span class=cF5>Un</span><span class=cF0>(buf+rip,cnt,64);
|
|
<a name="l1085"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l1086"></a> </span><span class=cF5>Un</span><span class=cF0>(tmpi->ic_body,cnt,64);
|
|
<a name="l1087"></a> </span><span class=cF6>"$FG$"</span><span class=cF0>;
|
|
<a name="l1088"></a> }
|
|
<a name="l1089"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags&(</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>|</span><span class=cF3>ICF_DONT_RESTORE</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l1090"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(&tmpi->arg1,saved_arg1_arg2_r,3*</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CICArg</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l1091"></a> rip+=cnt;
|
|
<a name="l1092"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_cnt>=</span><span class=cF3>IC_BODY_SIZE</span><span class=cF0> && tmpi->ic_code!=</span><span class=cF3>IC_ASM</span><span class=cF0>)
|
|
<a name="l1093"></a> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF6>'Compiler'</span><span class=cF0>);
|
|
<a name="l1094"></a>op789A_next:
|
|
<a name="l1095"></a> tmpi=tmpi_next;
|
|
<a name="l1096"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1097"></a>
|
|
<a name="l1098"></a> lb=cc->coc.coc_next_misc;
|
|
<a name="l1099"></a> </span><span class=cF1>while</span><span class=cF0> (lb!=&cc->coc.coc_next_misc) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1100"></a> </span><span class=cF1>switch</span><span class=cF0> (lb->type) {
|
|
<a name="l1101"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CMT_STR_CONST</span><span class=cF0>:
|
|
<a name="l1102"></a> lb->addr=rip;
|
|
<a name="l1103"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1104"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(buf+rip,lb->str,lb->st_len);
|
|
<a name="l1105"></a> rip+=lb->st_len;
|
|
<a name="l1106"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1107"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CMT_JMP_TABLE</span><span class=cF0>:
|
|
<a name="l1108"></a> lb->addr=rip;
|
|
<a name="l1109"></a> ptr=buf+lb->addr;
|
|
<a name="l1110"></a> </span><span class=cF1>if</span><span class=cF0> (lb->flags&</span><span class=cF7>(</span><span class=cF3>CMF_I8_JMP_TABLE</span><span class=cF0>|</span><span class=cF3>CMF_U8_JMP_TABLE</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1111"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1112"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<lb->range;i++)
|
|
<a name="l1113"></a> *ptr++=lb->jmp_table[i]->addr-lb->begin->addr;
|
|
<a name="l1114"></a> rip+=lb->range;
|
|
<a name="l1115"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (lb->flags&</span><span class=cF7>(</span><span class=cF3>CMF_I16_JMP_TABLE</span><span class=cF0>|</span><span class=cF3>CMF_U16_JMP_TABLE</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1116"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1117"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<lb->range;i++)
|
|
<a name="l1118"></a> *ptr(</span><span class=cF9>U16</span><span class=cF0> *)++=lb->jmp_table[i]->addr-lb->begin->addr;
|
|
<a name="l1119"></a> rip+=lb->range<<1;
|
|
<a name="l1120"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1121"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1122"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<lb->range;i++) {
|
|
<a name="l1123"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>cc->flags&</span><span class=cF3>CCF_NO_ABSS</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1124"></a> tmpa=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTAbsAddr</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l1125"></a> tmpa->next=aotc->abss;
|
|
<a name="l1126"></a> tmpa->type=</span><span class=cF3>AAT_ADD_U32</span><span class=cF0>;
|
|
<a name="l1127"></a> aotc->abss=tmpa;
|
|
<a name="l1128"></a> tmpa->rip=aotc->rip+lb->addr+i<<2;
|
|
<a name="l1129"></a> *ptr(</span><span class=cF9>U32</span><span class=cF0> *)++=lb->jmp_table[i]->addr+aotc->rip;
|
|
<a name="l1130"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l1131"></a> *ptr(</span><span class=cF9>U32</span><span class=cF0> *)++=lb->jmp_table[i]->addr+buf;
|
|
<a name="l1132"></a> }
|
|
<a name="l1133"></a> rip+=lb->range<<2;
|
|
<a name="l1134"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1135"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1136"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CMT_FLOAT_CONSTS</span><span class=cF0>:
|
|
<a name="l1137"></a> lb->addr=rip;
|
|
<a name="l1138"></a> </span><span class=cF1>if</span><span class=cF0> (buf)
|
|
<a name="l1139"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(buf+lb->addr,lb->float_consts,lb->num_consts*</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l1140"></a> rip+=lb->num_consts*</span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF1>F64</span><span class=cF0>);
|
|
<a name="l1141"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l1142"></a> }
|
|
<a name="l1143"></a> lb=lb->next;
|
|
<a name="l1144"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1145"></a> </span><span class=cF1>if</span><span class=cF0> (dbg_info) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l1146"></a> </span><span class=cF1>if</span><span class=cF0> (cc->flags&</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
|
|
<a name="l1147"></a> dbg_info->body[num_lines]=rip+aotc->rip;
|
|
<a name="l1148"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l1149"></a> dbg_info->body[num_lines]=rip+buf;
|
|
<a name="l1150"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l1151"></a> </span><span class=cF1>return</span><span class=cF0> rip;
|
|
<a name="l1152"></a>}
|
|
</span></pre></body>
|
|
</html>
|