Changeset 586 in dev for trunk/ab5.0/abdev


Ignore:
Timestamp:
May 10, 2008, 1:49:18 PM (16 years ago)
Author:
dai_9181
Message:

[585]を32bit版にマージ。

Location:
trunk/ab5.0/abdev/compiler_x86
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp

    r580 r586  
    876876            char *temp;
    877877            temp=(char *)i64data;
    878             i2=compiler.GetObjectModule().dataTable.AddString(temp,lstrlen(temp));
     878            i2=compiler.GetObjectModule().nativeSection.dataTable.AddString(temp,lstrlen(temp));
    879879            HeapDefaultFree(temp);
    880880
     
    10651065            char *temp;
    10661066            temp=(char *)i64data;
    1067             i2=compiler.GetObjectModule().dataTable.AddString(temp,lstrlen(temp));
     1067            i2=compiler.GetObjectModule().nativeSection.dataTable.AddString(temp,lstrlen(temp));
    10681068            HeapDefaultFree(temp);
    10691069
  • trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp

    r559 r586  
    125125    // データテーブル
    126126    if( compiler.IsDebug() ){
    127         compiler.GetObjectModule().dataTable.Add( (long)0x00000002 );
     127        compiler.GetObjectModule().nativeSection.dataTable.Add( (long)0x00000002 );
    128128    }
    129129
     
    143143    {
    144144        ActiveBasic::Compiler::LexicalAnalyzer::CollectEnums(
    145             compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     145            compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    146146            compiler.enumInfoCollection
    147147        );
     
    156156    // 名前空間情報を取得
    157157    ActiveBasic::Compiler::LexicalAnalyzer::CollectNamespaces(
    158         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     158        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    159159        compiler.GetObjectModule().meta.GetNamespaces()
    160160    );
     
    163163    {
    164164        ActiveBasic::Compiler::LexicalAnalyzer::CollectDelegates(
    165             compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     165            compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    166166            compiler.GetObjectModule().meta.GetDelegates()
    167167        );
     
    179179    //     ※オブジェクトの内容までは取得しない
    180180    ActiveBasic::Compiler::LexicalAnalyzer::CollectClassesForNameOnly(
    181         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     181        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    182182        compiler.GetObjectModule().meta.GetClasses()
    183183    );
     
    185185    //TypeDef情報を収集
    186186    ActiveBasic::Compiler::LexicalAnalyzer::CollectTypeDefs(
    187         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     187        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    188188        compiler.GetObjectModule().meta.GetTypeDefs()
    189189    );
     
    200200    //定数情報を取得
    201201    ActiveBasic::Compiler::LexicalAnalyzer::CollectConsts(
    202         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     202        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    203203        compiler.GetObjectModule().meta.GetGlobalConsts(),
    204204        compiler.GetObjectModule().meta.GetGlobalConstMacros()
     
    208208    compiler.SetCompilingClass( NULL );
    209209    ActiveBasic::Compiler::LexicalAnalyzer::CollectProcedures(
    210         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     210        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    211211        compiler.GetObjectModule().meta.GetUserProcs(),
    212212        compiler.GetObjectModule().meta.GetDllProcs()
     
    215215    // クラス情報を取得(※注 - CollectProceduresの後に呼び出す)
    216216    ActiveBasic::Compiler::LexicalAnalyzer::CollectClasses(
    217         compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     217        compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
    218218        compiler.GetObjectModule().meta.GetClasses()
    219219    );
     
    406406
    407407        // コード生成対象を選択
    408         compiler.codeGenerator.Select( compiler.GetObjectModule().globalNativeCode );
     408        compiler.codeGenerator.Select( compiler.GetObjectModule().nativeSection.globalNativeCode );
    409409
    410410        trace_for_sourcecodestep( "★★★ グローバル領域のコンパイルを開始" );
     
    900900
    901901    //データセクションのファイル上のサイズ
    902     if(compiler.GetObjectModule().dataTable.GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetObjectModule().dataTable.GetSize()+(FILE_ALIGNMENT-compiler.GetObjectModule().dataTable.GetSize()%FILE_ALIGNMENT);
    903     else FileSize_DataSection=compiler.GetObjectModule().dataTable.GetSize();
     902    if(compiler.GetObjectModule().nativeSection.dataTable.GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetObjectModule().nativeSection.dataTable.GetSize()+(FILE_ALIGNMENT-compiler.GetObjectModule().nativeSection.dataTable.GetSize()%FILE_ALIGNMENT);
     903    else FileSize_DataSection=compiler.GetObjectModule().nativeSection.dataTable.GetSize();
    904904    if(FileSize_DataSection) bUse_DataSection=1;
    905905    else bUse_DataSection=0;
     
    11041104    }
    11051105
    1106     compiler.linker.SetDataTable( compiler.GetObjectModule().dataTable );
     1106    compiler.linker.SetDataTable( compiler.GetObjectModule().nativeSection.dataTable );
    11071107
    11081108    compiler.linker.SetImageBase( ImageBase );
  • trunk/ab5.0/abdev/compiler_x86/NumOpe.cpp

    r579 r586  
    718718
    719719        int dataTableOffset;
    720         if( !compiler.GetObjectModule().dataTable.MakeLiteralArrayBuffer( expression, baseType, dataTableOffset ) )
     720        if( !compiler.GetObjectModule().nativeSection.dataTable.MakeLiteralArrayBuffer( expression, baseType, dataTableOffset ) )
    721721        {
    722722            return false;
     
    798798            // 静的領域にオブジェクトを生成
    799799            int dataTableOffset;
    800             if( !compiler.GetObjectModule().dataTable.MakeConstObjectToProcessStaticBuffer( expression + 2, resultType, dataTableOffset ) )
     800            if( !compiler.GetObjectModule().nativeSection.dataTable.MakeConstObjectToProcessStaticBuffer( expression + 2, resultType, dataTableOffset ) )
    801801            {
    802802                return false;
     
    941941
    942942                        //String型オブジェクトを生成
    943                         i2 = compiler.GetObjectModule().dataTable.MakeConstStringObjectToProcessStaticBuffer( term );
     943                        i2 = compiler.GetObjectModule().nativeSection.dataTable.MakeConstStringObjectToProcessStaticBuffer( term );
    944944                       
    945945                        // push value
     
    957957                    bLiteralCalculation=0;
    958958
    959                     i2=compiler.GetObjectModule().dataTable.AddString(term,i3);
     959                    i2=compiler.GetObjectModule().nativeSection.dataTable.AddString(term,i3);
    960960
    961961                    //push DataSize
Note: See TracChangeset for help on using the changeset viewer.