Ignore:
Timestamp:
Aug 12, 2007, 1:25:20 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r263 r276  
    1010#endif
    1111
    12 void ReallocNativeCodeBuffer();
    13 
    1412// コード生成時の部分的なスケジューリング
    1513class PertialSchedule
     
    1816    int typeSize;   // 対象サイズ(一般的には8bit/32bit)
    1917
    20     int _obpOld;    // 未完成
    2118public:
    2219    PertialSchedule( int codePos, int typeSize )
     
    2421        , typeSize( typeSize )
    2522    {
    26         extern int obp;
    27         _obpOld = obp;
    2823    }
    2924    ~PertialSchedule()
     
    3833    {
    3934        return typeSize;
    40     }
    41     int GetObpOld() const
    42     {
    43         return _obpOld;
    4435    }
    4536};
     
    201192    // Continue用のコード位置情報の管理
    202193    std::vector<long> continueCodePositions;
    203     std::vector<long> _continueCodePositions_ObpOld;
    204194
    205195public:
     
    210200    // Exit Subスケジュールの管理
    211201    std::vector<long> exitSubCodePositions;
    212     std::vector<int> _exitSubCodePositions_ObpOld;
    213202
    214203    // Gotoスケジュールの管理
     
    239228        pNativeCode = &nativeCode;
    240229    }
     230    long GetNativeCodeSize() const
     231    {
     232        return pNativeCode->GetSize();
     233    }
    241234
    242235    void NextSourceLine()
     
    256249    {
    257250        continueCodePositions.clear();
    258         _continueCodePositions_ObpOld.clear();
    259251    }
    260252    void ContinueAreaBegin()
    261253    {
    262254        continueCodePositions.push_back( pNativeCode->GetSize() );
    263 
    264         extern int obp;
    265         _continueCodePositions_ObpOld.push_back( obp );
    266255    }
    267256    void ContinueAreaEnd()
    268257    {
    269258        continueCodePositions.pop_back();
    270         _continueCodePositions_ObpOld.pop_back();
    271     }
    272     long GetContinueCodePosOld() const
    273     {
    274         if( _continueCodePositions_ObpOld.size() == 0 )
    275         {
    276             return -1;
    277         }
    278         return _continueCodePositions_ObpOld[_continueCodePositions_ObpOld.size()-1];
    279259    }
    280260   
     
    489469    void PutOld( const NativeCode &nativeCode )
    490470    {
    491         pNativeCode->Put( nativeCode, true );
     471        pNativeCode->Put( nativeCode );
    492472    }
    493473    void PutOld( char c )
Note: See TracChangeset for help on using the changeset viewer.