Changeset 436 in dev for trunk/abdev/BasicCompiler64/Compile_Calc.cpp
- Timestamp:
- Mar 15, 2008, 3:33:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_Calc.cpp
r417 r436 190 190 //NumOpe...(rax、またはxmm0に答えが格納される) 191 191 int reg=REG_RAX; 192 BOOL bCalcUseHeap;193 192 Type calcType; 194 if( !NumOpe(®,Command+i+1,varType,calcType,&bCalcUseHeap) ){ 193 bool isNeedHeapFreeStructure; 194 if( !NumOpe(®,Command+i+1,varType,calcType,&isNeedHeapFreeStructure) ){ 195 195 return; 196 196 } … … 222 222 if( varType.IsStruct() ){ 223 223 //構造体インスタンスへの代入 224 SetStructVariableFromRax(varType,calcType,&VarRelativeVar, bCalcUseHeap);224 SetStructVariableFromRax(varType,calcType,&VarRelativeVar,isNeedHeapFreeStructure); 225 225 return; 226 226 } … … 235 235 if( !isUpCast ){ 236 236 //キャスト演算子のオーバーロードに対応する 237 CallCastOperatorProc(REG_RAX,calcType, bCalcUseHeap,varType);237 CallCastOperatorProc(REG_RAX,calcType,isNeedHeapFreeStructure,varType); 238 238 } 239 239 } … … 269 269 ///////////////////////////////////////////////// 270 270 SetVariableFromRax(varType,calcType.GetBasicType(),&VarRelativeVar); 271 272 273 // コード生成過程で発生した構造体の一時メモリを破棄する 274 compiler.codeGenerator.op_FreeTempStructure(); 271 275 }
Note:
See TracChangeset
for help on using the changeset viewer.