Ignore:
Timestamp:
Jul 27, 2007, 4:20:59 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler64/Compile_Var.cpp

    r242 r243  
    999999
    10001000        //mov dword ptr[rsp+offset],value
    1001         compiler.codeGenerator.op_mov_MV(sizeof(long),REG_RSP,offset,USE_OFFSET,*(int *)&flt);
    1002         obp-=sizeof(long)+sizeof(long);
    1003         AddLocalVarAddrSchedule();
    1004         obp+=sizeof(long)+sizeof(long);
     1001        compiler.codeGenerator.op_mov_MV(sizeof(long),REG_RSP,offset, Schedule::LocalVar, USE_OFFSET,*(int *)&flt);
    10051002    }
    10061003    else if( type.Is64() || type.IsPointer() ){
     
    10291026            else{
    10301027                //mov qword ptr[rsp+offset],value
    1031                 compiler.codeGenerator.op_mov_MV(sizeof(_int64),REG_RSP,offset,USE_OFFSET,(int)i64data);
    1032                 obp-=sizeof(long)+sizeof(long);
    1033                 AddLocalVarAddrSchedule();
    1034                 obp+=sizeof(long)+sizeof(long);
     1028                compiler.codeGenerator.op_mov_MV(sizeof(_int64),REG_RSP,offset, Schedule::LocalVar, USE_OFFSET,(int)i64data);
    10351029            }
    10361030        }
     
    10381032    else if( type.IsDWord() || type.IsLong() ){
    10391033        //mov dword ptr[rsp+offset],value
    1040         compiler.codeGenerator.op_mov_MV(sizeof(long),REG_RSP,offset,USE_OFFSET,(int)i64data);
    1041         obp-=sizeof(long)+sizeof(long);
    1042         AddLocalVarAddrSchedule();
    1043         obp+=sizeof(long)+sizeof(long);
     1034        compiler.codeGenerator.op_mov_MV(sizeof(long),REG_RSP,offset, Schedule::LocalVar,USE_OFFSET,(int)i64data);
    10441035    }
    10451036    else if( type.IsWord() || type.IsInteger() ){
    10461037        //mov word ptr[rsp+offset],value
    1047         compiler.codeGenerator.op_mov_MV(sizeof(short),REG_RSP,offset,USE_OFFSET,(int)i64data);
    1048         obp-=sizeof(long)+sizeof(short);
    1049         AddLocalVarAddrSchedule();
    1050         obp+=sizeof(long)+sizeof(short);
     1038        compiler.codeGenerator.op_mov_MV(sizeof(short),REG_RSP,offset, Schedule::LocalVar,USE_OFFSET,(int)i64data);
    10511039    }
    10521040    else if( type.IsSByte() || type.IsByte() || type.IsBoolean() ){
    10531041        //mov byte ptr[rsp+offset],value
    1054         compiler.codeGenerator.op_mov_MV(sizeof(char),REG_RSP,offset,USE_OFFSET,(int)i64data);
    1055         obp-=sizeof(long)+sizeof(char);
    1056         AddLocalVarAddrSchedule();
    1057         obp+=sizeof(long)+sizeof(char);
     1042        compiler.codeGenerator.op_mov_MV(sizeof(char),REG_RSP,offset, Schedule::LocalVar,USE_OFFSET,(int)i64data);
    10581043    }
    10591044    return true;
Note: See TracChangeset for help on using the changeset viewer.