Ignore:
Timestamp:
Jul 27, 2007, 8:02:22 PM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h

    r244 r245  
    5252
    5353private:
    54 
    5554    // 部分スケジュールの管理
    56     typedef std::vector<PertialSchedule *> PertialSchedules;
     55    typedef std::vector<const PertialSchedule *> PertialSchedules;
    5756    PertialSchedules pertialSchedules;
    5857
     
    128127
    129128private:
    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 );
     130public:
     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 );
    143142    void op_jmp_continue();
    144143
  • trunk/abdev/BasicCompiler_Common/include/NativeCode.h

    r244 r245  
    241241        ObpPlus( sizeof(long) );
    242242    }
    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 );
    271244    void Put( short s )
    272245    {
Note: See TracChangeset for help on using the changeset viewer.