Changeset 245 in dev for trunk/abdev/BasicCompiler32
- Timestamp:
- Jul 27, 2007, 8:02:22 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Statement.cpp
r243 r245 140 140 } 141 141 142 CodeGenerator::PertialSchedule *pIfPertialSchedule = NULL;142 const CodeGenerator::PertialSchedule *pIfPertialSchedule = NULL; 143 143 if( !NumOpe(Parameter,Type(),tempType) ){ 144 144 //NumOpe内でエラー … … 207 207 208 208 //jne 209 CodeGenerator::PertialSchedule *pTempPertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );209 const CodeGenerator::PertialSchedule *pTempPertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 210 210 211 211 //cmp ebx,0 … … 213 213 214 214 //jne 215 CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );215 const CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 216 216 217 217 //jmp (endif、または else までジャンプ) … … 252 252 if(i2==ESC_ELSE){ 253 253 //jmp (endifまで) 254 CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true );254 const CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true ); 255 255 256 256 compiler.codeGenerator.opfix_JmpPertialSchedule( pIfPertialSchedule ); … … 346 346 if(!Parameter[0]) SetError(10,"While",cp); 347 347 348 CodeGenerator::PertialSchedule *pWhilePertialSchedule = NULL;348 const CodeGenerator::PertialSchedule *pWhilePertialSchedule = NULL; 349 349 Type tempType; 350 350 if( !NumOpe(Parameter,Type(),tempType) ){ … … 414 414 415 415 //jne 416 CodeGenerator::PertialSchedule *pTempPertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );416 const CodeGenerator::PertialSchedule *pTempPertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 417 417 418 418 //cmp ebx,0 … … 420 420 421 421 //jne 422 CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );422 const CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 423 423 424 424 //jmp (Wendまでジャンプ) … … 492 492 493 493 //jmp ... 494 CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true );494 const CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true ); 495 495 496 496 //Continueアドレスのバックアップとセット … … 534 534 535 535 //jmp [カウンタ減少の場合の判定を飛び越す] 536 CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jmp( 0, sizeof(long), true );536 const CodeGenerator::PertialSchedule *pTempPertialSchedule2 = compiler.codeGenerator.op_jmp( 0, sizeof(long), true ); 537 537 538 538 //jeジャンプ先のオフセット値 … … 601 601 GetLexicalScopes().CallDestructorsOfScopeEnd(); 602 602 603 CodeGenerator::PertialSchedule *pDoPertialSchedule = NULL;603 const CodeGenerator::PertialSchedule *pDoPertialSchedule = NULL; 604 604 605 605 extern char *basbuf; … … 780 780 781 781 //jmp ... 782 CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true );782 const CodeGenerator::PertialSchedule *pTempPertialSchedule = compiler.codeGenerator.op_jmp( 0, sizeof(long), true ); 783 783 784 784 //レキシカルスコープをレベルダウン -
trunk/abdev/BasicCompiler32/NumOpe_Relation.cpp
r240 r245 142 142 compiler.codeGenerator.op_cmp_RR( REG_EDX, REG_ECX ); 143 143 144 CodeGenerator::PertialSchedule *pFalsePertialSchedule1;144 const CodeGenerator::PertialSchedule *pFalsePertialSchedule1; 145 145 if(IsSignedType(type_stack[sp-2])==0&&IsSignedType(type_stack[sp-1])==0){ 146 146 //符号なし演算 … … 156 156 } 157 157 158 CodeGenerator::PertialSchedule *pTruePertialSchedule;158 const CodeGenerator::PertialSchedule *pTruePertialSchedule; 159 159 if(IsSignedType(type_stack[sp-2])==0&&IsSignedType(type_stack[sp-1])==0){ 160 160 //符号なし演算 … … 174 174 175 175 //ja FalseSchedule2(偽へジャンプ) 176 CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_ja( 0, sizeof(char), true );176 const CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_ja( 0, sizeof(char), true ); 177 177 178 178 //TrueScheduleのジャンプ先の設定 … … 351 351 compiler.codeGenerator.op_cmp_RR( REG_EDX, REG_ECX ); 352 352 353 CodeGenerator::PertialSchedule *pFalsePertialSchedule1;353 const CodeGenerator::PertialSchedule *pFalsePertialSchedule1; 354 354 if(IsSignedType(AnswerType)){ 355 355 //符号あり演算 … … 365 365 } 366 366 367 CodeGenerator::PertialSchedule *pTruePertialSchedule;367 const CodeGenerator::PertialSchedule *pTruePertialSchedule; 368 368 if(IsSignedType(AnswerType)){ 369 369 //符号あり演算 … … 383 383 384 384 //jb FalseSchedule2(偽へジャンプ) 385 CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_jb( 0, sizeof(char), true );385 const CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_jb( 0, sizeof(char), true ); 386 386 387 387 //TrueScheduleのジャンプ先の設定 … … 563 563 compiler.codeGenerator.op_cmp_RR( REG_EDX, REG_ECX ); 564 564 565 CodeGenerator::PertialSchedule *pTruePertialSchedule1;565 const CodeGenerator::PertialSchedule *pTruePertialSchedule1; 566 566 if(IsSignedType(AnswerType)){ 567 567 //符号あり演算 … … 577 577 } 578 578 579 CodeGenerator::PertialSchedule *pFalsePertialSchedule;579 const CodeGenerator::PertialSchedule *pFalsePertialSchedule; 580 580 if(IsSignedType(AnswerType)){ 581 581 //符号あり演算 … … 595 595 596 596 //jb TrueSchedule2(真へジャンプ) 597 CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_jb( 0, sizeof(char), true );597 const CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_jb( 0, sizeof(char), true ); 598 598 599 599 //FalseScheduleのジャンプ先の設定 … … 771 771 compiler.codeGenerator.op_cmp_RR( REG_EDX, REG_ECX ); 772 772 773 CodeGenerator::PertialSchedule *pTruePertialSchedule1;773 const CodeGenerator::PertialSchedule *pTruePertialSchedule1; 774 774 if(IsSignedType(AnswerType)){ 775 775 //符号有り … … 785 785 } 786 786 787 CodeGenerator::PertialSchedule *pFalsePertialSchedule;787 const CodeGenerator::PertialSchedule *pFalsePertialSchedule; 788 788 if(IsSignedType(AnswerType)){ 789 789 //符号有り … … 803 803 804 804 //ja TrueSchedule2(真へジャンプ) 805 CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_ja( 0, sizeof(char), true );805 const CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_ja( 0, sizeof(char), true ); 806 806 807 807 //FalseScheduleのジャンプ先の設定 … … 975 975 976 976 //jne TrueSchedule1(真へジャンプ) 977 CodeGenerator::PertialSchedule *pTruePertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );977 const CodeGenerator::PertialSchedule *pTruePertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 978 978 979 979 //cmp edx,ecx … … 981 981 982 982 //jne TrueSchedule2(真へジャンプ) 983 CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );983 const CodeGenerator::PertialSchedule *pTruePertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 984 984 985 985 //xor eax,eax(eaxを0にする) … … 1141 1141 1142 1142 //jne FalseSchedule1(偽へジャンプ) 1143 CodeGenerator::PertialSchedule *pFalsePertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );1143 const CodeGenerator::PertialSchedule *pFalsePertialSchedule1 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 1144 1144 1145 1145 //cmp edx,ecx … … 1147 1147 1148 1148 //jne FalseSchedule2(偽へジャンプ) 1149 CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true );1149 const CodeGenerator::PertialSchedule *pFalsePertialSchedule2 = compiler.codeGenerator.op_jne( 0, sizeof(char), true ); 1150 1150 1151 1151 //mov eax,1
Note:
See TracChangeset
for help on using the changeset viewer.