Ignore:
Timestamp:
Jul 29, 2007, 12:33:04 PM (17 years ago)
Author:
dai_9181
Message:

BreakPertialScheduleをリファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp

    r247 r248  
    3333    bool isSuccessful = false;
    3434
    35     CodeGenerator::PertialSchedules::iterator it = pertialSchedules.begin();
     35    PertialSchedules::iterator it = pertialSchedules.begin();
    3636    while( it != pertialSchedules.end() )
    3737    {
     
    8484    }
    8585}
    86 const CodeGenerator::PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
     86const PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
    8787{
    8888    long beginCodePos = pNativeCode->GetSize();
     
    158158    return pPertialSchedule;
    159159}
    160 const CodeGenerator::PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule )
     160const PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule )
    161161{
    162162    return __jmp_op_format( (char)0x0E, offset, op_size, isPertialSchedule );
    163163}
    164 const CodeGenerator::PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule )
     164const PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule )
    165165{
    166166    return __jmp_op_format( (char)0x06, offset, op_size, isPertialSchedule );
    167167}
    168 const CodeGenerator::PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule )
     168const PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule )
    169169{
    170170    return __jmp_op_format( (char)0x0D, offset, op_size, isPertialSchedule );
    171171}
    172 const CodeGenerator::PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule )
     172const PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule )
    173173{
    174174    return __jmp_op_format( (char)0x03, offset, op_size, isPertialSchedule );
    175175}
    176 const CodeGenerator::PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule )
     176const PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule )
    177177{
    178178    return __jmp_op_format( (char)0x0C, offset, op_size, isPertialSchedule );
    179179}
    180 const CodeGenerator::PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule )
     180const PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule )
    181181{
    182182    return __jmp_op_format( (char)0x02, offset, op_size, isPertialSchedule );
    183183}
    184 const CodeGenerator::PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule )
     184const PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule )
    185185{
    186186    return __jmp_op_format( (char)0x0F, offset, op_size, isPertialSchedule );
    187187}
    188 const CodeGenerator::PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule )
     188const PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule )
    189189{
    190190    return __jmp_op_format( (char)0x07, offset, op_size, isPertialSchedule );
    191191}
    192 const CodeGenerator::PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule )
     192const PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule )
    193193{
    194194    return __jmp_op_format( (char)0x05, offset, op_size, isPertialSchedule );
    195195}
    196 const CodeGenerator::PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule )
     196const PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule )
    197197{
    198198    return __jmp_op_format( (char)0x04, offset, op_size, isPertialSchedule );
    199199}
    200 const CodeGenerator::PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
     200const PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
    201201{
    202202    return __jmp_op_format( (char)0xEB, offset, op_size, isPertialSchedule, isSelfOpcodeOffset );
Note: See TracChangeset for help on using the changeset viewer.