Changeset 287 in dev for trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
- Timestamp:
- Aug 16, 2007, 7:55:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
r282 r287 5 5 #define BREAK_EIP(checkEip) (obp+0x00401000>=checkEip) 6 6 7 void NativeCode::Put ( const NativeCode &nativeCode )7 void NativeCode::PutEx( const NativeCode &nativeCode ) 8 8 { 9 long baseOffset = size;9 long baseOffset = GetSize(); 10 10 11 11 // コードバッファを追加 12 Put( nativeCode. codeBuffer, nativeCode.size);12 Put( nativeCode.GetBuffer(), nativeCode.GetSize() ); 13 13 14 14 // スケジュールを追加 … … 43 43 pUserProc->Using(); 44 44 45 Schedule schedule( pUserProc, size);45 Schedule schedule( pUserProc, GetSize() ); 46 46 if( isCall == false ) 47 47 { … … 50 50 schedules.push_back( schedule ); 51 51 52 *((long *)(codeBuffer+size))=0; 53 size += sizeof(long); 52 Put( (long)0 ); 54 53 } 55 54 … … 58 57 pDllProc->Using(); 59 58 60 schedules.push_back( Schedule( pDllProc, size) );59 schedules.push_back( Schedule( pDllProc, GetSize() ) ); 61 60 62 *((long *)(codeBuffer+size))=0; 63 size += sizeof(long); 61 Put( (long)0 ); 64 62 } 65 63 66 64 void NativeCode::PutVtblSchedule( const CClass *pClass ) 67 65 { 68 schedules.push_back( Schedule( pClass, size) );66 schedules.push_back( Schedule( pClass, GetSize() ) ); 69 67 70 *((long *)(codeBuffer+size))=0; 71 size += sizeof(long); 68 Put( (long)0 ); 72 69 } 73 70 … … 76 73 if( sourceLines.size() ) 77 74 { 78 if( sourceLines.back().GetNativeCodePos() == size)75 if( sourceLines.back().GetNativeCodePos() == GetSize() ) 79 76 { 80 77 sourceLines.back().SetSourceCodePos( cp ); … … 97 94 SourceLine( 98 95 (long)sourceLines.size(), 99 size,96 GetSize(), 100 97 compiler.GetObjectModule().GetCurrentSourceIndex(), 101 98 cp,
Note:
See TracChangeset
for help on using the changeset viewer.