Changeset 248 in dev for trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp
- Timestamp:
- Jul 29, 2007, 12:33:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp
r247 r248 33 33 bool isSuccessful = false; 34 34 35 CodeGenerator::PertialSchedules::iterator it = pertialSchedules.begin();35 PertialSchedules::iterator it = pertialSchedules.begin(); 36 36 while( it != pertialSchedules.end() ) 37 37 { … … 84 84 } 85 85 } 86 const CodeGenerator::PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )86 const PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset ) 87 87 { 88 88 long beginCodePos = pNativeCode->GetSize(); … … 158 158 return pPertialSchedule; 159 159 } 160 const CodeGenerator::PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule )160 const PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule ) 161 161 { 162 162 return __jmp_op_format( (char)0x0E, offset, op_size, isPertialSchedule ); 163 163 } 164 const CodeGenerator::PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule )164 const PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule ) 165 165 { 166 166 return __jmp_op_format( (char)0x06, offset, op_size, isPertialSchedule ); 167 167 } 168 const CodeGenerator::PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule )168 const PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule ) 169 169 { 170 170 return __jmp_op_format( (char)0x0D, offset, op_size, isPertialSchedule ); 171 171 } 172 const CodeGenerator::PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule )172 const PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule ) 173 173 { 174 174 return __jmp_op_format( (char)0x03, offset, op_size, isPertialSchedule ); 175 175 } 176 const CodeGenerator::PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule )176 const PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule ) 177 177 { 178 178 return __jmp_op_format( (char)0x0C, offset, op_size, isPertialSchedule ); 179 179 } 180 const CodeGenerator::PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule )180 const PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule ) 181 181 { 182 182 return __jmp_op_format( (char)0x02, offset, op_size, isPertialSchedule ); 183 183 } 184 const CodeGenerator::PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule )184 const PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule ) 185 185 { 186 186 return __jmp_op_format( (char)0x0F, offset, op_size, isPertialSchedule ); 187 187 } 188 const CodeGenerator::PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule )188 const PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule ) 189 189 { 190 190 return __jmp_op_format( (char)0x07, offset, op_size, isPertialSchedule ); 191 191 } 192 const CodeGenerator::PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule )192 const PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule ) 193 193 { 194 194 return __jmp_op_format( (char)0x05, offset, op_size, isPertialSchedule ); 195 195 } 196 const CodeGenerator::PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule )196 const PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule ) 197 197 { 198 198 return __jmp_op_format( (char)0x04, offset, op_size, isPertialSchedule ); 199 199 } 200 const CodeGenerator::PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )200 const PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset ) 201 201 { 202 202 return __jmp_op_format( (char)0xEB, offset, op_size, isPertialSchedule, isSelfOpcodeOffset );
Note:
See TracChangeset
for help on using the changeset viewer.