Ignore:
Timestamp:
Jul 12, 2007, 2:58:26 AM (17 years ago)
Author:
dai_9181
Message:

コード全体のリファクタリングを実施

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler64/Compile_Object.cpp

    r140 r206  
     1#include "stdafx.h"
     2
    13#include "../BasicCompiler_Common/common.h"
    24#include "opcode.h"
     
    3335    ////////////////////////
    3436
    35     std::vector<UserProc *> subs;
     37    std::vector<const UserProc *> subs;
    3638    pobj_c->GetMethods().Enum( pobj_c->GetName().c_str(), subs );
    3739
    38     UserProc *pUserProc;
     40    const UserProc *pUserProc;
    3941    if( subs.size() > 0 ){
    4042        //オーバーロードを解決
     
    142144
    143145        //call _System_GC_malloc_ForObject
    144         extern UserProc *pSub_System_GC_malloc_ForObject;
     146        extern const UserProc *pSub_System_GC_malloc_ForObject;
    145147        op_call(pSub_System_GC_malloc_ForObject);
    146148    }
     
    150152
    151153        //call _System_GC_malloc_ForObjectPtr
    152         extern UserProc *pSub_System_GC_malloc_ForObjectPtr;
     154        extern const UserProc *pSub_System_GC_malloc_ForObjectPtr;
    153155        op_call(pSub_System_GC_malloc_ForObjectPtr);
    154156    }
     
    185187    op_mov_RV(sizeof(_int64),REG_RCX,0);
    186188    obp-=sizeof(long);
    187     pobj_SubAddrSchedule->add(method->pUserProc,0);
    188     method->pUserProc->Using();
     189    pobj_SubAddrSchedule->add(&method->GetUserProc(),0);
     190    method->GetUserProc().Using();
    189191    obp+=sizeof(long);
    190192
     
    299301    if( isSweeping ){
    300302        //call _System_GC_free_for_SweepingDelete
    301         extern UserProc *pSub_System_GC_free_for_SweepingDelete;
     303        extern const UserProc *pSub_System_GC_free_for_SweepingDelete;
    302304        op_call(pSub_System_GC_free_for_SweepingDelete);
    303305    }
    304306    else{
    305307        //call free
    306         extern UserProc *pSub_free;
     308        extern const UserProc *pSub_free;
    307309        op_call(pSub_free);
    308310    }
Note: See TracChangeset for help on using the changeset viewer.