Changeset 242 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Jul 27, 2007, 3:40:33 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/PESchedule.cpp
r223 r242 232 232 233 233 CSubAddrSchedule *pobj_SubAddrSchedule; 234 235 236 237 238 /////////////////////////////////////////239 // 一時スケジューリングポインタ240 /////////////////////////////////////////241 CTempSchedule::CTempSchedule(){242 ppObpValues=(int **)HeapAlloc(hHeap,0,1);243 num=0;244 }245 CTempSchedule::~CTempSchedule(){246 HeapDefaultFree(ppObpValues);247 }248 void CTempSchedule::lock(int *pobp){249 ppObpValues=(int **)HeapReAlloc(hHeap,0,ppObpValues,(num+1)*sizeof(int *));250 ppObpValues[num]=pobp;251 num++;252 }253 void CTempSchedule::unlock(){254 if( num <= 0 ){255 //エラー256 SetError(300,NULL,cp);257 }258 num--;259 }260 void CTempSchedule::move(int iStartPos,int iSize,int offset){261 int i;262 for(i=0;i<num;i++){263 if(iStartPos<=*ppObpValues[i] && *ppObpValues[i]<iStartPos+iSize){264 (*ppObpValues[i])+=offset;265 }266 }267 }268 269 CTempSchedule *pobj_TempSchedule;270 271 272 273 -
trunk/abdev/BasicCompiler_Common/PESchedule.h
r223 r242 94 94 95 95 96 /////////////////////////////////////97 // 一時スケジューリングポインタ98 /////////////////////////////////////99 class CTempSchedule{100 int **ppObpValues;101 int num;102 public:103 CTempSchedule();104 ~CTempSchedule();105 106 void lock(int *pobp);107 void unlock();108 void move(int iStartPos,int iSize,int offset);109 };110 extern CTempSchedule *pobj_TempSchedule;111 112 113 96 void NativeBuffer_StaticRelocation(int iStartPos,int iSize,int offset); -
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r241 r242 304 304 305 305 306 void PutOld( long l, Schedule::Type scheduleType ) 307 { 308 pNativeCode->Put( l, scheduleType ); 309 } 306 310 307 311 void PutOld( char c1, char c2 )
Note:
See TracChangeset
for help on using the changeset viewer.