source: dev/trunk/ab5.0/abdev/compiler_x64/Compile_CallProc.cpp@ 673

Last change on this file since 673 was 598, checked in by dai_9181, 16 years ago

SplitMemberNameの依存関係を排除。

File size: 17.2 KB
RevLine 
[206]1#include "stdafx.h"
2
[198]3#include <Compiler.h>
4
[3]5#include "../BasicCompiler_Common/common.h"
6#include "Opcode.h"
7
[514]8using namespace ActiveBasic::Compiler;
9
[3]10void Call_DebugSys_SaveContext(){
11 //call _System_GetEip
[206]12 extern const UserProc *pSub_System_GetEip;
[226]13 compiler.codeGenerator.op_call(pSub_System_GetEip);
[3]14
15 //mov rdx,rax
[226]16 compiler.codeGenerator.op_mov_RR(REG_RDX,REG_RAX);
[3]17
18 //mov rcx,rsp
[226]19 compiler.codeGenerator.op_mov_RR(REG_RCX,REG_RSP);
[3]20
21 //call _DebugSys_SaveContext
[206]22 extern const UserProc *pSub_DebugSys_SaveContext;
[226]23 compiler.codeGenerator.op_call(pSub_DebugSys_SaveContext);
[3]24}
25
[330]26bool Opcode_CallProcPtr( const char *variable, const char *lpszParms,ProcPointer *pProcPointer)
27{
[3]28 extern BOOL bDebugSupportProc;
[460]29 if( compiler.IsDebug() && bDebugSupportProc == 0 )
30 {
[3]31 Call_DebugSys_SaveContext();
[460]32 }
[3]33
34
35 ////////////////////////
36 // パラメータのセット
37 ////////////////////////
38
39 //パラメータオブジェクトを生成
[71]40 ParamImpl *pobj_parameter=0;
[75]41 pobj_parameter=new ParamImpl(lpszParms);
[3]42
[77]43 // デフォルト引数を適用
44 pobj_parameter->ApplyDefaultParameters( pProcPointer->Params() );
45
[3]46 //エラーチェック
[75]47 if( !pobj_parameter->ErrorCheck(variable,pProcPointer->Params() ) ){
[31]48 //パラメータにエラーがあるときは処理を終える
[75]49 return false;
[31]50 }
[3]51
52 //スタックフレームに存在する既存のパラメータをバックアップ
[75]53 pobj_parameter->BackupParameter( (int)pProcPointer->Params().size() );
[3]54
[20]55 //一時オブジェクトを生成
[75]56 pobj_parameter->NewTempParameters( variable,pProcPointer->Params() );
[20]57
[3]58 //レジスタ、スタックフレームにセット
[75]59 pobj_parameter->SetParameter(variable,pProcPointer->Params() );
[3]60
61
62
63 RELATIVE_VAR RelativeVar;
[75]64 GetVarOffsetReadOnly(variable,&RelativeVar,Type());
[3]65 SetVarPtrToReg(REG_RAX,&RelativeVar);
66
67 //mov rax,qword ptr[rax]
[226]68 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RAX,REG_RAX,0,MOD_BASE);
[3]69
70 //call rax
[228]71 compiler.codeGenerator.PutOld(
72 (char)0xFF,
73 (char)0xD0
74 );
[3]75
76
77 //レジスタのブロッキングを解除 ※パラメータセット時にロックされたレジスタ
78 pobj_BlockReg->clear();
79
[20]80 //一時オブジェクトを破棄
81 pobj_parameter->DeleteTempParameters();
82
[3]83 //スタックフレームに存在する既存のパラメータを復元
[75]84 pobj_parameter->RestoreParameter( (int)pProcPointer->Params().size() );
[3]85
86 //パラメータオブジェクトを破棄
87 delete pobj_parameter;
88
[75]89 return true;
[3]90}
91
[345]92bool Opcode_CallProc(const char *Parameter,const UserProc *pUserProc,DWORD dwFlags,const char *ObjectName)
93{
[75]94 if( pUserProc->IsMacro() ){
95 if( lstrcmpi( pUserProc->GetName().c_str(), "Print" ) == 0 ){
[3]96 Opcode_Print(Parameter,0);
[75]97 return true;
[3]98 }
[75]99 if( lstrcmpi( pUserProc->GetName().c_str(), "Input" ) == 0 ){
[3]100 Opcode_Input(Parameter);
[75]101 return true;
[3]102 }
[75]103 if( lstrcmpi( pUserProc->GetName().c_str(), "Write" ) == 0 ){
[3]104 Opcode_Print(Parameter,1);
[75]105 return true;
[3]106 }
107 }
108
[75]109 pUserProc->Using();
[3]110
[47]111 bool isStatic = false;
[75]112 const CClass *pobj_c = NULL;
[135]113 const CMethod *pMethod = NULL;
[304]114 Type leftType;
115 bool isFixedClass = false;
[75]116 if( pUserProc->GetParentClassPtr() ){
[3]117 //クラスのメンバ関数を呼び出す場合はアクセスチェックを行う
[304]118 if(ObjectName[0] && (dwFlags&PROCFLAG_NEW)==0)
119 {
120 if(lstrcmpi(ObjectName,"Super")==0)
121 {
[27]122 //クラスメンバ関数内から基底クラスの呼び出し
[584]123 pobj_c=&compiler.GetCompilingClass().GetSuperClass();
[304]124
125 isFixedClass = true;
[3]126 }
[304]127 else
128 {
[47]129 //"->"によってオブジェクトを指定する通常のメンバ関数呼び出し
[75]130 Type varType;
[416]131 if( GetTermType( ObjectName, varType ) )
[308]132 {
[416]133 if( varType.IsObject() )
134 {
135 pobj_c = &varType.GetClass();
136 leftType = varType;
137 }
[308]138 }
[416]139
140 if( !pobj_c )
[308]141 {
[598]142 pobj_c = compiler.GetObjectModule().meta.FindClassSupportedTypeDef(
143 LexicalAnalyzer::FullNameToSymbol( ObjectName )
144 );
[47]145 if( pobj_c ){
146 isStatic = true;
147 }
148 else{
[468]149 compiler.errorMessenger.Output(300,NULL,cp);
[47]150 }
[3]151 }
152 }
153 }
154 else{
155 if(dwFlags&PROCFLAG_NEW){
[316]156 GetVarType( ObjectName, leftType, false );
157
[3]158 //New演算子によるコンストラクタ呼び出し
[584]159 pobj_c = pUserProc->GetParentClassPtr();
[3]160 }
161 else{
162 //クラスメンバ関数内から同一クラスのメンバ関数の呼び出し
[584]163 pobj_c = &compiler.GetCompilingClass();
[3]164 }
165 }
166
[18]167
168 /////////////////////////////////
169 // メソッド情報を取得
170 /////////////////////////////////
[27]171 pMethod = NULL;
[350]172 if( ! isStatic ) pMethod = pobj_c->GetDynamicMethodOrInterfaceMethod( pUserProc );
[27]173 if( ! pMethod ){
[18]174 //動的メソッドが取得できなかったときは静的メソッドを当たる
[135]175 pMethod = pobj_c->GetStaticMethods().GetMethodPtr( pUserProc );
[18]176 if( !pMethod ){
[468]177 compiler.errorMessenger.Output(300,NULL,cp);
[75]178 return false;
[3]179 }
[26]180
181 //静的メンバ
[47]182 isStatic = true;
[3]183 }
184
185
186 //////////////////////////////
187 // アクセスエラーチェック
188 //////////////////////////////
189
190 if(ObjectName[0]){
191 //外部からの呼び出し
[584]192 if( compiler.IsCompilingClass() && pobj_c == &compiler.GetCompilingClass() )
193 {
[3]194 //同一クラスオブジェクトの場合はプライベートアクセスを容認する
[584]195 if( pMethod->IsNoneAccess() )
196 {
[468]197 compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
[75]198 return false;
[3]199 }
200 }
[584]201 else
202 {
[137]203 if( pMethod->IsPrivate()
[584]204 || pMethod->IsNoneAccess() )
205 {
[468]206 compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
[75]207 return false;
[3]208 }
[584]209 if( !pMethod->GetUserProc().GetParentClass().IsEqualsOrSubClass( pobj_c ) && pMethod->IsProtected() )
210 {
[468]211 compiler.errorMessenger.Output(110,pUserProc->GetName(),cp);
[75]212 return false;
[3]213 }
214 }
215 }
216 else{
217 //クラス内部からの呼び出し(継承によるACCESS_NONのみをエラーとする)
[137]218 if( pMethod->IsNoneAccess() ){
[468]219 compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
[75]220 return false;
[3]221 }
222 }
223 }
224
225
226 ///////////////////////////////////////////////////////////////
[64]227 // _System_LocalThisのダミーをセット
[3]228 ///////////////////////////////////////////////////////////////
229
230 char temporary[VN_SIZE]={0};
[75]231 if( pUserProc->GetParentClassPtr() && isStatic == false ){
[3]232 //_System_LocalThis(第一パラメータ)のダミーを作成
233 lstrcpy(temporary,"0,");
234 }
[320]235 if( pUserProc->ReturnType().IsStruct() ){
236 // ※ByRef _System_ReturnValue パラメータのダミーをセット
237 lstrcat(temporary,"0,");
238 }
[3]239
240 if(Parameter[0]=='\0'&&temporary[0])
241 temporary[lstrlen(temporary)-1]=0;
242 else lstrcat(temporary,Parameter);
243
244
[64]245 //パラメータセット前のspオフセットを取得(Newの場合はここにThisポインタが格納されている)
246 int this_sp_offset = pobj_sf->GetNowSp();
247
248
[3]249 ////////////////////////
250 // パラメータをセット
251 ////////////////////////
252
253 //パラメータオブジェクトを生成
[71]254 ParamImpl *pobj_parameter=0;
255 pobj_parameter=new ParamImpl(temporary);
[3]256
[77]257 // デフォルト引数を適用
258 pobj_parameter->ApplyDefaultParameters( pUserProc->RealParams() );
259
[316]260 // 型パラメータを適用
261 pobj_parameter->SetLeftType( leftType );
262
[3]263 //エラーチェック
[75]264 if( !pobj_parameter->ErrorCheck(pUserProc->GetName(),pUserProc->RealParams(),pUserProc->GetSecondParmNum() ) ){
[31]265 //パラメータにエラーがあるときは処理を終える
[75]266 return false;
[31]267 }
[3]268
[75]269 if(pUserProc->IsMacro()){
[3]270 //マクロ関数の場合は、パラメータ省略を考慮する
[75]271 pobj_parameter->MacroParameterSupport( pUserProc->RealParams() );
[3]272 }
273
274 //スタックフレームに存在する既存のパラメータをバックアップ
[75]275 pobj_parameter->BackupParameter( (int)pUserProc->RealParams().size() );
[3]276
[20]277 //一時オブジェクトを生成
[75]278 pobj_parameter->NewTempParameters( pUserProc->GetName(),pUserProc->RealParams(),pUserProc->GetRealSecondParmNum() );
[20]279
[3]280 //レジスタ、スタックフレームにセット
[316]281 pobj_parameter->SetParameter(pUserProc->GetName(),pUserProc->RealParams(),pUserProc->GetRealSecondParmNum(), pUserProc );
[3]282
[320]283 if( pUserProc->ReturnType().IsStruct() ){
[3]284 //////////////////////////////////////////////////////
[64]285 // 戻り値に構造体インスタンスを持つ場合
286 // ※ByRef _System_ReturnValue パラメータをセット
[3]287 //////////////////////////////////////////////////////
288
289
290 //////////////////////////////////////////////////////
291 ///// レジスタ資源のバックアップ
292 { BACKUP_REGISTER_RESOURCE
293 //////////////////////////////////////////////////////
294
[75]295 int object_size = pUserProc->ReturnType().GetClass().GetSize();
[3]296
297 //mov rcx,object_size
[226]298 compiler.codeGenerator.op_mov_RV(sizeof(_int64),REG_RCX,object_size);
[3]299
300 //call calloc
[206]301 extern const UserProc *pSub_calloc;
[226]302 compiler.codeGenerator.op_call(pSub_calloc);
[3]303
304 //mov r13,rax
[226]305 compiler.codeGenerator.op_mov_RR(REG_R13,REG_RAX);
[3]306
307 /////////////////////////////////////////////
308 ////// レジスタ資源を復元
309 RESTORE_REGISTER_RESOURCE
310 }////////////////////////////////////////////
311
[75]312 if( pUserProc->GetParentClassPtr() && isStatic == false ){
[3]313 //mov rdx,r13
[226]314 compiler.codeGenerator.op_mov_RR(REG_RDX,REG_R13);
[3]315 }
316 else{
317 //mov rcx,r13
[226]318 compiler.codeGenerator.op_mov_RR(REG_RCX,REG_R13);
[3]319 }
320 }
321
322
[75]323 if( pUserProc->GetParentClassPtr() && isStatic == false ){
[3]324 ///////////////////////////////
325 // メンバ関数の場合
326 // thisポインタをrcxで受け渡す
327 ///////////////////////////////
328
[97]329 if(ObjectName[0] && (dwFlags&PROCFLAG_NEW)==0){
[3]330 if(lstrcmpi(ObjectName,"Super")==0) goto InClassMember;
331 else{
[436]332 bool isLiteral, isNeedHeapFreeStructure = false;
[420]333 Type baseType( DEF_OBJECT, *pUserProc->GetParentClassPtr() ) , resultType;
[436]334 if( !TermOpe( ObjectName, baseType, resultType, isLiteral, isNeedHeapFreeStructure, NULL, false, !pMethod->IsConst() ) )
[416]335 {
336 return false;
[18]337 }
[436]338 if( !resultType.IsObject() )
339 {
[468]340 compiler.errorMessenger.OutputFatalError();
[436]341 }
[18]342
[416]343 // 実態ポインタをraxにコピー
344 compiler.codeGenerator.op_mov_RR( REG_RCX, REG_RAX );
[3]345 }
346 }
347 else{
348InClassMember:
349 if(dwFlags&PROCFLAG_NEW){
350 //New演算子によるコンストラクタ呼び出しの場合
351
352 //mov rcx,qword ptr[rsp+offset] ※スタックフレームを利用
[64]353 pobj_sf->ref_offset_data(REG_RCX, this_sp_offset);
[3]354 }
355 else{
356 //自身のオブジェクトのThisポインタをrcxにコピー
357 SetThisPtrToReg(REG_RCX);
358 }
359 }
360 }
361
[304]362 if( pUserProc->IsVirtual() && !isFixedClass ){
[349]363 int vtblIndex;
364 if( pobj_c->IsInterface() )
365 {
[370]366 // インターフェイス メソッド呼び出し
[3]367
[349]368 int offset_vtbl = compiler.GetObjectModule().meta.GetClasses().GetInterfaceInfoClassPtr()->GetMemberOffset( "__vtbl" );
[348]369
[349]370 // vtblのポインタを取得
371 //mov r11,qword ptr[rcx+offset_vtbl]
372 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_R11,REG_RCX,offset_vtbl,MOD_BASE_DISP8);
[3]373
[349]374 int offset_this = compiler.GetObjectModule().meta.GetClasses().GetInterfaceInfoClassPtr()->GetMemberOffset( "__this" );
[3]375
[349]376 // インターフェイスの場合は更に__thisを取得する
377 //mov rcx,qword ptr[rcx+offset_this]
378 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RCX,REG_RCX,offset_this,MOD_BASE_DISP8);
379
380 int vtblMasterListIndex;
381 pobj_c->GetVtblMasterListIndexAndVtblIndex( pUserProc, vtblMasterListIndex, vtblIndex );
382 if( vtblMasterListIndex != 0 )
383 {
[468]384 compiler.errorMessenger.OutputFatalError();
[349]385 }
386 }
[370]387 else if( pobj_c->IsComInterface() )
388 {
389 // COMインターフェイス メソッド呼び出し
390
391 //仮想関数(オブジェクトメソッド)呼び出し
392 // pObj -> vtbl1 -> func1
393 // -> func2
394 // -> func3
395
396 int vtblMasterListIndex;
397 pobj_c->GetVtblMasterListIndexAndVtblIndex( pUserProc, vtblMasterListIndex, vtblIndex );
398
399 // vtblのポインタを取得
400 //mov r11,qword ptr[rcx]
401 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_R11,REG_RCX,0,MOD_BASE); }
[349]402 else
403 {
404 //仮想関数(オブジェクトメソッド)呼び出し
405 // pObj -> vtbl_master_list -> vtbl1 -> func1
406 // -> func2
407 // -> func3
408 // -> vtbl2 -> func1
409 // -> func2
410 // -> func3
411
412 int vtblMasterListIndex;
413 pobj_c->GetVtblMasterListIndexAndVtblIndex( pUserProc, vtblMasterListIndex, vtblIndex );
414
415 // vtblマスターリストのポインタを取得
[370]416 //mov r11,qword ptr[rcx+sizeof(com_vtbl)]
417 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_R11,REG_RCX,PTR_SIZE,MOD_BASE_DISP8);
[349]418
419 // vtblのポインタを取得
420 //mov r11,dword ptr[r11+vtblMasterListIndex]
421 compiler.codeGenerator.op_mov_RM( sizeof(_int64), REG_R11, REG_R11, vtblMasterListIndex*PTR_SIZE, MOD_BASE_DISP32 );
422 }
423
[3]424 //call qword ptr[r11+func_index]
[345]425 if( vtblIndex * PTR_SIZE <= 0x7F ){
[228]426 compiler.codeGenerator.PutOld(
427 (char)0x41,
428 (char)0xFF,
429 (char)0x53,
[345]430 (char)(vtblIndex*PTR_SIZE)
[228]431 );
[3]432 }
433 else{
[228]434 compiler.codeGenerator.PutOld(
435 (char)0x41,
436 (char)0xFF,
437 (char)0x93,
[345]438 (long)(vtblIndex*PTR_SIZE)
[228]439 );
[3]440 }
441 }
442 else{
443 //通常呼び出し
444
445 //call ProcAddr
[226]446 compiler.codeGenerator.op_call(pUserProc);
[3]447 }
448
449 /* 64コンパイラでは不要
[75]450 if(pDllProc->bCdecl){
[3]451 //add esp,ParmSize
452 }*/
453
454
455 //レジスタのブロッキングを解除 ※パラメータセット時にロックされたレジスタ
456 pobj_BlockReg->clear();
457
[20]458 //一時オブジェクトを破棄
459 pobj_parameter->DeleteTempParameters();
460
[3]461 //スタックフレームに存在する既存のパラメータを復元
[75]462 pobj_parameter->RestoreParameter( (int)pUserProc->RealParams().size() );
[3]463
464 //パラメータオブジェクトを破棄
465 delete pobj_parameter;
[75]466
467 return true;
[3]468}
469
[75]470bool Opcode_CallDllProc( const char *lpszParms, DllProc *pDllProc ){
[3]471
472 extern BOOL bDebugSupportProc;
[514]473 if( compiler.IsDebug() && bDebugSupportProc==0 && pDllProc->IsEqualSymbol( LexicalAnalyzer::FullNameToSymbol( "DebugBreak" ) ) )
[460]474 {
[3]475 Call_DebugSys_SaveContext();
[75]476 }
[3]477
478
479 ////////////////////////
480 // パラメータのセット
481 ////////////////////////
482
483 //パラメータオブジェクトを生成
[71]484 ParamImpl *pobj_parameter=0;
[75]485 pobj_parameter=new ParamImpl(lpszParms);
[3]486
[77]487 // デフォルト引数を適用
488 pobj_parameter->ApplyDefaultParameters( pDllProc->Params() );
489
[3]490 //エラーチェック
[75]491 if( !pobj_parameter->ErrorCheck( pDllProc->GetName(), pDllProc->Params() ) ){
[31]492 //パラメータにエラーがあるときは処理を終える
[75]493 return false;
[31]494 }
[3]495
496 //スタックフレームに存在する既存のパラメータをバックアップ
[75]497 pobj_parameter->BackupParameter( (int)pDllProc->Params().size() );
[3]498
[45]499 //一時オブジェクトを生成
[75]500 pobj_parameter->NewTempParameters( pDllProc->GetName(), pDllProc->Params() );
[45]501
[3]502 //レジスタ、スタックフレームにセット
[75]503 pobj_parameter->SetParameter(pDllProc->GetName(), pDllProc->Params() );
[3]504
505
506 //レジスタのブロッキングを解除 ※パラメータセット時にロックされたレジスタ
507 pobj_BlockReg->clear();
508
509
510 //動的リンクされたプロシージャの呼び出し
511
512 //call dword ptr[ImportTable]
[226]513 compiler.codeGenerator.op_call( pDllProc );
[3]514
515 /* 64コンパイラでは不要
[75]516 if(pDllProc->bCdecl){
[3]517 //add esp,ParmSize
518 }*/
519
[45]520 //一時オブジェクトを破棄
521 pobj_parameter->DeleteTempParameters();
522
[3]523 //スタックフレームに存在する既存のパラメータを復元
[75]524 pobj_parameter->RestoreParameter( (int)pDllProc->Params().size() );
[3]525
526 //パラメータオブジェクトを破棄
527 delete pobj_parameter;
528
[75]529 return true;
[3]530}
[325]531
[330]532void Opcode_CallDelegate( const Delegate &dg, const char *methodPtrValueStr, const char *objPtrValueStr, const char *params )
[325]533{
[339]534 extern BOOL bDebugSupportProc;
[460]535 if( compiler.IsDebug() && bDebugSupportProc == 0 )
536 {
[339]537 Call_DebugSys_SaveContext();
[460]538 }
[339]539
540
[330]541 ///////////////////////////////////////////////////////////////
542 // _System_LocalThisのダミーをセット
543 ///////////////////////////////////////////////////////////////
544
545 char temporary[VN_SIZE]={0};
[339]546 bool isDynamicCall = false;
[330]547 if( objPtrValueStr && objPtrValueStr[0] ){
548 //_System_LocalThis(第一パラメータ)のダミーを作成
549 lstrcpy(temporary,"0,");
[339]550
551 isDynamicCall = true;
[330]552 }
553 if( dg.ReturnType().IsStruct() ){
554 // ※ByRef _System_ReturnValue パラメータのダミーをセット
555 lstrcat(temporary,"0,");
556 }
557
558 if(params[0]=='\0'&&temporary[0])
559 temporary[lstrlen(temporary)-1]=0;
560 else lstrcat(temporary,params);
561
[339]562 const Parameters *pParams = &dg.Params();
563 if( isDynamicCall )
564 {
565 pParams = &dg.GetDynamicParams();
566 }
[330]567
568
[339]569 ParamImpl *pobj_parameter = new ParamImpl( temporary );
570
[330]571 //スタックフレームに存在する既存のパラメータをバックアップ
[339]572 pobj_parameter->BackupParameter( (int)pParams->size() );
[330]573
574 //一時オブジェクトを生成
[339]575 pobj_parameter->NewTempParameters( dg.GetName(), *pParams );
[330]576
577 //レジスタ、スタックフレームにセット
[339]578 pobj_parameter->SetParameter( dg.GetName(), *pParams );
[330]579
580
581 if( objPtrValueStr && objPtrValueStr[0] )
582 {
583 RELATIVE_VAR RelativeVar;
584 //Constアクセスが不可能なメソッドの場合
585 if( !GetVarOffsetReadWrite( objPtrValueStr, &RelativeVar, Type() ) ){
586 Jenga::Throw( "Opcode_CallDelegate関数内で呼ばれるGetVarOffsetReadWrite関数に失敗" );
587 return;
588 }
589
590 SetVarPtrToReg(REG_RCX,&RelativeVar);
591
592 // 参照を実体ポインタにする
593 //mov rcx,qword ptr[rcx]
594 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RCX,REG_RCX,0,MOD_BASE);
595 }
596
597
598 {
599 ////////////////////////
600 // call
601 ////////////////////////
602 RELATIVE_VAR RelativeVar;
603 GetVarOffsetReadOnly( methodPtrValueStr, &RelativeVar, Type() );
604 SetVarPtrToReg(REG_RAX,&RelativeVar);
605
606 //mov rax,qword ptr[rax]
607 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RAX,REG_RAX,0,MOD_BASE);
608
609 //call rax
610 compiler.codeGenerator.PutOld(
611 (char)0xFF,
612 (char)0xD0
613 );
614 }
615
616
617 //レジスタのブロッキングを解除 ※パラメータセット時にロックされたレジスタ
618 pobj_BlockReg->clear();
619
620 //一時オブジェクトを破棄
621 pobj_parameter->DeleteTempParameters();
622
623 //スタックフレームに存在する既存のパラメータを復元
[339]624 pobj_parameter->RestoreParameter( (int)pParams->size() );
[330]625
626 //パラメータオブジェクトを破棄
627 delete pobj_parameter;
[325]628}
Note: See TracBrowser for help on using the repository browser.