Changeset 66 in dev for BasicCompiler64/Compile_Set_Var.cpp
- Timestamp:
- Mar 9, 2007, 4:59:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Set_Var.cpp
r64 r66 333 333 SetWholeVariable( sizeof(char), DEF_BYTE, pRelative); 334 334 } 335 void SetWholeVariable(int var _size,int type,RELATIVE_VAR *pRelative){335 void SetWholeVariable(int varSize,int type,RELATIVE_VAR *pRelative){ 336 336 if(type==DEF_DOUBLE){ 337 337 //Double型 … … 349 349 //その他の整数 350 350 351 if(var _size==sizeof(_int64)){351 if(varSize==sizeof(_int64)){ 352 352 //レジスタの値を64ビット(rax)に拡張する 353 353 ExtendTypeTo64(type,REG_RAX); 354 354 } 355 else if(var _size==sizeof(long)){355 else if(varSize==sizeof(long)){ 356 356 //レジスタの値を32ビット(eax)に拡張する 357 357 ExtendTypeTo32(type,REG_RAX); 358 358 } 359 else if(var _size==sizeof(short)){359 else if(varSize==sizeof(short)){ 360 360 //レジスタの値を16ビット(ax)に拡張する 361 361 ExtendTypeTo16(type,REG_RAX); … … 367 367 if(pRelative->bOffsetOffset){ 368 368 //mov ptr[r11+offset],rax/eax/ax/al 369 op_mov_MR(var _size,REG_RAX,REG_R11,(int)pRelative->offset,MOD_BASE_DISP32);369 op_mov_MR(varSize,REG_RAX,REG_R11,(int)pRelative->offset,MOD_BASE_DISP32); 370 370 obp-=sizeof(long); 371 371 pobj_GlobalVarSchedule->add(); … … 374 374 else{ 375 375 //mov ptr[offset],rax/eax/ax/al 376 op_mov_MR(var _size,REG_RAX,0,(int)pRelative->offset,MOD_DISP32);376 op_mov_MR(varSize,REG_RAX,0,(int)pRelative->offset,MOD_DISP32); 377 377 obp-=sizeof(long); 378 378 pobj_GlobalVarSchedule->add(); … … 401 401 if(pRelative->bOffsetOffset){ 402 402 //mov ptr[rsp+r11+offset],rax/eax/ax/al 403 op_mov_MR_ex(var _size,REG_RAX,REG_RSP,REG_R11,(int)pRelative->offset,USE_OFFSET);403 op_mov_MR_ex(varSize,REG_RAX,REG_RSP,REG_R11,(int)pRelative->offset,USE_OFFSET); 404 404 obp-=sizeof(long); 405 405 AddLocalVarAddrSchedule(); … … 408 408 else{ 409 409 //mov ptr[rsp+offset],rax/eax/ax/al 410 op_mov_MR(var _size,REG_RAX,REG_RSP,(int)pRelative->offset,MOD_BASE_DISP32);410 op_mov_MR(varSize,REG_RAX,REG_RSP,(int)pRelative->offset,MOD_BASE_DISP32); 411 411 obp-=sizeof(long); 412 412 AddLocalVarAddrSchedule(); … … 436 436 437 437 //mov ptr[r11],rax/eax/ax/al 438 op_mov_MR(var _size,REG_RAX,REG_R11,0,MOD_BASE);439 } 440 } 438 op_mov_MR(varSize,REG_RAX,REG_R11,0,MOD_BASE); 439 } 440 }
Note:
See TracChangeset
for help on using the changeset viewer.