Changeset 348 in dev for trunk/abdev/BasicCompiler64
- Timestamp:
- Oct 12, 2007, 3:25:54 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_CallProc.cpp
r347 r348 361 361 // ->func3 362 362 363 int vtblMasterListIndex, vtblIndex; 364 pobj_c->GetVtblMasterListIndexAndVtblIndex( pUserProc, vtblMasterListIndex, vtblIndex ); 365 363 366 // vtblマスターリストのポインタを取得 364 367 //mov r11,qword ptr[rcx] … … 367 370 // vtblのポインタを取得 368 371 //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 ); 373 373 374 374 //call qword ptr[r11+func_index] -
trunk/abdev/BasicCompiler64/Compile_Func.cpp
r345 r348 121 121 // ->func3 122 122 123 int vtblMasterListIndex, vtblIndex; 124 pobj_c->GetVtblMasterListIndexAndVtblIndex( &userProc, vtblMasterListIndex, vtblIndex ); 125 123 126 // vtblマスターリストのポインタを取得 124 127 //mov r11,qword ptr[rcx] … … 127 130 // vtblのポインタを取得 128 131 //mov r11,dword ptr[r11+vtblMasterListIndex] 129 int vtblMasterListIndex = pobj_c->GetVtblMasterListIndex( &userProc );130 132 compiler.codeGenerator.op_mov_RM( sizeof(_int64), REG_R11, REG_R11, vtblMasterListIndex, MOD_BASE_DISP32 ); 131 132 int vtblIndex = pobj_c->GetFuncNumInVtbl( &userProc );133 133 134 134 //mov rax,qword ptr[r11+func_index]
Note:
See TracChangeset
for help on using the changeset viewer.