Changeset 66 in dev for BasicCompiler64/Compile_Calc_PushVar.cpp
- Timestamp:
- Mar 9, 2007, 4:59:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Calc_PushVar.cpp
r62 r66 174 174 175 175 void SetReg_WholeVariable(int type,RELATIVE_VAR *pRelativeVar,int reg){ 176 int var _size;177 178 var _size=GetTypeSize(type,-1);176 int varSize; 177 178 varSize=GetTypeSize(type,-1); 179 179 180 180 if(pRelativeVar->dwKind==VAR_GLOBAL){ 181 181 if(pRelativeVar->bOffsetOffset){ 182 182 //mov reg, ptr[r11+offset] 183 op_mov_RM(var _size,reg,REG_R11,(int)pRelativeVar->offset,MOD_BASE_DISP32);183 op_mov_RM(varSize,reg,REG_R11,(int)pRelativeVar->offset,MOD_BASE_DISP32); 184 184 obp-=sizeof(long); 185 185 pobj_GlobalVarSchedule->add(); … … 188 188 else{ 189 189 //mov reg, ptr[offset] 190 op_mov_RM(var _size,reg,0,(int)pRelativeVar->offset,MOD_DISP32);190 op_mov_RM(varSize,reg,0,(int)pRelativeVar->offset,MOD_DISP32); 191 191 obp-=sizeof(long); 192 192 pobj_GlobalVarSchedule->add(); … … 215 215 if(pRelativeVar->bOffsetOffset){ 216 216 //mov reg, ptr[rsp+r11+offset] 217 op_mov_RM_ex(var _size,reg,REG_RSP,REG_R11,(int)pRelativeVar->offset,USE_OFFSET);217 op_mov_RM_ex(varSize,reg,REG_RSP,REG_R11,(int)pRelativeVar->offset,USE_OFFSET); 218 218 obp-=sizeof(long); 219 219 AddLocalVarAddrSchedule(); … … 222 222 else{ 223 223 //mov reg, ptr[rsp+offset] 224 op_mov_RM(var _size,reg,REG_RSP,(int)pRelativeVar->offset,MOD_BASE_DISP32);224 op_mov_RM(varSize,reg,REG_RSP,(int)pRelativeVar->offset,MOD_BASE_DISP32); 225 225 obp-=sizeof(long); 226 226 AddLocalVarAddrSchedule(); … … 249 249 directmem: 250 250 //mov reg, ptr[r11] 251 op_mov_RM(var _size,reg,REG_R11,0,MOD_BASE);251 op_mov_RM(varSize,reg,REG_R11,0,MOD_BASE); 252 252 } 253 253 }
Note:
See TracChangeset
for help on using the changeset viewer.