Changeset 206 in dev for trunk/abdev/BasicCompiler64/Compile_Object.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_Object.cpp
r140 r206 1 #include "stdafx.h" 2 1 3 #include "../BasicCompiler_Common/common.h" 2 4 #include "opcode.h" … … 33 35 //////////////////////// 34 36 35 std::vector< UserProc *> subs;37 std::vector<const UserProc *> subs; 36 38 pobj_c->GetMethods().Enum( pobj_c->GetName().c_str(), subs ); 37 39 38 UserProc *pUserProc;40 const UserProc *pUserProc; 39 41 if( subs.size() > 0 ){ 40 42 //オーバーロードを解決 … … 142 144 143 145 //call _System_GC_malloc_ForObject 144 extern UserProc *pSub_System_GC_malloc_ForObject;146 extern const UserProc *pSub_System_GC_malloc_ForObject; 145 147 op_call(pSub_System_GC_malloc_ForObject); 146 148 } … … 150 152 151 153 //call _System_GC_malloc_ForObjectPtr 152 extern UserProc *pSub_System_GC_malloc_ForObjectPtr;154 extern const UserProc *pSub_System_GC_malloc_ForObjectPtr; 153 155 op_call(pSub_System_GC_malloc_ForObjectPtr); 154 156 } … … 185 187 op_mov_RV(sizeof(_int64),REG_RCX,0); 186 188 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(); 189 191 obp+=sizeof(long); 190 192 … … 299 301 if( isSweeping ){ 300 302 //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; 302 304 op_call(pSub_System_GC_free_for_SweepingDelete); 303 305 } 304 306 else{ 305 307 //call free 306 extern UserProc *pSub_free;308 extern const UserProc *pSub_free; 307 309 op_call(pSub_free); 308 310 }
Note:
See TracChangeset
for help on using the changeset viewer.