Ignore:
Timestamp:
May 5, 2008, 12:39:50 AM (17 years ago)
Author:
dai_9181
Message:

・PutWithScheduleメソッドを追加。
・NativeCodeクラスが持つCompilerクラスへの依存度を除去した。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

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

    r524 r551  
    241241    }
    242242
    243     void NextSourceLine()
    244     {
    245         pNativeCode->NextSourceLine();
     243    void NextSourceLine( int currentSourceIndex )
     244    {
     245        pNativeCode->NextSourceLine( currentSourceIndex );
    246246    }
    247247
     
    266266        continueCodePositions.pop_back();
    267267    }
    268    
     268
     269    void PutWithSchedule( long l, Schedule::Type scheduleType );
     270
    269271    void ResolveExitSubSchedule();
    270272
     
    469471    void PutOld( long l, Schedule::Type scheduleType )
    470472    {
    471         pNativeCode->PutEx( l, scheduleType );
     473        this->PutWithSchedule( l, scheduleType );
    472474    }
    473475    const PertialSchedule *PutOld( long l, bool isPertialSchedule )
     
    479481            pPertialSchedule = pertialSchedules.back();
    480482        }
    481         pNativeCode->PutEx( l, Schedule::None );
     483        pNativeCode->Put( l );
    482484        return pPertialSchedule;
    483485    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/NativeCode.h

    r550 r551  
    254254        return sourceLines;
    255255    }
    256     void NextSourceLine();
     256    void NextSourceLine( int currentSourceIndex );
    257257
    258258    void ResetDataSectionBaseOffset( long dataSectionBaseOffset );
Note: See TracChangeset for help on using the changeset viewer.