Changeset 246 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Jul 28, 2007, 1:30:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r245 r246 12 12 void ReallocNativeCodeBuffer(); 13 13 14 //Goto未知ラベル 15 class GotoLabelSchedule 16 { 17 std::string name; 18 int line; 19 int nativeCodePos; 20 int sourceCodePos; 21 public: 22 GotoLabelSchedule( const std::string &name, int nativeCodePos, int sourceCodePos ) 23 : name( name ) 24 , line( -1 ) 25 , nativeCodePos( nativeCodePos ) 26 , sourceCodePos( sourceCodePos ) 27 { 28 } 29 GotoLabelSchedule( int line, int nativeCodePos, int sourceCodePos ) 30 : line( line ) 31 , nativeCodePos( nativeCodePos ) 32 , sourceCodePos( sourceCodePos ) 33 { 34 } 35 const std::string &GetName() const 36 { 37 return name; 38 } 39 int GetLineNum() const 40 { 41 return line; 42 } 43 int GetNativeCodePos() const 44 { 45 return nativeCodePos; 46 } 47 int GetSourceCodePos() const 48 { 49 return sourceCodePos; 50 } 51 }; 52 14 53 class CodeGenerator 15 54 { … … 61 100 62 101 public: 102 103 // Gotoスケジュールの管理 104 std::vector<GotoLabelSchedule> gotoLabelSchedules; 63 105 64 106 CodeGenerator() … … 141 183 const PertialSchedule *op_jmp( long offset, int op_size = sizeof(char), bool isPertialSchedule = false, bool isSelfOpcodeOffset = false ); 142 184 void op_jmp_continue(); 185 void op_jmp_goto_schedule( const GotoLabelSchedule &gotoLabelSchedule ); 143 186 144 187
Note:
See TracChangeset
for help on using the changeset viewer.