Changeset 280 in dev for trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
- Timestamp:
- Aug 14, 2007, 8:37:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
r276 r280 1 1 #include "stdafx.h" 2 2 3 #include <NativeCode.h> 4 #include <Procedure.h> 3 #include <Compiler.h> 5 4 6 5 #define BREAK_EIP(checkEip) (obp+0x00401000>=checkEip) … … 32 31 sourceLine.GetLineNum(), 33 32 baseOffset + sourceLine.GetNativeCodePos(), 33 sourceLine.GetSourceIndex(), 34 34 sourceLine.GetSourceCodePos(), 35 35 sourceLine.GetCodeType() … … 86 86 sourceLineType |= CODETYPE_SYSTEMPROC; 87 87 } 88 sourceLines.push_back( SourceLine( (long)sourceLines.size(), size, cp, sourceLineType ) ); 88 sourceLines.push_back( 89 SourceLine( 90 (long)sourceLines.size(), 91 size, 92 compiler.GetObjectModule().GetCurrentSourceIndex(), 93 cp, 94 sourceLineType 95 ) 96 ); 89 97 } 90 98 … … 102 110 } 103 111 } 112 void NativeCode::ResetSourceIndexes( long sourceIndexBase ) 113 { 114 BOOST_FOREACH( SourceLine &sourceLine, sourceLines ) 115 { 116 sourceLine.SetSourceIndex( sourceLine.GetSourceIndex() + sourceIndexBase ); 117 } 118 }
Note:
See TracChangeset
for help on using the changeset viewer.