Changeset 135 in dev for BasicCompiler64
- Timestamp:
- Jun 6, 2007, 12:58:40 AM (17 years ago)
- Location:
- BasicCompiler64
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/BasicCompiler.vcproj
r131 r135 480 480 > 481 481 <File 482 RelativePath="..\BasicCompiler_Common\include\Member.h" 483 > 484 </File> 485 <File 486 RelativePath="..\BasicCompiler_Common\include\Method.h" 487 > 488 </File> 489 <File 482 490 RelativePath="..\BasicCompiler_Common\include\Namespace.h" 483 491 > … … 1560 1568 > 1561 1569 <File 1570 RelativePath="..\BasicCompiler_Common\src\Member.cpp" 1571 > 1572 </File> 1573 <File 1574 RelativePath="..\BasicCompiler_Common\src\Method.cpp" 1575 > 1576 </File> 1577 <File 1562 1578 RelativePath="..\BasicCompiler_Common\src\Namespace.cpp" 1563 1579 > … … 1565 1581 <File 1566 1582 RelativePath="..\BasicCompiler_Common\Procedure.cpp" 1583 > 1584 </File> 1585 <File 1586 RelativePath="..\BasicCompiler_Common\src\Prototype.cpp" 1567 1587 > 1568 1588 </File> -
BasicCompiler64/Compile_Calc.cpp
r129 r135 230 230 // Blittable型をオブジェクトとして扱う 231 231 vector<UserProc *> userProcs; 232 Smoothie::Meta::blittableTypes.GetClass( calcType ). EnumStaticMethod( "_Create", userProcs );232 Smoothie::Meta::blittableTypes.GetClass( calcType ).GetStaticMethods().EnumStatic( "_Create", userProcs ); 233 233 if( userProcs.size() != 1 ){ 234 234 SetError(); -
BasicCompiler64/Compile_CallProc.cpp
r102 r135 118 118 bool isStatic = false; 119 119 const CClass *pobj_c = NULL; 120 CMethod *pMethod = NULL;120 const CMethod *pMethod = NULL; 121 121 if( pUserProc->GetParentClassPtr() ){ 122 122 //クラスのメンバ関数を呼び出す場合はアクセスチェックを行う … … 158 158 ///////////////////////////////// 159 159 pMethod = NULL; 160 if( ! isStatic ) pMethod = pobj_c->GetMethod Info( pUserProc );160 if( ! isStatic ) pMethod = pobj_c->GetMethods().GetMethodPtr( pUserProc ); 161 161 if( ! pMethod ){ 162 162 //動的メソッドが取得できなかったときは静的メソッドを当たる 163 pMethod = pobj_c->GetStaticMethod Info( pUserProc );163 pMethod = pobj_c->GetStaticMethods().GetMethodPtr( pUserProc ); 164 164 if( !pMethod ){ 165 165 SetError(300,NULL,cp); … … 308 308 else{ 309 309 RELATIVE_VAR RelativeVar; 310 if( pMethod-> isConst){310 if( pMethod->IsConst() ){ 311 311 //Constアクセスが可能なメソッドの場合 312 312 if( !GetVarOffsetReadOnly( ObjectName, &RelativeVar, Type() ) ){ -
BasicCompiler64/Compile_Object.cpp
r131 r135 34 34 35 35 std::vector<UserProc *> subs; 36 pobj_c-> EnumMethod( pobj_c->GetName().c_str(), subs );36 pobj_c->GetMethods().Enum( pobj_c->GetName().c_str(), subs ); 37 37 38 38 UserProc *pUserProc; … … 54 54 // obj._System_SetType( _System_TypeBase.Search( strNamespace, name ) ) 55 55 subs.clear(); 56 pobj_c-> EnumMethod( "_System_SetType", subs );56 pobj_c->GetMethods().Enum( "_System_SetType", subs ); 57 57 if( subs.size() == 1 ){ 58 58 char temporary[VN_SIZE]; … … 179 179 180 180 181 CMethod *method = classObj.GetDestructorMethod();181 const CMethod *method = classObj.GetDestructorMethod(); 182 182 if( method == NULL ) return; 183 183 -
BasicCompiler64/Compile_ProcOp.cpp
r131 r135 650 650 基底クラスのデストラクタを呼び出す */ 651 651 652 CMethod *method = pobj_CompilingClass->pobj_InheritsClass->GetDestructorMethod();652 const CMethod *method = pobj_CompilingClass->pobj_InheritsClass->GetDestructorMethod(); 653 653 if( method ){ 654 654 Opcode_CallProc("", -
BasicCompiler64/Compile_Statement.cpp
r129 r135 733 733 if(type1.IsObject()){ 734 734 std::vector<UserProc *> subs; 735 type1.GetClass(). EnumMethod( CALC_EQUAL, subs );735 type1.GetClass().GetMethods().Enum( CALC_EQUAL, subs ); 736 736 if( subs.size() == 0 ){ 737 737 return; -
BasicCompiler64/Compile_Var.cpp
r131 r135 472 472 473 473 for(i=0;i<pobj_CompilingClass->iMemberNum;i++){ 474 if(lstrcmp(VarName,pobj_CompilingClass->ppobj_Member[i]->name)==0) break; 474 if( pobj_CompilingClass->ppobj_Member[i]->GetName() == VarName ){ 475 break; 476 } 475 477 } 476 478 if(i==pobj_CompilingClass->iMemberNum) goto NonClassMember; … … 479 481 //Const修飾子のメソッド内でメンバ書き込みアクセスが発生したとき 480 482 //(コンストラクタ、デストラクタ内を除く) 481 CMethod *pMethod = pobj_DBClass->GetNowCompilingMethodInfo();483 const CMethod *pMethod = pobj_DBClass->GetNowCompilingMethodInfo(); 482 484 if( isWriteAccess && 483 pMethod-> isConst&&485 pMethod->IsConst() && 484 486 pobj_CompilingClass->IsCompilingConstructor() == false && 485 487 pobj_CompilingClass->IsCompilingDestructor() == false … … 772 774 i=GetOneParameter(InitBuf,i,temporary); 773 775 774 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]-> name, NULL );776 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]->GetName().c_str(), NULL ); 775 777 776 778 if(!SetInitGlobalData(offset+i3, … … 908 910 i=GetOneParameter(InitBuf,i,temporary); 909 911 910 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]-> name, NULL );912 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]->GetName().c_str(), NULL ); 911 913 912 914 if(!InitLocalVar(offset+i3, -
BasicCompiler64/NumOpe.cpp
r131 r135 166 166 GetVarFormatString(methodName,parameter,lpPtrOffset,dummy,refType); 167 167 168 objClass. EnumMethod( methodName, userProcs );168 objClass.GetMethods().Enum( methodName, userProcs ); 169 169 UserProc *pUserProc; 170 170 if(userProcs.size()){ -
BasicCompiler64/OperatorProc.cpp
r76 r135 10 10 //////////////////////////////////////////////// 11 11 12 CMethod *method = pobj_c->GetDestructorMethod();12 const CMethod *method = pobj_c->GetDestructorMethod(); 13 13 if( method ){ 14 14 //mov rcx,reg … … 33 33 34 34 std::vector<UserProc *> subs; 35 pobj_c-> EnumMethod( idCalc, subs );35 pobj_c->GetMethods().Enum( idCalc, subs ); 36 36 if( subs.size() == 0 ){ 37 37 return 0; … … 320 320 321 321 std::vector<UserProc *> subs; 322 pobj_Class-> EnumMethod( CALC_ARRAY_GET, subs );322 pobj_Class->GetMethods().Enum( CALC_ARRAY_GET, subs ); 323 323 if( subs.size() == 0 ){ 324 324 return;
Note:
See TracChangeset
for help on using the changeset viewer.