Changeset 641 in dev for trunk/ab5.0/abdev/compiler_x86/Compile_ProcOp.cpp
- Timestamp:
- Jun 15, 2008, 11:59:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x86/Compile_ProcOp.cpp
r637 r641 24 24 } 25 25 26 const UserProc *pBackUserProc;27 pBackUserProc = &compiler.GetCompilingUserProc();28 compiler.StartGlobalAreaCompile();29 30 26 int BackCp; 31 27 BackCp=cp; … … 52 48 GetGlobalDataForDll(); 53 49 54 compiler.SetCompilingUserProc( pBackUserProc );55 50 cp=BackCp; 56 51 … … 81 76 compiler.codeGenerator.op_ret(); 82 77 } 83 else if( userProc.GetName() == "_System_Call_Destructor_of_GlobalObject" ){ 84 85 const UserProc *pBackUserProc; 86 pBackUserProc = &compiler.GetCompilingUserProc(); 87 compiler.StartGlobalAreaCompile(); 88 78 else if( userProc.GetName() == "_System_Call_Destructor_of_GlobalObject" ) 79 { 89 80 compiler.codeGenerator.lexicalScopes.CallDestructorsOfScopeEnd(); 90 81 91 82 compiler.SetCompilingUserProc( pBackUserProc ); 92 93 83 94 84 //ret … … 213 203 else if( userProc.GetName() == "RegisterGlobalRoots" 214 204 && userProc.HasParentClass() 215 && userProc.GetParentClass().GetName() == "_System_CGarbageCollection" ){ 216 217 Compile_AddGlobalRootsForGc(); 218 } 219 else if( userProc.GetName() == compiler.globalAreaProcName ){ 205 && userProc.GetParentClass().GetName() == "_System_CGarbageCollection" ) 206 { 207 Compile_AddGlobalRootsForGc(); 208 } 209 else if( userProc.GetName() == compiler.globalAreaProcName ) 210 { 220 211 //////////////////////////////////////// 221 212 // グローバル領域をコンパイル … … 223 214 224 215 UserProc::pGlobalProc = &userProc; 225 226 const UserProc *pBackUserProc = &compiler.GetCompilingUserProc();227 compiler.StartGlobalAreaCompile();228 216 229 217 int BackCp = cp; … … 251 239 } 252 240 253 compiler.SetCompilingUserProc( pBackUserProc );254 241 cp=BackCp; 255 242 } … … 293 280 pUserProc->CompleteCompile(); 294 281 295 extern BOOL bSystemProc;296 if(memcmp(pUserProc->GetName().c_str(),"_System_",8)==0) bSystemProc=1;297 else bSystemProc=0;298 299 282 extern BOOL bDebugSupportProc; 300 283 if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0) … … 316 299 compiler.StartProcedureCompile( pUserProc ); 317 300 318 if(pUserProc->Is System()){301 if(pUserProc->IsAutoGenerationSystem()){ 319 302 //////////////////// 320 303 // 特殊関数
Note:
See TracChangeset
for help on using the changeset viewer.