Changeset 51 in dev for BasicCompiler32/Compile_Statement.cpp
- Timestamp:
- Feb 10, 2007, 8:30:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Statement.cpp
r50 r51 106 106 } 107 107 if(i2==DEF_OBJECT){ 108 CClass *pobj_Class; 109 pobj_Class=(CClass *)lp; 110 if(pobj_Class->DestructorMemberSubIndex!=-1){ 111 //デストラクタの呼び出し 112 113 //push eax 114 op_push(REG_EAX); 115 116 //push eax 117 op_push(REG_EAX); 118 119 //call destructor 120 int i5; 121 i5=pobj_Class->DestructorMemberSubIndex; 122 op_call(pobj_Class->ppobj_Method[i5]->psi); 123 } 124 else{ 125 //push eax 126 op_push(REG_EAX); 127 } 128 129 //call free 130 extern SUBINFO *pSub_free; 131 op_call(pSub_free); 108 //mov ebx,eax 109 op_mov_RR(REG_EBX,REG_EAX); 110 111 FreeTempObject(REG_EBX,(CClass *)lp); 132 112 } 133 113 return;
Note:
See TracChangeset
for help on using the changeset viewer.