Changeset 38 in dev for BasicCompiler64


Ignore:
Timestamp:
Jan 22, 2007, 11:38:19 PM (18 years ago)
Author:
dai_9181
Message:

戻り値に基本型を持つインデクサ(Getter)が正常に呼び出せないバグを修正。

Location:
BasicCompiler64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/NumOpe.cpp

    r35 r38  
    404404
    405405
     406                    //インデクサ(getアクセサ)
    406407                    char variable[VN_SIZE],array_element[VN_SIZE];
    407408                    CClass *pobj_c;
     
    411412                        if(i2==DEF_OBJECT){
    412413                            TYPEINFO RetTypeInfo;
    413                             CallArrayOperatorProc(UseReg,pobj_c,variable,array_element,RetTypeInfo);
     414                            CallIndexerGetterProc(UseReg,pobj_c,variable,array_element,RetTypeInfo);
    414415                            type[sp]=RetTypeInfo.type;
    415416                            index_stack[sp]=RetTypeInfo.u.lpIndex;
  • BasicCompiler64/Opcode.h

    r36 r38  
    394394int CallOperatorProc(int idCalc,TYPEINFO *pBaseTypeInfo,int *type,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp);
    395395void CallCastOperatorProc(int reg,int &CalcType,LONG_PTR &lpCalcIndex,BOOL bCalcUseHeap,int ToType,LONG_PTR lpToIndex);
    396 void CallArrayOperatorProc(int reg,CClass *pobj_Class,char *ObjectName,char *Parameter,TYPEINFO &RetTypeInfo);
     396void CallIndexerGetterProc(int reg,CClass *pobj_Class,char *ObjectName,char *Parameter,TYPEINFO &RetTypeInfo);
    397397
    398398//Compile_Statement.cpp
  • BasicCompiler64/OperatorProc.cpp

    r31 r38  
    436436}
    437437
    438 void CallArrayOperatorProc(int reg,CClass *pobj_Class,char *ObjectName,char *Parameter,TYPEINFO &RetTypeInfo){
     438//インデクサ(getter)を呼び出す
     439void CallIndexerGetterProc(int reg,CClass *pobj_Class,char *ObjectName,char *Parameter,TYPEINFO &RetTypeInfo){
    439440    SUBINFO **ppsi;
    440441    int num;
Note: See TracChangeset for help on using the changeset viewer.