Changeset 357 in dev for trunk/abdev/BasicCompiler64/CodeGenerator.cpp
- Timestamp:
- Nov 5, 2007, 3:26:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/CodeGenerator.cpp
r317 r357 157 157 /////////////////// 158 158 159 void CodeGenerator::op_mov_RV(int op_size,int reg,long i32data, Schedule::Type scheduleType ){159 const PertialSchedule *CodeGenerator::op_mov_RV(int op_size,int reg,long i32data, Schedule::Type scheduleType, bool isPertialSchedule ){ 160 160 //mov reg,i32data 161 161 … … 176 176 177 177 //即値 178 const PertialSchedule *pPertialSchedule = NULL; 179 if( isPertialSchedule ) 180 { 181 pertialSchedules.push_back( new PertialSchedule( pNativeCode->GetSize(), sizeof(long) ) ); 182 pPertialSchedule = pertialSchedules.back(); 183 } 178 184 pNativeCode->PutEx( i32data, scheduleType ); 179 } 180 void CodeGenerator::op_mov_RV64(int reg,_int64 i64data){ 185 186 return pPertialSchedule; 187 } 188 const PertialSchedule *CodeGenerator::op_mov_RV64( int reg, _int64 i64data, bool isPertialSchedule ) 189 { 181 190 //mov reg,i64data 182 191 … … 188 197 189 198 //即値 199 const PertialSchedule *pPertialSchedule = NULL; 200 if( isPertialSchedule ) 201 { 202 pertialSchedules.push_back( new PertialSchedule( pNativeCode->GetSize(), sizeof(_int64) ) ); 203 pPertialSchedule = pertialSchedules.back(); 204 } 190 205 pNativeCode->Put( i64data ); 206 207 return pPertialSchedule; 191 208 } 192 209 const PertialSchedule *CodeGenerator::op_mov_RM(int op_size,int reg,int base_reg,long offset,char mod, Schedule::Type scheduleType, bool isPertialSchedule ){
Note:
See TracChangeset
for help on using the changeset viewer.