Changeset 514 in dev for trunk


Ignore:
Timestamp:
May 1, 2008, 11:26:31 AM (16 years ago)
Author:
dai_9181
Message:

[505][513]を64bit版にマージ。

Location:
trunk/ab5.0/abdev
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x64/Compile_CallProc.cpp

    r468 r514  
    55#include "../BasicCompiler_Common/common.h"
    66#include "Opcode.h"
     7
     8using namespace ActiveBasic::Compiler;
    79
    810void Call_DebugSys_SaveContext(){
     
    462464
    463465    extern BOOL bDebugSupportProc;
    464     if( compiler.IsDebug() && bDebugSupportProc == 0 && pDllProc->GetName() != "DebugBreak" )
     466    if( compiler.IsDebug() && bDebugSupportProc==0 && pDllProc->IsEqualSymbol( LexicalAnalyzer::FullNameToSymbol( "DebugBreak" ) ) )
    465467    {
    466468        Call_DebugSys_SaveContext();
  • trunk/ab5.0/abdev/compiler_x64/Compile_Var.cpp

    r468 r514  
    1212int AllLocalVarSize;
    1313
     14using namespace ActiveBasic::Compiler;
    1415
    1516void SetRelativeOffset( Type &resultType, RELATIVE_VAR *pRelativeVar,const char *lpPtrOffset){
     
    416417        //////////////////
    417418
    418         const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( Symbol( VarName ) );
     419        const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    419420        if( pVar ){
    420421            //ポインタ変数の場合
     
    538539            GetNowStaticVarFullName(VarName,temporary);
    539540
    540             pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temporary ) );
     541            pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temporary ) );
    541542            if( pVar ){
    542543                goto GlobalOk;
     
    569570            char temp2[VN_SIZE];
    570571            sprintf(temp2,"%s.%s",VarName,temporary);
    571             pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );
     572            pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) );
    572573            if( pVar ){
    573574                lstrcpy(member,tempMember);
     
    581582            char temp2[VN_SIZE];
    582583            sprintf(temp2,"%s.%s",compiler.pCompilingClass->GetName().c_str(),VarName);
    583             pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );
     584            pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) );
    584585            if( pVar ){
    585586                goto GlobalOk;
     
    591592        /////////////////////
    592593
    593         pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( Symbol( VarName ) );
     594        pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    594595        if( pVar ){
    595596            goto GlobalOk;
     
    11111112        /////////////////
    11121113
    1113         if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( VarName ) ){
     1114        if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){
    11141115            //2重定義のエラー
    11151116            compiler.errorMessenger.Output(15,VarName,cp);
  • trunk/ab5.0/abdev/compiler_x64/MakePeHdr.cpp

    r477 r514  
    143143
    144144    // 名前空間情報を取得
    145     NamespaceSupporter::CollectNamespaces(
     145    ActiveBasic::Compiler::LexicalAnalyzer::CollectNamespaces(
    146146        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    147147        compiler.GetObjectModule().meta.GetNamespaces()
     
    161161    }
    162162
    163     //クラス名を取得(詳細情報はGetAllClassInfoで取得)
     163    //クラス名を取得(詳細情報はCollectClassesで取得)
    164164    //   CollectProcedures関数の中で参照されるオブジェクト名を事前に取得する。
    165165    //     ※オブジェクトの内容までは取得しない
    166     compiler.GetObjectModule().meta.GetClasses().CollectClassesForNameOnly( compiler.GetObjectModule().GetCurrentSource() );
     166    ActiveBasic::Compiler::LexicalAnalyzer::CollectClassesForNameOnly(
     167        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     168        compiler.GetObjectModule().meta.GetClasses()
     169    );
    167170
    168171    //TypeDef情報を初期化
     
    181184    //サブルーチン(ユーザー定義、DLL関数)の識別子、アドレスを取得
    182185    compiler.pCompilingClass = NULL;
    183     CollectProcedures(
     186    ActiveBasic::Compiler::LexicalAnalyzer::CollectProcedures(
    184187        compiler.GetObjectModule().GetCurrentSource(),
    185188        compiler.GetObjectModule().meta.GetUserProcs(),
     
    188191
    189192    // クラス情報を取得(※注 - CollectProceduresの後に呼び出す)
    190     compiler.GetObjectModule().meta.GetClasses().GetAllClassInfo();
     193    ActiveBasic::Compiler::LexicalAnalyzer::CollectClasses(
     194        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     195        compiler.GetObjectModule().meta.GetClasses()
     196    );
    191197
    192198    // サブルーチン(ユーザー定義、DLL関数)のイテレータの準備
  • trunk/ab5.0/abdev/compiler_x64/compiler_x64.vcproj

    r490 r514  
    334334                </File>
    335335                <File
     336                    RelativePath="..\BasicCompiler_Common\include\LexicalAnalyzer.h"
     337                    >
     338                </File>
     339                <File
    336340                    RelativePath="..\BasicCompiler_Common\include\Linker.h"
    337341                    >
     
    369373                    </File>
    370374                    <File
     375                        RelativePath="..\BasicCompiler_Common\include\Interface.h"
     376                        >
     377                    </File>
     378                    <File
    371379                        RelativePath="..\BasicCompiler_Common\include\LexicalScope.h"
    372380                        >
     
    385393                    </File>
    386394                    <File
    387                         RelativePath="..\BasicCompiler_Common\include\Namespace.h"
    388                         >
    389                     </File>
    390                     <File
    391                         RelativePath="..\BasicCompiler_Common\include\NamespaceSupporter.h"
    392                         >
    393                     </File>
    394                     <File
    395395                        RelativePath="..\BasicCompiler_Common\include\NativeCode.h"
    396396                        >
     
    409409                    </File>
    410410                    <File
    411                         RelativePath="..\BasicCompiler_Common\include\Prototype.h"
    412                         >
    413                     </File>
    414                     <File
    415411                        RelativePath="..\BasicCompiler_Common\include\Source.h"
    416                         >
    417                     </File>
    418                     <File
    419                         RelativePath="..\BasicCompiler_Common\include\Symbol.h"
    420412                        >
    421413                    </File>
     
    12501242                </File>
    12511243                <File
     1244                    RelativePath="..\BasicCompiler_Common\src\CommonCodeGenerator.cpp"
     1245                    >
     1246                </File>
     1247                <File
    12521248                    RelativePath="..\BasicCompiler_Common\src\Compiler.cpp"
     1249                    >
     1250                </File>
     1251                <File
     1252                    RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer.cpp"
     1253                    >
     1254                </File>
     1255                <File
     1256                    RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer_Class.cpp"
    12531257                    >
    12541258                </File>
     
    12691273                    </File>
    12701274                    <File
    1271                         RelativePath="..\BasicCompiler_Common\src\Class_Collect.cpp"
    1272                         >
    1273                     </File>
    1274                     <File
    1275                         RelativePath="..\BasicCompiler_Common\src\CommonCodeGenerator.cpp"
    1276                         >
    1277                     </File>
    1278                     <File
    12791275                        RelativePath="..\BasicCompiler_Common\src\Const.cpp"
    12801276                        >
     
    12971293                    </File>
    12981294                    <File
     1295                        RelativePath="..\BasicCompiler_Common\src\Interface.cpp"
     1296                        >
     1297                    </File>
     1298                    <File
    12991299                        RelativePath="..\BasicCompiler_Common\src\LexicalScope.cpp"
    13001300                        >
     
    13091309                    </File>
    13101310                    <File
    1311                         RelativePath="..\BasicCompiler_Common\src\Namespace.cpp"
    1312                         >
    1313                     </File>
    1314                     <File
    1315                         RelativePath="..\BasicCompiler_Common\src\NamespaceSupporter.cpp"
    1316                         >
    1317                     </File>
    1318                     <File
    13191311                        RelativePath="..\BasicCompiler_Common\src\NativeCode.cpp"
    13201312                        >
     
    13501342                    <File
    13511343                        RelativePath="..\BasicCompiler_Common\src\Source.cpp"
    1352                         >
    1353                     </File>
    1354                     <File
    1355                         RelativePath="..\BasicCompiler_Common\src\Symbol.cpp"
    13561344                        >
    13571345                    </File>
  • trunk/ab5.0/abdev/compiler_x64/stdafx.h

    r477 r514  
    2121//boost libraries
    2222#include <boost/foreach.hpp>
     23#include <boost/serialization/serialization.hpp>
     24#include <boost/serialization/nvp.hpp>
     25#include <boost/serialization/export.hpp>
    2326
    2427#include <jenga/include/common/CmdLine.h>
     
    2932
    3033#include <abdev/ab_common/Environment.h>
     34#include <abdev/ab_common/include/Namespace.h>
     35#include <abdev/ab_common/include/NamespaceSupporter.h>
     36#include <abdev/ab_common/include/Symbol.h>
     37#include <abdev/ab_common/include/Prototype.h>
     38
     39using namespace ActiveBasic::Common::Lexical;
    3140
    3241#include "../BasicCompiler_Common/common.h"
     
    3544#include <Hashmap.h>
    3645#include <Configuration.h>
     46#include <Type.h>
     47#include <Method.h>
     48#include <Interface.h>
     49#include <Class.h>
     50#include <Procedure.h>
     51#include <LexicalAnalyzer.h>
    3752#include <Program.h>
    3853#include <Compiler.h>
  • trunk/ab5.0/abdev/compiler_x86/compiler_x86.vcproj

    r513 r514  
    12571257                </File>
    12581258                <File
     1259                    RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer_Class.cpp"
     1260                    >
     1261                </File>
     1262                <File
    12591263                    RelativePath="..\BasicCompiler_Common\src\Linker.cpp"
    12601264                    >
     
    12931297                    <File
    12941298                        RelativePath="..\BasicCompiler_Common\src\Interface.cpp"
    1295                         >
    1296                     </File>
    1297                     <File
    1298                         RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer_Class.cpp"
    12991299                        >
    13001300                    </File>
Note: See TracChangeset for help on using the changeset viewer.