Changeset 206 in dev for trunk/abdev/BasicCompiler32/Compile_Object.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Object.cpp
r140 r206 1 #include "stdafx.h" 2 1 3 #include "../BasicCompiler_Common/common.h" 2 4 #include "opcode.h" … … 35 37 //////////////////////// 36 38 37 std::vector< UserProc *> subs;39 std::vector<const UserProc *> subs; 38 40 pobj_c->GetMethods().Enum( pobj_c->GetName().c_str(), subs ); 39 41 40 UserProc *pUserProc;42 const UserProc *pUserProc; 41 43 if( subs.size() > 0 ){ 42 44 //オーバーロードを解決 … … 161 163 162 164 //call _System_GC_malloc_ForObject 163 extern UserProc *pSub_System_GC_malloc_ForObject;165 extern const UserProc *pSub_System_GC_malloc_ForObject; 164 166 op_call(pSub_System_GC_malloc_ForObject); 165 167 } … … 169 171 170 172 //call _System_GC_malloc_ForObjectPtr 171 extern UserProc *pSub_System_GC_malloc_ForObjectPtr;173 extern const UserProc *pSub_System_GC_malloc_ForObjectPtr; 172 174 op_call(pSub_System_GC_malloc_ForObjectPtr); 173 175 } … … 213 215 //mov ecx,DestructorProcAddr 214 216 OpBuffer[obp++]=(char)0xB9; 215 pobj_SubAddrSchedule->add( method->pUserProc,0);216 method-> pUserProc->Using();217 pobj_SubAddrSchedule->add(&method->GetUserProc(),0); 218 method->GetUserProc().Using(); 217 219 obp+=sizeof(long); 218 220 … … 351 353 if( isSweeping ){ 352 354 //call _System_GC_free_for_SweepingDelete 353 extern UserProc *pSub_System_GC_free_for_SweepingDelete;355 extern const UserProc *pSub_System_GC_free_for_SweepingDelete; 354 356 op_call(pSub_System_GC_free_for_SweepingDelete); 355 357 } 356 358 else{ 357 359 //call free 358 extern UserProc *pSub_free;360 extern const UserProc *pSub_free; 359 361 op_call(pSub_free); 360 362 }
Note:
See TracChangeset
for help on using the changeset viewer.