Changeset 460 in dev for trunk


Ignore:
Timestamp:
Mar 23, 2008, 10:43:50 AM (16 years ago)
Author:
dai_9181
Message:

[459]を64bit版にもマージ。

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

Legend:

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

    r436 r460  
    2626bool Opcode_CallProcPtr( const char *variable, const char *lpszParms,ProcPointer *pProcPointer)
    2727{
    28     extern BOOL bDebugCompile;
    2928    extern BOOL bDebugSupportProc;
    30     if(bDebugCompile&&bDebugSupportProc==0)
     29    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     30    {
    3131        Call_DebugSys_SaveContext();
     32    }
    3233
    3334
     
    462463bool Opcode_CallDllProc( const char *lpszParms, DllProc *pDllProc ){
    463464
    464     extern BOOL bDebugCompile;
    465465    extern BOOL bDebugSupportProc;
    466     if(bDebugCompile&&bDebugSupportProc==0&& pDllProc->GetName() != "DebugBreak" ){
     466    if( compiler.IsDebug() && bDebugSupportProc == 0 && pDllProc->GetName() != "DebugBreak" )
     467    {
    467468        Call_DebugSys_SaveContext();
    468469    }
     
    524525void Opcode_CallDelegate( const Delegate &dg, const char *methodPtrValueStr, const char *objPtrValueStr, const char *params )
    525526{
    526     extern BOOL bDebugCompile;
    527527    extern BOOL bDebugSupportProc;
    528     if(bDebugCompile&&bDebugSupportProc==0)
     528    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     529    {
    529530        Call_DebugSys_SaveContext();
     531    }
    530532
    531533
  • trunk/ab5.0/abdev/BasicCompiler64/Compile_ProcOp.cpp

    r402 r460  
    3939        const PertialSchedule *pStackFramePertialSchedule = compiler.codeGenerator.op_sub_rsp( 0, true );
    4040
    41         extern BOOL bDebugCompile;
    42         if(bDebugCompile){
     41        if( compiler.IsDebug() )
     42        {
    4343            //デバッグ用の変数を定義
    4444            DebugVariable();
     
    203203    extern char *basbuf;
    204204    extern HANDLE hHeap;
    205     extern BOOL bDebugCompile;
    206205    int i3,i4;
    207206    char temporary[VN_SIZE];
     
    222221    extern BOOL bDebugSupportProc;
    223222    if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0){
    224         if(!bDebugCompile){
     223        if( !compiler.IsDebug() )
     224        {
    225225            return;
    226226        }
     
    449449    const PertialSchedule *pRspOffsetPertialSchedule1 = NULL;
    450450    const PertialSchedule *pRspOffsetPertialSchedule2 = NULL;
    451     if(bDebugCompile&&bDebugSupportProc==0){
     451    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     452    {
    452453        //mov rdx, qword ptr[rsp+スタックフレームサイズ]
    453454        pRspOffsetPertialSchedule1 = compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RDX,REG_RSP,0,MOD_BASE_DISP32, Schedule::None, true );
     
    607608    compiler.codeGenerator.ResolveExitSubSchedule();
    608609
    609     if(bDebugCompile&&bDebugSupportProc==0){
     610    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     611    {
    610612        //call _DebugSys_EndProc
    611613        extern const UserProc *pSub_DebugSys_EndProc;
  • trunk/ab5.0/abdev/BasicCompiler64/MakePeHdr.cpp

    r452 r460  
    9191    extern HWND hOwnerEditor;
    9292    extern HANDLE hHeap;
    93     extern BOOL bDebugCompile;
    9493    extern DWORD ImageBase;
    9594    extern int obp_AllocSize;
     
    119118    //////////////////
    120119    // データテーブル
    121     if(bDebugCompile){
     120    if( compiler.IsDebug() )
     121    {
    122122        compiler.GetObjectModule().dataTable.Add( (long)0x00000002 );
    123123    }
     
    360360            compiler.codeGenerator.op_sub_RV( sizeof(_int64), REG_RSP, 0x108 );
    361361
    362             if(bDebugCompile){
     362            if( compiler.IsDebug() )
     363            {
    363364                //デバッグ用の変数を定義
    364365                DebugVariable();
     
    831832    CDebugSection *pobj_DebugSection;
    832833    pobj_DebugSection=new CDebugSection();
    833     extern BOOL bDebugCompile;
    834834    extern BOOL bError;
    835     if(bDebugCompile&&bError==0){
     835    if( compiler.IsDebug() && bError == 0 )
     836    {
    836837        CompileMessage( "デバッグ情報を生成しています。" );
    837838
Note: See TracChangeset for help on using the changeset viewer.