Changeset 254 in dev for trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp
- Timestamp:
- Jul 31, 2007, 4:30:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp
r253 r254 301 301 void CodeGenerator::op_jmp_continue() 302 302 { 303 //op_jmp( GetContinueCodePos()-(pNativeCode->GetSize()+sizeof(long)), sizeof(long) ); 304 305 // TODO: 未完成(OpBuffer/obp廃止が整ったら上記のコードを有効にすべし) 306 307 if( GetContinueCodePosOld() == -1 ) 303 //////////////////////////////////// 304 // エラー検出(必要なくなったら消す) 305 extern int obp; 306 if( GetContinueCodePosOld()-obp != GetContinueCodePos()-pNativeCode->GetSize() ) 307 { 308 int continueCodePosOld = GetContinueCodePosOld(); 309 int continueCodePos = GetContinueCodePos(); 310 int size = pNativeCode->GetSize(); 311 int test=0; 312 SetError(); 313 } 314 //////////////////////////////////// 315 316 317 if( GetContinueCodePos() == -1 ) 308 318 { 309 319 SetError(12,"Continue",cp); 310 320 return; 311 321 } 312 313 extern int obp; 314 op_jmp( GetContinueCodePosOld()-obp, sizeof(long), false, true ); 322 op_jmp( GetContinueCodePos() - pNativeCode->GetSize(), sizeof(long), false, true ); 315 323 } 316 324 void CodeGenerator::op_jmp_exitsub()
Note:
See TracChangeset
for help on using the changeset viewer.