Changeset 308 in dev for trunk/abdev/BasicCompiler64/NumOpe.cpp
- Timestamp:
- Aug 29, 2007, 9:05:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/NumOpe.cpp
r266 r308 112 112 else if( resultType.IsWhole() || resultType.IsObject()){ 113 113 //整数型 114 SetReg_WholeVariable(resultType .GetBasicType(),&relativeVar,UseReg);114 SetReg_WholeVariable(resultType,&relativeVar,UseReg); 115 115 } 116 116 else if( resultType.IsStruct() ){ … … 132 132 return true; 133 133 } 134 bool TermMemberOpe( const CClass &objClass, const Type &baseType, Type &resultType, const char *termFull, const char *termLeft, const char *member ){ 134 bool TermMemberOpe( const Type &leftType, const Type &baseType, Type &resultType, const char *termFull, const char *termLeft, const char *member ) 135 { 136 const CClass &objClass = leftType.GetClass(); 135 137 136 138 int UseReg=pobj_reg->GetNextReg(); … … 138 140 139 141 140 if( GetMemberType( objClass, member, resultType, 0, false ) ){142 if( GetMemberType( leftType, member, resultType, 0, false ) ){ 141 143 // メンバが見つかったとき 142 144 … … 192 194 pobj_sf->push( UseReg ); 193 195 194 if( !Opcode_CallProc(parameter,pUserProc,PROCFLAG_NEW,termLeft ,0) ){196 if( !Opcode_CallProc(parameter,pUserProc,PROCFLAG_NEW,termLeft ) ){ 195 197 //レジスタ資源を復元 196 198 RESTORE_REGISTER_RESOURCE … … 284 286 } 285 287 286 return TermMemberOpe( leftType .GetClass(), baseType, resultType, termFull, termLeft, member );288 return TermMemberOpe( leftType, baseType, resultType, termFull, termLeft, member ); 287 289 } 288 290 globalArea: … … 463 465 //////////////////////////////// 464 466 465 if( Compiler::StringToType( termFull, resultType ) ){467 if( compiler.StringToType( termFull, resultType ) ){ 466 468 resultType.SetBasicType( resultType.GetBasicType() | FLAG_CAST ); 467 469 return true; … … 767 769 // As演算子の右辺値 768 770 //型名 769 if( Compiler::StringToType( term, resultType ) ){771 if( compiler.StringToType( term, resultType ) ){ 770 772 resultType.SetBasicType( resultType.GetBasicType() | FLAG_CAST ); 771 773 }
Note:
See TracChangeset
for help on using the changeset viewer.