Changeset 254 in dev for trunk/abdev/BasicCompiler_Common/src
- Timestamp:
- Jul 31, 2007, 4:30:31 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/src
- Files:
-
- 3 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() -
trunk/abdev/BasicCompiler_Common/src/Const.cpp
r206 r254 92 92 93 93 94 int Consts::GetBasicType(c har *Name){94 int Consts::GetBasicType(const char *Name){ 95 95 CConst *pConst = GetObjectPtr(Name); 96 96 … … 99 99 return pConst->GetType().GetBasicType(); 100 100 } 101 _int64 Consts::GetWholeData(c har *Name){101 _int64 Consts::GetWholeData(const char *Name){ 102 102 CConst *pConst = GetObjectPtr(Name); 103 103 … … 106 106 return pConst->GetWholeData(); 107 107 } 108 double Consts::GetDoubleData(c har *Name){108 double Consts::GetDoubleData(const char *Name){ 109 109 CConst *pConst = GetObjectPtr(Name); 110 110 … … 113 113 return pConst->GetDoubleData(); 114 114 } 115 bool Consts::IsStringPtr( c har *Name ){115 bool Consts::IsStringPtr( const char *Name ){ 116 116 CConst *pConst = GetObjectPtr(Name); 117 117 -
trunk/abdev/BasicCompiler_Common/src/LexicalScope.cpp
r253 r254 128 128 129 129 //mov rcx,qword ptr[rsp+offset] 130 compiler.codeGenerator.localVarPertialSchedules.push_back( 130 131 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RCX,REG_RSP, 131 132 -pVar->GetOffsetAddress(), 132 133 MOD_BASE_DISP32, 133 Schedule::LocalVar); 134 Schedule::None, true) 135 ); 134 136 #else 135 137 //x86コード
Note:
See TracChangeset
for help on using the changeset viewer.