Changeset 66 in dev for BasicCompiler64/stack_frame.cpp
- Timestamp:
- Mar 9, 2007, 4:59:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/stack_frame.cpp
r64 r66 70 70 return now_sp; 71 71 } 72 void CStackFrame::push(int xmm_reg,int var _size){72 void CStackFrame::push(int xmm_reg,int varSize){ 73 73 now_sp-=sizeof(_int64); 74 74 if(lowest_sp>now_sp) lowest_sp=now_sp; 75 75 76 if(var _size==sizeof(double)){76 if(varSize==sizeof(double)){ 77 77 //movlpd qword ptr[rsp+offset],xmm_reg 78 78 op_movlpd_MR(xmm_reg,REG_RSP,now_sp,MOD_BASE_DISP32); 79 79 } 80 if(var _size==sizeof(float)){80 if(varSize==sizeof(float)){ 81 81 //movss dword ptr[rsp+offset],xmm_reg 82 82 OpBuffer[obp++]=(char)0xF3; … … 106 106 ref_offset_data( reg, now_sp ); 107 107 } 108 void CStackFrame::ref(int xmm_reg,int var _size){109 if(var _size==sizeof(double)){108 void CStackFrame::ref(int xmm_reg,int varSize){ 109 if(varSize==sizeof(double)){ 110 110 //movlpd xmm_reg,qword ptr[rsp+offset] 111 111 op_movlpd_RM(xmm_reg,REG_RSP,now_sp,MOD_BASE_DISP32); 112 112 } 113 if(var _size==sizeof(float)){113 if(varSize==sizeof(float)){ 114 114 //movss xmm_reg,dword ptr[rsp+offset] 115 115 OpBuffer[obp++]=(char)0xF3; … … 132 132 now_sp+=sizeof(_int64); 133 133 } 134 void CStackFrame::pop(int xmm_reg,int var _size){135 ref(xmm_reg,var _size);134 void CStackFrame::pop(int xmm_reg,int varSize){ 135 ref(xmm_reg,varSize); 136 136 137 137 now_sp+=sizeof(_int64);
Note:
See TracChangeset
for help on using the changeset viewer.