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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/NativeCode.cpp

    r550 r551  
    5757void NativeCode::PutEx( long l, Schedule::Type scheduleType )
    5858{
    59     if( scheduleType == Schedule::CatchAddress )
     59    if( scheduleType != Schedule::None )
    6060    {
    61         const UserProc *pUserProc = &compiler.GetCompilingUserProc();
    62         if( compiler.IsGlobalAreaCompiling() )
    63         {
    64             pUserProc = UserProc::pGlobalProc;
    65         }
    66         PutCatchAddressSchedule( pUserProc, l );
     61        schedules.push_back( Schedule( scheduleType, GetSize() ) );
    6762    }
    68     else
    69     {
    70         if( scheduleType != Schedule::None )
    71         {
    72             schedules.push_back( Schedule( scheduleType, GetSize() ) );
    73         }
    7463
    75         Put( l );
    76     }
     64    Put( l );
    7765}
    7866
     
    120108}
    121109
    122 void NativeCode::NextSourceLine()
     110void NativeCode::NextSourceLine( int currentSourceIndex )
    123111{
    124112    if( sourceLines.size() )
     
    146134            (long)sourceLines.size(),
    147135            GetSize(),
    148             compiler.GetObjectModule().GetCurrentSourceIndex(),
     136            currentSourceIndex,
    149137            cp,
    150138            sourceLineType
Note: See TracChangeset for help on using the changeset viewer.