Changeset 193 in dev for trunk/abdev/BasicCompiler32/NumOpe.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/NumOpe.cpp
r183 r193 82 82 SetStringQuotes( parameter ); 83 83 84 Operator_New( * Smoothie::GetMeta().GetClasses().GetStringClassPtr(), "", parameter, Type( DEF_OBJECT, *Smoothie::GetMeta().GetClasses().GetStringClassPtr() ) );84 Operator_New( *compiler.GetMeta().GetClasses().GetStringClassPtr(), "", parameter, Type( DEF_OBJECT, *compiler.GetMeta().GetClasses().GetStringClassPtr() ) ); 85 85 86 86 free( parameter ); … … 261 261 Type leftType; 262 262 if( GetTermType( termLeft, leftType, isLiteral, &isClassName ) ){ 263 if( isClassName == false && Smoothie::GetMeta().blittableTypes.IsExist( leftType ) ){263 if( isClassName == false && compiler.GetMeta().GetBlittableTypes().IsExist( leftType ) ){ 264 264 // 左側のオブジェクト部分がBlittable型のとき 265 265 … … 267 267 lstrcpy( temporary, termLeft ); 268 268 sprintf( termLeft, "%s(%s)", 269 Smoothie::GetMeta().blittableTypes.Find( leftType ).GetCreateStaticMethodFullName().c_str(),269 compiler.GetMeta().GetBlittableTypes().Find( leftType ).GetCreateStaticMethodFullName().c_str(), 270 270 temporary ); 271 271 } … … 296 296 297 297 if( pIsClassName ){ 298 if( Smoothie::GetMeta().GetClasses().Find( termFull ) ){298 if( compiler.GetMeta().GetClasses().Find( termFull ) ){ 299 299 *pIsClassName = true; 300 300 return true; … … 593 593 } 594 594 595 i2 = Compiler::GetNativeCode().GetDataTable().AddBinary( binary, num * tempBaseType.GetSize() );595 i2 = compiler.GetNativeCode().GetDataTable().AddBinary( binary, num * tempBaseType.GetSize() ); 596 596 597 597 //mov eax,i2 … … 709 709 // As演算子の右辺値 710 710 //型名 711 if( Type::StringToType( term, resultType ) ){711 if( Compiler::StringToType( term, resultType ) ){ 712 712 resultType.SetBasicType( resultType.GetBasicType() | FLAG_CAST ); 713 713 } … … 740 740 741 741 type_stack[sp]=DEF_OBJECT; 742 index_stack[sp]=(LONG_PTR) Smoothie::GetMeta().GetClasses().GetStringClassPtr();742 index_stack[sp]=(LONG_PTR)compiler.GetMeta().GetClasses().GetStringClassPtr(); 743 743 bLiteralCalculation=0; 744 744 … … 751 751 bLiteralCalculation=0; 752 752 753 i2= Compiler::GetNativeCode().GetDataTable().AddString(term,i3);753 i2=compiler.GetNativeCode().GetDataTable().AddString(term,i3); 754 754 755 755 //push DataSize … … 838 838 } 839 839 else{ 840 index_stack[sp] = (LONG_PTR) Smoothie::GetMeta().GetClasses().GetObjectClassPtr();840 index_stack[sp] = (LONG_PTR)compiler.GetMeta().GetClasses().GetObjectClassPtr(); 841 841 } 842 842
Note:
See TracChangeset
for help on using the changeset viewer.