Changeset 206 in dev for trunk/abdev/BasicCompiler_Common/Diagnose.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Diagnose.cpp
r193 r206 1 #include "stdafx.h" 2 1 3 #include <jenga/include/smoothie/Smoothie.h> 2 4 … … 38 40 int codeSizeOfGlobalProc = 0; 39 41 int codeSizeOfClassMethod = 0; 40 for(int i2=0;i2<MAX_HASH;i2++){ 41 extern GlobalProc **ppSubHash; 42 GlobalProc *pUserProc = ppSubHash[i2]; 43 while(pUserProc){ 44 if( pUserProc->IsCompiled() ){ 45 if( pUserProc->HasParentClass() ){ 46 codeSizeOfClassMethod += pUserProc->GetCodeSize(); 47 } 48 else{ 49 codeSizeOfGlobalProc += pUserProc->GetCodeSize(); 50 } 42 compiler.GetMeta().GetUserProcs().Iterator_Reset(); 43 while( compiler.GetMeta().GetUserProcs().Iterator_HasNext() ) 44 { 45 UserProc *pUserProc = compiler.GetMeta().GetUserProcs().Iterator_GetNext(); 46 if( pUserProc->IsCompiled() ){ 47 if( pUserProc->HasParentClass() ){ 48 codeSizeOfClassMethod += pUserProc->GetCodeSize(); 51 49 } 52 53 pUserProc=pUserProc->pNextData; 50 else{ 51 codeSizeOfGlobalProc += pUserProc->GetCodeSize(); 52 } 54 53 } 55 54 } … … 83 82 // 動的メソッド 84 83 BOOST_FOREACH( const CMethod *pMethod, objClass.GetMethods() ){ 85 if( pMethod-> pUserProc->IsCompiled() ){86 codeSizeOfClass += pMethod-> pUserProc->GetCodeSize();84 if( pMethod->GetUserProc().IsCompiled() ){ 85 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 87 86 } 88 87 } … … 90 89 // 静的メソッド 91 90 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){ 92 codeSizeOfClass += pMethod-> pUserProc->GetCodeSize();91 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 93 92 } 94 93 … … 118 117 // 動的メソッド 119 118 BOOST_FOREACH( const CMethod *pMethod, objClass.GetMethods() ){ 120 if( pMethod-> pUserProc->IsCompiled() ){121 codeSizeOfClass += pMethod-> pUserProc->GetCodeSize();119 if( pMethod->GetUserProc().IsCompiled() ){ 120 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 122 121 } 123 122 } … … 125 124 // 静的メソッド 126 125 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){ 127 codeSizeOfClass += pMethod-> pUserProc->GetCodeSize();126 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 128 127 } 129 128
Note:
See TracChangeset
for help on using the changeset viewer.