Ignore:
Timestamp:
Jul 27, 2007, 8:02:22 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r241 r245  
    5353            }
    5454
    55             pertialSchedules.erase( it );
     55            it = pertialSchedules.erase( it );
    5656            delete pPertialSchedule;
    5757
     
    6969    }
    7070}
    71 CodeGenerator::PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
     71const CodeGenerator::PertialSchedule *CodeGenerator::__jmp_op_format( char opcode, long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
    7272{
    7373    long beginCodePos = pNativeCode->GetSize();
     
    111111    }
    112112
    113     PertialSchedule *pPertialSchedule = NULL;
     113    const PertialSchedule *pPertialSchedule = NULL;
    114114    if( isPertialSchedule )
    115115    {
     
    143143    return pPertialSchedule;
    144144}
    145 CodeGenerator::PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule )
     145const CodeGenerator::PertialSchedule *CodeGenerator::op_jle( long offset, int op_size, bool isPertialSchedule )
    146146{
    147147    return __jmp_op_format( (char)0x0E, offset, op_size, isPertialSchedule );
    148148}
    149 CodeGenerator::PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule )
     149const CodeGenerator::PertialSchedule *CodeGenerator::op_jbe( long offset, int op_size, bool isPertialSchedule )
    150150{
    151151    return __jmp_op_format( (char)0x06, offset, op_size, isPertialSchedule );
    152152}
    153 CodeGenerator::PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule )
     153const CodeGenerator::PertialSchedule *CodeGenerator::op_jge( long offset, int op_size, bool isPertialSchedule )
    154154{
    155155    return __jmp_op_format( (char)0x0D, offset, op_size, isPertialSchedule );
    156156}
    157 CodeGenerator::PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule )
     157const CodeGenerator::PertialSchedule *CodeGenerator::op_jae( long offset, int op_size, bool isPertialSchedule )
    158158{
    159159    return __jmp_op_format( (char)0x03, offset, op_size, isPertialSchedule );
    160160}
    161 CodeGenerator::PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule )
     161const CodeGenerator::PertialSchedule *CodeGenerator::op_jl( long offset, int op_size, bool isPertialSchedule )
    162162{
    163163    return __jmp_op_format( (char)0x0C, offset, op_size, isPertialSchedule );
    164164}
    165 CodeGenerator::PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule )
     165const CodeGenerator::PertialSchedule *CodeGenerator::op_jb( long offset, int op_size, bool isPertialSchedule )
    166166{
    167167    return __jmp_op_format( (char)0x02, offset, op_size, isPertialSchedule );
    168168}
    169 CodeGenerator::PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule )
     169const CodeGenerator::PertialSchedule *CodeGenerator::op_jg( long offset, int op_size, bool isPertialSchedule )
    170170{
    171171    return __jmp_op_format( (char)0x0F, offset, op_size, isPertialSchedule );
    172172}
    173 CodeGenerator::PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule )
     173const CodeGenerator::PertialSchedule *CodeGenerator::op_ja( long offset, int op_size, bool isPertialSchedule )
    174174{
    175175    return __jmp_op_format( (char)0x07, offset, op_size, isPertialSchedule );
    176176}
    177 CodeGenerator::PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule )
     177const CodeGenerator::PertialSchedule *CodeGenerator::op_jne( long offset, int op_size, bool isPertialSchedule )
    178178{
    179179    return __jmp_op_format( (char)0x05, offset, op_size, isPertialSchedule );
    180180}
    181 CodeGenerator::PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule )
     181const CodeGenerator::PertialSchedule *CodeGenerator::op_je( long offset, int op_size, bool isPertialSchedule )
    182182{
    183183    return __jmp_op_format( (char)0x04, offset, op_size, isPertialSchedule );
    184184}
    185 CodeGenerator::PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
     185const CodeGenerator::PertialSchedule *CodeGenerator::op_jmp( long offset, int op_size, bool isPertialSchedule, bool isSelfOpcodeOffset )
    186186{
    187187    return __jmp_op_format( (char)0xEB, offset, op_size, isPertialSchedule, isSelfOpcodeOffset );
Note: See TracChangeset for help on using the changeset viewer.