Changeset 316 in dev for trunk/abdev/BasicCompiler64/OperatorProc.cpp
- Timestamp:
- Sep 7, 2007, 3:15:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/OperatorProc.cpp
r308 r316 321 321 322 322 //インデクサ(getter)を呼び出す 323 void CallIndexerGetterProc(int reg, const CClass *pobj_Class,char *ObjectName,char *Parameter,Type &resultType ){323 void CallIndexerGetterProc(int reg, const Type &classType, char *ObjectName,char *Parameter,Type &resultType ){ 324 324 325 325 std::vector<const UserProc *> subs; 326 pobj_Class->GetMethods().Enum( CALC_ARRAY_GET, subs );326 classType.GetClass().GetMethods().Enum( CALC_ARRAY_GET, subs ); 327 327 if( subs.size() == 0 ){ 328 328 return; 329 329 } 330 330 331 const UserProc *pUserProc = subs[0]; 332 331 333 ////////////////////////////////////////////////////// 332 334 ///// レジスタ資源のバックアップ … … 334 336 ////////////////////////////////////////////////////// 335 337 336 Opcode_CallProc(Parameter, subs[0],0,ObjectName);337 resultType = subs[0]->ReturnType();338 Opcode_CallProc(Parameter,pUserProc,0,ObjectName); 339 resultType = pUserProc->ReturnType(); 338 340 339 341 //mov reg,rax … … 345 347 }//////////////////////////////////////////// 346 348 349 350 // 型パラメータを解決 351 ResolveFormalGenericTypeParameter( resultType, classType, pUserProc ); 347 352 }
Note:
See TracChangeset
for help on using the changeset viewer.