Changeset 245 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Jul 27, 2007, 8:02:22 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r244 r245 52 52 53 53 private: 54 55 54 // 部分スケジュールの管理 56 typedef std::vector< PertialSchedule *> PertialSchedules;55 typedef std::vector<const PertialSchedule *> PertialSchedules; 57 56 PertialSchedules pertialSchedules; 58 57 … … 128 127 129 128 private: 130 PertialSchedule *__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule = false, bool isSelfOpcodeOffset = false );131 public: 132 PertialSchedule *op_jle( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );133 PertialSchedule *op_jbe( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );134 PertialSchedule *op_jge( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );135 PertialSchedule *op_jae( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );136 PertialSchedule *op_jl( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );137 PertialSchedule *op_jb( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );138 PertialSchedule *op_jg( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );139 PertialSchedule *op_ja( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );140 PertialSchedule *op_jne( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );141 PertialSchedule *op_je( long offset, int op_size = sizeof(char), bool isPertialSchedule = false );142 PertialSchedule *op_jmp( long offset, int op_size = sizeof(char), bool isPertialSchedule = false, bool isSelfOpcodeOffset = false );129 const PertialSchedule *__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule = false, bool isSelfOpcodeOffset = false ); 130 public: 131 const PertialSchedule *op_jle( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 132 const PertialSchedule *op_jbe( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 133 const PertialSchedule *op_jge( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 134 const PertialSchedule *op_jae( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 135 const PertialSchedule *op_jl( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 136 const PertialSchedule *op_jb( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 137 const PertialSchedule *op_jg( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 138 const PertialSchedule *op_ja( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 139 const PertialSchedule *op_jne( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 140 const PertialSchedule *op_je( long offset, int op_size = sizeof(char), bool isPertialSchedule = false ); 141 const PertialSchedule *op_jmp( long offset, int op_size = sizeof(char), bool isPertialSchedule = false, bool isSelfOpcodeOffset = false ); 143 142 void op_jmp_continue(); 144 143 -
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r244 r245 241 241 ObpPlus( sizeof(long) ); 242 242 } 243 void PutUserProcSchedule( const UserProc *pUserProc, bool isCall ) 244 { 245 Schedule schedule( pUserProc, size ); 246 if( isCall == false ) 247 { 248 schedule.SpecifyAddressOf(); 249 } 250 schedules.push_back( schedule ); 251 252 *((long *)(codeBuffer+size))=0; 253 size += sizeof(long); 254 255 256 257 // 未完成 258 if( isCall ) 259 { 260 pobj_SubAddrSchedule->add(pUserProc,1); 261 } 262 else 263 { 264 pobj_SubAddrSchedule->add(pUserProc,0); 265 } 266 extern char *OpBuffer; 267 extern int obp; 268 *((long *)(OpBuffer+obp))=0; 269 ObpPlus( sizeof(long) ); 270 } 243 void PutUserProcSchedule( const UserProc *pUserProc, bool isCall ); 271 244 void Put( short s ) 272 245 {
Note:
See TracChangeset
for help on using the changeset viewer.