<!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>CCodeMisc</span><span class=cF0> *</span><span class=cFD>OptLabelFwd</span><span class=cF0>(</span><span class=cF9>CCodeMisc</span><span class=cF0> *lb) <a name="l2"></a>{ <a name="l3"></a> </span><span class=cF9>CCodeMisc</span><span class=cF0> *lb1; <a name="l4"></a> </span><span class=cF1>while</span><span class=cF0> (lb1=lb->fwd) <a name="l5"></a> lb=lb1; <a name="l6"></a> </span><span class=cF1>return</span><span class=cF0> lb; <a name="l7"></a>} <a name="l8"></a> <a name="l9"></a></span><span class=cF9>CHashClass</span><span class=cF0> *</span><span class=cF5>OptClassFwd</span><span class=cF0>(</span><span class=cF9>CHashClass</span><span class=cF0> *tmpc) <a name="l10"></a>{</span><span class=cF2>//Class forwarding for unions and subclasses.</span><span class=cF0> <a name="l11"></a> </span><span class=cF9>CHashClass</span><span class=cF0> *tmpc1; <a name="l12"></a> </span><span class=cF1>while</span><span class=cF0> (tmpc1=tmpc->fwd_class) <a name="l13"></a> tmpc=tmpc1; <a name="l14"></a> </span><span class=cF1>return</span><span class=cF0> tmpc; <a name="l15"></a>} <a name="l16"></a> <a name="l17"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l18"></a>{ <a name="l19"></a> tmpi->ic_code=</span><span class=cF3>IC_NOP1</span><span class=cF0>; <a name="l20"></a> tmpi->ic_flags=0; <a name="l21"></a> tmpi->arg1.type=</span><span class=cF3>MDF_NULL</span><span class=cF0>+tmpi->arg1.type.raw_type; <a name="l22"></a> tmpi->res.type =</span><span class=cF3>MDF_NULL</span><span class=cF0>+tmpi->res.type.raw_type; <a name="l23"></a>} <a name="l24"></a> <a name="l25"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>OptSetNOP2</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> stk_delta=1) <a name="l26"></a>{ <a name="l27"></a> tmpi->ic_code=</span><span class=cF3>IC_NOP2</span><span class=cF0>; <a name="l28"></a> tmpi->ic_data=stk_delta; <a name="l29"></a> tmpi->arg1.type=</span><span class=cF3>MDF_NULL</span><span class=cF0>+tmpi->arg1.type.raw_type; <a name="l30"></a> tmpi->res.type =</span><span class=cF3>MDF_NULL</span><span class=cF0>+tmpi->res.type.raw_type; <a name="l31"></a>} <a name="l32"></a> <a name="l33"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptFree</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l34"></a>{</span><span class=cF2>//We might access freed entries in CICTreeLinks</span><span class=cF0> <a name="l35"></a> </span><span class=cF5>QueRem</span><span class=cF0>(tmpi); <a name="l36"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpi); <a name="l37"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>; <a name="l38"></a>} <a name="l39"></a> <a name="l40"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptLag</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l41"></a>{ <a name="l42"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l43"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpi->ic_code) <a name="l44"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>; <a name="l45"></a> </span><span class=cF1>else</span><span class=cF0> <a name="l46"></a> tmpi=tmpi->last; <a name="l47"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (tmpi->ic_code<=</span><span class=cF3>IC_END_EXP</span><span class=cF0>); <a name="l48"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l49"></a>} <a name="l50"></a> <a name="l51"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptLag1</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l52"></a>{ <a name="l53"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l54"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpi->ic_code) <a name="l55"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>; <a name="l56"></a> </span><span class=cF1>else</span><span class=cF0> <a name="l57"></a> tmpi=tmpi->last; <a name="l58"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_NOP1</span><span class=cF0>||tmpi->ic_code==</span><span class=cF3>IC_NOP2</span><span class=cF0>); <a name="l59"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l60"></a>} <a name="l61"></a> <a name="l62"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptLag2</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l63"></a>{ <a name="l64"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l65"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpi->ic_code) <a name="l66"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>; <a name="l67"></a> </span><span class=cF1>else</span><span class=cF0> <a name="l68"></a> tmpi=tmpi->last; <a name="l69"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (tmpi->ic_code<</span><span class=cF3>IC_END_EXP</span><span class=cF0>); <a name="l70"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l71"></a>} <a name="l72"></a> <a name="l73"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptLead1</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l74"></a>{ <a name="l75"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l76"></a> tmpi=tmpi->next; <a name="l77"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpi->ic_code) <a name="l78"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>; <a name="l79"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_NOP1</span><span class=cF0>||tmpi->ic_code==</span><span class=cF3>IC_NOP2</span><span class=cF0>); <a name="l80"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l81"></a>} <a name="l82"></a> <a name="l83"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cFD>CmpOffset2Reg</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> </span><span class=cF1>offset</span><span class=cF0>,</span><span class=cF9>COptReg</span><span class=cF0> *reg_offsets) <a name="l84"></a>{ <a name="l85"></a> </span><span class=cF9>I64</span><span class=cF0> i; <a name="l86"></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="l87"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF1>offset</span><span class=cF0>==reg_offsets[i].</span><span class=cF1>offset</span><span class=cF0>) <a name="l88"></a> </span><span class=cF1>return</span><span class=cF0> i; <a name="l89"></a> </span><span class=cF1>return</span><span class=cF0> -1; <a name="l90"></a>} <a name="l91"></a> <a name="l92"></a>#</span><span class=cF1>define</span><span class=cF0> FBO1_NOT_CONST 0 <a name="l93"></a>#</span><span class=cF1>define</span><span class=cF0> FBO1_INT 1 <a name="l94"></a>#</span><span class=cF1>define</span><span class=cF0> FBO1_F64 2 <a name="l95"></a> <a name="l96"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cFD>OptFixupBinaryOp1</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi, <a name="l97"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi1,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi2, <a name="l98"></a> </span><span class=cF1>Bool</span><span class=cF0> *is_unsigned) <a name="l99"></a>{ <a name="l100"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpii; <a name="l101"></a> </span><span class=cF9>CHashClass</span><span class=cF0> *tmpc=tmpi->ic_class,*tmpc1,*tmpc2; <a name="l102"></a> <a name="l103"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_flags&</span><span class=cF3>ICF_RES_TO_INT</span><span class=cF0>) <a name="l104"></a> tmpc1=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_I64</span><span class=cF0>]; <a name="l105"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>) <a name="l106"></a> tmpc1=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]; <a name="l107"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l108"></a> tmpc1=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpi1->ic_class); <a name="l109"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l110"></a> <a name="l111"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi2->ic_flags&</span><span class=cF3>ICF_RES_TO_INT</span><span class=cF0>) <a name="l112"></a> tmpc2=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_I64</span><span class=cF0>]; <a name="l113"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi2->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>) <a name="l114"></a> tmpc2=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]; <a name="l115"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l116"></a> tmpc2=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpi2->ic_class); <a name="l117"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l118"></a> <a name="l119"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc1->raw_type>tmpc2->raw_type) <a name="l120"></a> tmpc=tmpi->ic_class=tmpc1; <a name="l121"></a> </span><span class=cF1>else</span><span class=cF0> <a name="l122"></a> tmpc=tmpi->ic_class=tmpc2; <a name="l123"></a> <a name="l124"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc->raw_type==</span><span class=cF3>RT_F64</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l125"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>) { <a name="l126"></a> tmpi1->ic_data(</span><span class=cF1>F64</span><span class=cF0>)=tmpi1->ic_data; <a name="l127"></a> tmpi1->ic_class=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]; <a name="l128"></a> tmpi1->ic_code=</span><span class=cF3>IC_IMM_F64</span><span class=cF0>; <a name="l129"></a> tmpi1->ic_flags&=~</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l130"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l131"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc1->raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0>) <a name="l132"></a> tmpi1->ic_flags|=</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l133"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi2->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>) { <a name="l134"></a> tmpi2->ic_data(</span><span class=cF1>F64</span><span class=cF0>)=tmpi2->ic_data; <a name="l135"></a> tmpi2->ic_class=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]; <a name="l136"></a> tmpi2->ic_code=</span><span class=cF3>IC_IMM_F64</span><span class=cF0>; <a name="l137"></a> tmpi2->ic_flags&=~</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l138"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l139"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc2->raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0>) <a name="l140"></a> tmpi2->ic_flags|=</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l141"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF3>IC_LESS</span><span class=cF0><=tmpi->ic_code<=</span><span class=cF3>IC_GREATER_EQU</span><span class=cF0> && </span><span class=cF7>(</span><span class=cF0>tmpii=</span><span class=cFD>OptLead1</span><span class=cF0>(tmpi)</span><span class=cF7>)</span><span class=cF0> && <a name="l142"></a> tmpii->ic_code!=</span><span class=cF3>IC_PUSH_CMP</span><span class=cF0> && tmpii->ic_code!=</span><span class=cF3>IC_AND_AND</span><span class=cF0>) { <a name="l143"></a></span><span class=cF2>//We are looking for float comparisons to zero to convert to int.</span><span class=cF0> <a name="l144"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF0> && !tmpi1->ic_data && <a name="l145"></a> tmpi2->ic_code==</span><span class=cF3>IC_DEREF</span><span class=cF0> && tmpc2==</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]) </span><span class=cF7>{</span><span class=cF0> <a name="l146"></a> tmpi1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>; <a name="l147"></a> </span><span class=cF1>goto</span><span class=cF0> fb_here1; <a name="l148"></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> (tmpi2->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF0> && !tmpi2->ic_data && <a name="l149"></a> tmpi1->ic_code==</span><span class=cF3>IC_DEREF</span><span class=cF0> && tmpc1==</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]) </span><span class=cF7>{</span><span class=cF0> <a name="l150"></a> tmpi2->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>; <a name="l151"></a>fb_here1: <a name="l152"></a> tmpi1->ic_flags&=~</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l153"></a> tmpi->ic_class=tmpi1->ic_class=tmpi2->ic_class= <a name="l154"></a> </span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_I64</span><span class=cF0>]; <a name="l155"></a> *is_unsigned=</span><span class=cF3>FALSE</span><span class=cF0>; <a name="l156"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_NOT_CONST; <a name="l157"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l158"></a> </span><span class=cF1>goto</span><span class=cF0> fb_here2; <a name="l159"></a> } </span><span class=cF1>else</span><span class=cF0> { <a name="l160"></a>fb_here2: <a name="l161"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF0> && tmpi2->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF0> && <a name="l162"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags&(</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0>|</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l163"></a> tmpi->ic_flags|=tmpi1->ic_flags|tmpi2->ic_flags; <a name="l164"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1); <a name="l165"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi2); <a name="l166"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_F64; <a name="l167"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> <a name="l168"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_NOT_CONST; <a name="l169"></a> } <a name="l170"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l171"></a> *is_unsigned=tmpc1->raw_type&</span><span class=cF3>RTF_UNSIGNED</span><span class=cF0> || tmpc2->raw_type&</span><span class=cF3>RTF_UNSIGNED</span><span class=cF0>; <a name="l172"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0> && tmpi2->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0> && <a name="l173"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags&(</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0>|</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l174"></a> tmpi->ic_flags|=tmpi1->ic_flags|tmpi2->ic_flags; <a name="l175"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1); <a name="l176"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi2); <a name="l177"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_INT; <a name="l178"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> <a name="l179"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_NOT_CONST; <a name="l180"></a>} <a name="l181"></a> <a name="l182"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cFD>OptFixupBinaryOp2</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> **tmpi1,</span><span class=cF9>CIntermediateCode</span><span class=cF0> **tmpi2) <a name="l183"></a>{ <a name="l184"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpii1=*tmpi1, <a name="l185"></a> *tmpii2=*tmpi2; <a name="l186"></a> </span><span class=cF1>if</span><span class=cF0> (tmpii1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>tmpii1->ic_flags & </span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0>) <a name="l187"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>; <a name="l188"></a> </span><span class=cF1>if</span><span class=cF0> (tmpii2->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>tmpii2->ic_flags & </span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l189"></a> *tmpi1=tmpii2; <a name="l190"></a> *tmpi2=tmpii1; <a name="l191"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>; <a name="l192"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l193"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>; <a name="l194"></a>} <a name="l195"></a> <a name="l196"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cFD>OptFixupUnaryOp</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi, </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi1, <a name="l197"></a> </span><span class=cF1>Bool</span><span class=cF0> *is_unsigned) <a name="l198"></a>{ <a name="l199"></a> </span><span class=cF9>CHashClass</span><span class=cF0> *tmpc,*tmpc1; <a name="l200"></a> tmpc1=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpi1->ic_class); <a name="l201"></a> tmpi->ic_class=tmpc1; <a name="l202"></a> tmpc=tmpi->ic_class; <a name="l203"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc->raw_type==</span><span class=cF3>RT_F64</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l204"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>) { <a name="l205"></a> tmpi1->ic_data(</span><span class=cF1>F64</span><span class=cF0>)=tmpi1->ic_data; <a name="l206"></a> tmpi1->ic_class=</span><span class=cFB>cmp</span><span class=cF0>.internal_types[</span><span class=cF3>RT_F64</span><span class=cF0>]; <a name="l207"></a> tmpi1->ic_code=</span><span class=cF3>IC_IMM_F64</span><span class=cF0>; <a name="l208"></a> tmpi1->ic_flags&=~</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l209"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l210"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc1->raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0>) <a name="l211"></a> tmpi1->ic_flags|=</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>; <a name="l212"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF0>) { <a name="l213"></a> tmpi->ic_flags|=tmpi1->ic_flags; <a name="l214"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1); <a name="l215"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_F64; <a name="l216"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l217"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_NOT_CONST; <a name="l218"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l219"></a> *is_unsigned=tmpc1->raw_type&</span><span class=cF3>RTF_UNSIGNED</span><span class=cF0>; <a name="l220"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_IMM_I64</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l221"></a> tmpi->ic_flags|=tmpi1->ic_flags; <a name="l222"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1); <a name="l223"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_INT; <a name="l224"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> <a name="l225"></a> </span><span class=cF1>return</span><span class=cF0> FBO1_NOT_CONST; <a name="l226"></a>} <a name="l227"></a> <a name="l228"></a></span><span class=cF1>extern</span><span class=cF0> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptBrNotZero</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi); <a name="l229"></a> <a name="l230"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptBrZero</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l231"></a>{ <a name="l232"></a> </span><span class=cF9>CCodeMisc</span><span class=cF0> *lb_true,*lb_false; <a name="l233"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpii=</span><span class=cFD>OptLag</span><span class=cF0>(tmpi),*tmpii2; <a name="l234"></a> </span><span class=cF1>switch</span><span class=cF0> (tmpii->ic_code) </span><span class=cF7>{</span><span class=cF0> <a name="l235"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOT</span><span class=cF0>: <a name="l236"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>; <a name="l237"></a> tmpi->ic_class=tmpii->ic_class; <a name="l238"></a> tmpi->ic_flags|=tmpii->ic_flags; <a name="l239"></a> tmpi->t.arg1_class=tmpii->t.arg1_class; <a name="l240"></a> tmpi->t.arg1_tree=tmpii->t.arg1_tree; <a name="l241"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpii); <a name="l242"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFD>OptBrNotZero</span><span class=cF0>(cc,tmpi); <a name="l243"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_EQU_EQU</span><span class=cF0>...</span><span class=cF3>IC_LESS_EQU</span><span class=cF0>: <a name="l244"></a> tmpi->ic_code=(tmpii->ic_code-</span><span class=cF3>IC_EQU_EQU</span><span class=cF0>)^1+</span><span class=cF3>IC_BR_EQU_EQU</span><span class=cF0>; <a name="l245"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l246"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OR_OR</span><span class=cF0>: <a name="l247"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_OR_OR_ZERO</span><span class=cF0>; <a name="l248"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l249"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND_AND</span><span class=cF0>: <a name="l250"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_AND_AND_ZERO</span><span class=cF0>; <a name="l251"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l252"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND</span><span class=cF0>: <a name="l253"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_AND_ZERO</span><span class=cF0>; <a name="l254"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l255"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MM_</span><span class=cF0>: <a name="l256"></a> </span><span class=cF1>if</span><span class=cF0> (cc->pass==2 && !</span><span class=cF7>(</span><span class=cF0>tmpii->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0> && <a name="l257"></a> tmpii->ic_class->raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0>) <a name="l258"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_MM_ZERO</span><span class=cF0>; <a name="l259"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l260"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CALL_END</span><span class=cF0>: <a name="l261"></a> tmpii2=</span><span class=cFD>OptLag</span><span class=cF0>(tmpii); <a name="l262"></a> </span><span class=cF1>switch</span><span class=cF0> (tmpii2->ic_code) { <a name="l263"></a> </span><span class=cF1>start</span><span class=cF0>: <a name="l264"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CARRY</span><span class=cF0>: <a name="l265"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_NOT_CARRY</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_BT</span><span class=cF0>: <a name="l268"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_NOT_BT</span><span class=cF0>; <a name="l269"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l270"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTS</span><span class=cF0>: <a name="l271"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l272"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTS</span><span class=cF0>: <a name="l273"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_NOT_BTS</span><span class=cF0>; <a name="l274"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l275"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTR</span><span class=cF0>: <a name="l276"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l277"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTR</span><span class=cF0>: <a name="l278"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_NOT_BTR</span><span class=cF0>; <a name="l279"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l280"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTC</span><span class=cF0>: <a name="l281"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l282"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTC</span><span class=cF0>: <a name="l283"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_NOT_BTC</span><span class=cF0>; <a name="l284"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l285"></a> </span><span class=cF1>end</span><span class=cF0>: <a name="l286"></a> tmpii2->ic_data=tmpi->ic_data; <a name="l287"></a> tmpii->ic_code=</span><span class=cF3>IC_CALL_END2</span><span class=cF0>; <a name="l288"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi); <a name="l289"></a> </span><span class=cF1>return</span><span class=cF0> tmpii; <a name="l290"></a> } <a name="l291"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l292"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l293"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code!=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l294"></a> tmpi->ic_class=tmpii->ic_class; <a name="l295"></a> tmpi->ic_flags|=tmpii->ic_flags; <a name="l296"></a> tmpi->t.arg1_class=tmpii->t.arg1_class; <a name="l297"></a> tmpi->t.arg2_class=tmpii->t.arg2_class; <a name="l298"></a> tmpi->t.arg1_tree=tmpii->t.arg1_tree; <a name="l299"></a> tmpi->t.arg2_tree=tmpii->t.arg2_tree; <a name="l300"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpii); <a name="l301"></a> <a name="l302"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0> && <a name="l303"></a> </span><span class=cF3>IC_BR_NOT_EQU</span><span class=cF0><=tmpi->ic_code<=</span><span class=cF3>IC_BR_LESS_EQU</span><span class=cF0> && <a name="l304"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF7>)</span><span class=cF0>) { <a name="l305"></a> tmpi->ic_code+=</span><span class=cF3>IC_BR_EQU_EQU2</span><span class=cF0>-</span><span class=cF3>IC_BR_EQU_EQU</span><span class=cF0>; <a name="l306"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0>; <a name="l307"></a> tmpii=tmpi->next; </span><span class=cF2>//IC_PUSH_CMP inst</span><span class=cF0> <a name="l308"></a> </span><span class=cF1>while</span><span class=cF0> (tmpii->ic_code!=</span><span class=cF3>IC_PUSH_CMP</span><span class=cF0>) <a name="l309"></a> tmpii=tmpii->next; <a name="l310"></a> tmpii->t.arg1_tree=tmpi; <a name="l311"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpii); <a name="l312"></a> } <a name="l313"></a> <a name="l314"></a> lb_true=tmpi->ic_data; <a name="l315"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_BR_AND_AND_ZERO</span><span class=cF0>) { <a name="l316"></a> tmpii=tmpi->t.arg1_tree->next; <a name="l317"></a> tmpii->ic_data=lb_true; <a name="l318"></a> tmpii->t.arg1_tree=tmpi->t.arg1_tree; <a name="l319"></a> tmpii->t.arg1_class=tmpi->t.arg1_class; <a name="l320"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>; <a name="l321"></a> </span><span class=cFD>OptBrZero</span><span class=cF0>(cc,tmpii); <a name="l322"></a> tmpii=tmpi->t.arg2_tree->next; <a name="l323"></a> tmpii->t.arg1_tree=tmpi->t.arg2_tree; <a name="l324"></a> tmpii->t.arg1_class=tmpi->t.arg2_class; <a name="l325"></a> tmpii->ic_data=lb_true; <a name="l326"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>; <a name="l327"></a> tmpii=</span><span class=cFD>OptBrZero</span><span class=cF0>(cc,tmpii); <a name="l328"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi); <a name="l329"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_BR_OR_OR_ZERO</span><span class=cF0>) { <a name="l330"></a> lb_false=</span><span class=cFD>COCMiscNew</span><span class=cF0>(cc,</span><span class=cF3>CMT_LABEL</span><span class=cF0>); <a name="l331"></a> tmpi->ic_code=</span><span class=cF3>IC_LABEL</span><span class=cF0>; <a name="l332"></a> tmpi->ic_flags=0; <a name="l333"></a> tmpi->ic_data=lb_false; <a name="l334"></a> tmpii=tmpi->t.arg1_tree->next; <a name="l335"></a> tmpii->t.arg1_tree=tmpi->t.arg1_tree; <a name="l336"></a> tmpii->t.arg1_class=tmpi->t.arg1_class; <a name="l337"></a> tmpii->ic_data=lb_false; <a name="l338"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>; <a name="l339"></a> </span><span class=cFD>OptBrNotZero</span><span class=cF0>(cc,tmpii); <a name="l340"></a> tmpii=tmpi->t.arg2_tree->next; <a name="l341"></a> tmpii->t.arg1_tree=tmpi->t.arg2_tree; <a name="l342"></a> tmpii->t.arg1_class=tmpi->t.arg2_class; <a name="l343"></a> tmpii->ic_data=lb_true; <a name="l344"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>; <a name="l345"></a> tmpii=</span><span class=cFD>OptBrZero</span><span class=cF0>(cc,tmpii); <a name="l346"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l347"></a> tmpii=tmpi; <a name="l348"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_POP_CMP</span><span class=cF0> && tmpi->t.arg1_tree->ic_code==</span><span class=cF3>IC_NOP1</span><span class=cF0>) { <a name="l349"></a> tmpi->t.arg1_tree=tmpi->t.arg1_tree->t.arg1_tree; <a name="l350"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>; <a name="l351"></a> } <a name="l352"></a> </span><span class=cF1>return</span><span class=cF0> tmpii; <a name="l353"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l354"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l355"></a>} <a name="l356"></a> <a name="l357"></a></span><span class=cF9>CIntermediateCode</span><span class=cF0> *</span><span class=cFD>OptBrNotZero</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi) <a name="l358"></a>{ <a name="l359"></a> </span><span class=cF9>CCodeMisc</span><span class=cF0> *lb_true,*lb_false; <a name="l360"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpii=</span><span class=cFD>OptLag</span><span class=cF0>(tmpi),*tmpii2; <a name="l361"></a> </span><span class=cF1>switch</span><span class=cF0> (tmpii->ic_code) </span><span class=cF7>{</span><span class=cF0> <a name="l362"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_NOT</span><span class=cF0>: <a name="l363"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>; <a name="l364"></a> tmpi->ic_class=tmpii->ic_class; <a name="l365"></a> tmpi->ic_flags|=tmpii->ic_flags; <a name="l366"></a> tmpi->t.arg1_class=tmpii->t.arg1_class; <a name="l367"></a> tmpi->t.arg1_tree=tmpii->t.arg1_tree; <a name="l368"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpii); <a name="l369"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFD>OptBrZero</span><span class=cF0>(cc,tmpi); <a name="l370"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_EQU_EQU</span><span class=cF0>...</span><span class=cF3>IC_LESS_EQU</span><span class=cF0>: <a name="l371"></a> tmpi->ic_code=tmpii->ic_code+</span><span class=cF3>IC_BR_EQU_EQU</span><span class=cF0>-</span><span class=cF3>IC_EQU_EQU</span><span class=cF0>; <a name="l372"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l373"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_OR_OR</span><span class=cF0>: <a name="l374"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_OR_OR_NOT_ZERO</span><span class=cF0>; <a name="l375"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l376"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND_AND</span><span class=cF0>: <a name="l377"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_AND_AND_NOT_ZERO</span><span class=cF0>; <a name="l378"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l379"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_AND</span><span class=cF0>: <a name="l380"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_AND_NOT_ZERO</span><span class=cF0>; <a name="l381"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l382"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_MM_</span><span class=cF0>: <a name="l383"></a> </span><span class=cF1>if</span><span class=cF0> (cc->pass==2 && !</span><span class=cF7>(</span><span class=cF0>tmpii->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0> && <a name="l384"></a> tmpii->ic_class->raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0>) <a name="l385"></a> tmpi->ic_code=</span><span class=cF3>IC_BR_MM_NOT_ZERO</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_CALL_END</span><span class=cF0>: <a name="l388"></a> tmpii2=</span><span class=cFD>OptLag</span><span class=cF0>(tmpii); <a name="l389"></a> </span><span class=cF1>switch</span><span class=cF0> (tmpii2->ic_code) { <a name="l390"></a> </span><span class=cF1>start</span><span class=cF0>: <a name="l391"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_CARRY</span><span class=cF0>: <a name="l392"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_CARRY</span><span class=cF0>; <a name="l393"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l394"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BT</span><span class=cF0>: <a name="l395"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_BT</span><span class=cF0>; <a name="l396"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l397"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTS</span><span class=cF0>: <a name="l398"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l399"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTS</span><span class=cF0>: <a name="l400"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_BTS</span><span class=cF0>; <a name="l401"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l402"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTR</span><span class=cF0>: <a name="l403"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l404"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTR</span><span class=cF0>: <a name="l405"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_BTR</span><span class=cF0>; <a name="l406"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l407"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_LBTC</span><span class=cF0>: <a name="l408"></a> tmpii2->ic_flags|=</span><span class=cF3>ICF_LOCK</span><span class=cF0>; <a name="l409"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>IC_BTC</span><span class=cF0>: <a name="l410"></a> tmpii2->ic_code=</span><span class=cF3>IC_BR_BTC</span><span class=cF0>; <a name="l411"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l412"></a> </span><span class=cF1>end</span><span class=cF0>: <a name="l413"></a> tmpii2->ic_data=tmpi->ic_data; <a name="l414"></a> tmpii->ic_code=</span><span class=cF3>IC_CALL_END2</span><span class=cF0>; <a name="l415"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi); <a name="l416"></a> </span><span class=cF1>return</span><span class=cF0> tmpii; <a name="l417"></a> } <a name="l418"></a> </span><span class=cF1>break</span><span class=cF0>; <a name="l419"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l420"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code!=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l421"></a> tmpi->ic_class=tmpii->ic_class; <a name="l422"></a> tmpi->ic_flags|=tmpii->ic_flags; <a name="l423"></a> tmpi->t.arg1_class=tmpii->t.arg1_class; <a name="l424"></a> tmpi->t.arg2_class=tmpii->t.arg2_class; <a name="l425"></a> tmpi->t.arg1_tree=tmpii->t.arg1_tree; <a name="l426"></a> tmpi->t.arg2_tree=tmpii->t.arg2_tree; <a name="l427"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpii); <a name="l428"></a> <a name="l429"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0> && <a name="l430"></a> </span><span class=cF3>IC_BR_NOT_EQU</span><span class=cF0><=tmpi->ic_code<=</span><span class=cF3>IC_BR_LESS_EQU</span><span class=cF0> && <a name="l431"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi->ic_flags&</span><span class=cF3>ICF_USE_F64</span><span class=cF7>)</span><span class=cF0>) { <a name="l432"></a> tmpi->ic_code+=</span><span class=cF3>IC_BR_EQU_EQU2</span><span class=cF0>-</span><span class=cF3>IC_BR_EQU_EQU</span><span class=cF0>; <a name="l433"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0>; <a name="l434"></a> tmpii=tmpi->next; </span><span class=cF2>//IC_PUSH_CMP inst</span><span class=cF0> <a name="l435"></a> </span><span class=cF1>while</span><span class=cF0> (tmpii->ic_code!=</span><span class=cF3>IC_PUSH_CMP</span><span class=cF0>) <a name="l436"></a> tmpii=tmpii->next; <a name="l437"></a> tmpii->t.arg1_tree=tmpi; <a name="l438"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpii); <a name="l439"></a> } <a name="l440"></a> <a name="l441"></a> lb_true=tmpi->ic_data; <a name="l442"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_BR_OR_OR_NOT_ZERO</span><span class=cF0>) { <a name="l443"></a> tmpii=tmpi->t.arg1_tree->next; <a name="l444"></a> tmpii->t.arg1_tree=tmpi->t.arg1_tree; <a name="l445"></a> tmpii->t.arg1_class=tmpi->t.arg1_class; <a name="l446"></a> tmpii->ic_data=lb_true; <a name="l447"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>; <a name="l448"></a> </span><span class=cFD>OptBrNotZero</span><span class=cF0>(cc,tmpii); <a name="l449"></a> tmpii=tmpi->t.arg2_tree->next; <a name="l450"></a> tmpii->t.arg1_tree=tmpi->t.arg2_tree; <a name="l451"></a> tmpii->t.arg1_class=tmpi->t.arg2_class; <a name="l452"></a> tmpii->ic_data=lb_true; <a name="l453"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>; <a name="l454"></a> tmpii=</span><span class=cFD>OptBrNotZero</span><span class=cF0>(cc,tmpii); <a name="l455"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi); <a name="l456"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_code==</span><span class=cF3>IC_BR_AND_AND_NOT_ZERO</span><span class=cF0>) { <a name="l457"></a> lb_false=</span><span class=cFD>COCMiscNew</span><span class=cF0>(cc,</span><span class=cF3>CMT_LABEL</span><span class=cF0>); <a name="l458"></a> tmpi->ic_code=</span><span class=cF3>IC_LABEL</span><span class=cF0>; <a name="l459"></a> tmpi->ic_flags=0; <a name="l460"></a> tmpi->ic_data=lb_false; <a name="l461"></a> tmpii=tmpi->t.arg1_tree->next; <a name="l462"></a> tmpii->t.arg1_tree=tmpi->t.arg1_tree; <a name="l463"></a> tmpii->t.arg1_class=tmpi->t.arg1_class; <a name="l464"></a> tmpii->ic_data=lb_false; <a name="l465"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_ZERO</span><span class=cF0>; <a name="l466"></a> </span><span class=cFD>OptBrZero</span><span class=cF0>(cc,tmpii); <a name="l467"></a> tmpii=tmpi->t.arg2_tree->next; <a name="l468"></a> tmpii->t.arg1_tree=tmpi->t.arg2_tree; <a name="l469"></a> tmpii->t.arg1_class=tmpi->t.arg2_class; <a name="l470"></a> tmpii->ic_data=lb_true; <a name="l471"></a> tmpii->ic_code=</span><span class=cF3>IC_BR_NOT_ZERO</span><span class=cF0>; <a name="l472"></a> tmpii=</span><span class=cFD>OptBrNotZero</span><span class=cF0>(cc,tmpii); <a name="l473"></a> } </span><span class=cF1>else</span><span class=cF0> <a name="l474"></a> tmpii=tmpi; <a name="l475"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi->ic_flags&</span><span class=cF3>ICF_POP_CMP</span><span class=cF0> && tmpi->t.arg1_tree->ic_code==</span><span class=cF3>IC_NOP1</span><span class=cF0>) { <a name="l476"></a> tmpi->t.arg1_tree=tmpi->t.arg1_tree->t.arg1_tree; <a name="l477"></a> tmpi->ic_flags&=~</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>; <a name="l478"></a> } <a name="l479"></a> </span><span class=cF1>return</span><span class=cF0> tmpii; <a name="l480"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l481"></a> </span><span class=cF1>return</span><span class=cF0> tmpi; <a name="l482"></a>} <a name="l483"></a> <a name="l484"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>OptFixSizeOf</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi1, <a name="l485"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi_push,</span><span class=cF9>CHashClass</span><span class=cF0> *tmpcc) <a name="l486"></a>{ <a name="l487"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi1->ic_code==</span><span class=cF3>IC_MUL</span><span class=cF0> && tmpi1->t.arg2_tree->ic_code==</span><span class=cF3>IC_SIZEOF</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0> <a name="l488"></a> tmpi1->t.arg2_tree->ic_code=</span><span class=cF3>IC_IMM_I64</span><span class=cF0>; <a name="l489"></a> tmpi1->t.arg2_tree->ic_class=tmpcc; <a name="l490"></a> tmpi_push->ic_class=tmpcc; <a name="l491"></a> </span><span class=cF1>if</span><span class=cF0> (tmpcc->ptr_stars_cnt) { <a name="l492"></a> tmpcc--; <a name="l493"></a> </span><span class=cF1>if</span><span class=cF0> (tmpcc->size==1) <a name="l494"></a> </span><span class=cF1>goto</span><span class=cF0> here; <a name="l495"></a> tmpi1->t.arg2_tree->ic_data=tmpcc->size; <a name="l496"></a> } </span><span class=cF1>else</span><span class=cF0> { <a name="l497"></a>here: <a name="l498"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi_push==tmpi1) <a name="l499"></a> tmpi1->t.arg2_tree->ic_data=1; <a name="l500"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0> <a name="l501"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1->t.arg2_tree); <a name="l502"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi1); <a name="l503"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l504"></a> } <a name="l505"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l506"></a>} <a name="l507"></a> <a name="l508"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cFD>CmpRawType</span><span class=cF0>(</span><span class=cF9>CHashClass</span><span class=cF0> *tmpc) <a name="l509"></a>{ <a name="l510"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc) </span><span class=cF7>{</span><span class=cF0> <a name="l511"></a> tmpc=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpc); <a name="l512"></a> </span><span class=cF1>return</span><span class=cF0> tmpc->raw_type; <a name="l513"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l514"></a> </span><span class=cF1>return</span><span class=cF0> 0; <a name="l515"></a>} <a name="l516"></a> <a name="l517"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cFD>CmpRawTypePointed</span><span class=cF0>(</span><span class=cF9>CHashClass</span><span class=cF0> *tmpc) <a name="l518"></a>{ <a name="l519"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc) </span><span class=cF7>{</span><span class=cF0> <a name="l520"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc->ptr_stars_cnt) <a name="l521"></a> tmpc--; <a name="l522"></a> tmpc=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpc); <a name="l523"></a> </span><span class=cF1>return</span><span class=cF0> tmpc->raw_type; <a name="l524"></a> </span><span class=cF7>}</span><span class=cF0> <a name="l525"></a> </span><span class=cF1>return</span><span class=cF0> 0; <a name="l526"></a>} <a name="l527"></a> <a name="l528"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>CmpMinTypePointed</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> pt1) <a name="l529"></a>{ <a name="l530"></a> </span><span class=cF9>I64</span><span class=cF0> pt; <a name="l531"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>pt=tmpi->arg1_type_pointed_to</span><span class=cF7>)</span><span class=cF0> && pt!=</span><span class=cF3>RT_F64</span><span class=cF0> && 0<pt1<pt) <a name="l532"></a> tmpi->arg1_type_pointed_to=pt; <a name="l533"></a>} <a name="l534"></a> <a name="l535"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>CmpF1PushPop</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi2) <a name="l536"></a>{ <a name="l537"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi2->ic_code].fpop|| <a name="l538"></a> tmpi2->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>) <a name="l539"></a> </span><span class=cF5>Bts</span><span class=cF0>(&tmpi->ic_flags,</span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>); <a name="l540"></a>} <a name="l541"></a> <a name="l542"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>CmpF2PushPop</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi, <a name="l543"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi1,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi2) <a name="l544"></a>{ <a name="l545"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>tmpi2->ic_code==</span><span class=cF3>IC_MOV</span><span class=cF0> || tmpi2->ic_code==</span><span class=cF3>IC_IMM_F64</span><span class=cF7>)</span><span class=cF0> && <a name="l546"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi2->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0> && <a name="l547"></a> </span><span class=cF7>(</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi1->ic_code].fpop || <a name="l548"></a> tmpi1->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0>) <a name="l549"></a> </span><span class=cF5>Bts</span><span class=cF0>(&tmpi->ic_flags,</span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>); <a name="l550"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi2->ic_code].fpop || <a name="l551"></a> tmpi2->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0>&& <a name="l552"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi1->ic_flags&</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF7>)</span><span class=cF0>) <a name="l553"></a> </span><span class=cF5>Bts</span><span class=cF0>(&tmpi->ic_flags,</span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>); <a name="l554"></a>} <a name="l555"></a> <a name="l556"></a></span><span class=cF1>class</span><span class=cF0> COptMemberVar <a name="l557"></a>{ <a name="l558"></a> </span><span class=cF9>I64</span><span class=cF0> score,offset_start,offset_end,lea_balance; <a name="l559"></a> </span><span class=cF9>CMemberLst</span><span class=cF0> *m; <a name="l560"></a>}; <a name="l561"></a> <a name="l562"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cFD>OptMVCompare</span><span class=cF0>(COptMemberVar *mv1,COptMemberVar *mv2) <a name="l563"></a>{ <a name="l564"></a> </span><span class=cF1>return</span><span class=cF0> mv2->score-mv1->score; <a name="l565"></a>} </span></pre></body> </html>