Changeset 672 in dev for trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp
- Timestamp:
- Jun 29, 2008, 2:08:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp
r666 r672 533 533 } 534 534 535 int typeSize = tempType.GetSize();536 537 535 //mov eax,size 538 compiler.codeGenerator.op_mov_RV( REG_EAX, typeSize);536 compiler.codeGenerator.op_mov_RV( REG_EAX, compiler.SizeOf( tempType ) ); 539 537 } 540 538 void Opcode_Func_ClassSizeOf( const std::string &typeName ) … … 546 544 } 547 545 548 int typeSize = ( tempType.IsObject() ) ? 549 tempType.GetClass().GetSize() : tempType.GetSize(); 546 if( !tempType.IsObject() ) 547 { 548 compiler.errorMessenger.Output(1,typeName,cp); 549 return; 550 } 550 551 551 552 //mov eax,size 552 compiler.codeGenerator.op_mov_RV( REG_EAX, t ypeSize);553 compiler.codeGenerator.op_mov_RV( REG_EAX, tempType.GetClass().GetSize() ); 553 554 } 554 555 void Opcode_Func_VarPtr( const char *Parameter, Type &resultType, bool isCallOn ){
Note:
See TracChangeset
for help on using the changeset viewer.