Ignore:
Timestamp:
Aug 16, 2007, 7:55:02 PM (17 years ago)
Author:
dai_9181
Message:

Binaryクラスを追加

File:
1 edited

Legend:

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

    r282 r287  
    55#define BREAK_EIP(checkEip)  (obp+0x00401000>=checkEip)
    66
    7 void NativeCode::Put( const NativeCode &nativeCode )
     7void NativeCode::PutEx( const NativeCode &nativeCode )
    88{
    9     long baseOffset = size;
     9    long baseOffset = GetSize();
    1010
    1111    // コードバッファを追加
    12     Put( nativeCode.codeBuffer, nativeCode.size );
     12    Put( nativeCode.GetBuffer(), nativeCode.GetSize() );
    1313
    1414    // スケジュールを追加
     
    4343    pUserProc->Using();
    4444
    45     Schedule schedule( pUserProc, size );
     45    Schedule schedule( pUserProc, GetSize() );
    4646    if( isCall == false )
    4747    {
     
    5050    schedules.push_back( schedule );
    5151
    52     *((long *)(codeBuffer+size))=0;
    53     size += sizeof(long);
     52    Put( (long)0 );
    5453}
    5554
     
    5857    pDllProc->Using();
    5958
    60     schedules.push_back( Schedule( pDllProc, size ) );
     59    schedules.push_back( Schedule( pDllProc, GetSize() ) );
    6160
    62     *((long *)(codeBuffer+size))=0;
    63     size += sizeof(long);
     61    Put( (long)0 );
    6462}
    6563
    6664void NativeCode::PutVtblSchedule( const CClass *pClass )
    6765{
    68     schedules.push_back( Schedule( pClass, size ) );
     66    schedules.push_back( Schedule( pClass, GetSize() ) );
    6967
    70     *((long *)(codeBuffer+size))=0;
    71     size += sizeof(long);
     68    Put( (long)0 );
    7269}
    7370
     
    7673    if( sourceLines.size() )
    7774    {
    78         if( sourceLines.back().GetNativeCodePos() == size )
     75        if( sourceLines.back().GetNativeCodePos() == GetSize() )
    7976        {
    8077            sourceLines.back().SetSourceCodePos( cp );
     
    9794        SourceLine(
    9895            (long)sourceLines.size(),
    99             size,
     96            GetSize(),
    10097            compiler.GetObjectModule().GetCurrentSourceIndex(),
    10198            cp,
Note: See TracChangeset for help on using the changeset viewer.