Ignore:
Timestamp:
Oct 12, 2007, 3:25:54 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler64/Compile_CallProc.cpp

    r347 r348  
    361361        //                ->func3
    362362
     363        int vtblMasterListIndex, vtblIndex;
     364        pobj_c->GetVtblMasterListIndexAndVtblIndex( pUserProc, vtblMasterListIndex, vtblIndex );
     365
    363366        // vtblマスターリストのポインタを取得
    364367        //mov r11,qword ptr[rcx]
     
    367370        // vtblのポインタを取得
    368371        //mov r11,dword ptr[r11+vtblMasterListIndex]
    369         int vtblMasterListIndex = pobj_c->GetVtblMasterListIndex( pUserProc );
    370         compiler.codeGenerator.op_mov_RM( sizeof(_int64), REG_R11, REG_R11, vtblMasterListIndex, MOD_BASE_DISP32 );
    371 
    372         int vtblIndex = pobj_c->GetFuncNumInVtbl( pUserProc );
     372        compiler.codeGenerator.op_mov_RM( sizeof(_int64), REG_R11, REG_R11, vtblMasterListIndex*PTR_SIZE, MOD_BASE_DISP32 );
    373373
    374374        //call qword ptr[r11+func_index]
Note: See TracChangeset for help on using the changeset viewer.