Changeset 224 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Jul 21, 2007, 4:46:33 AM (18 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r184 r224 1 1 #pragma once 2 2 3 #include <DataTable.h>4 5 3 void ReallocNativeCodeBuffer(); 6 7 class NativeCode8 {9 DataTable dataTable;10 public:11 DataTable &GetDataTable()12 {13 return dataTable;14 }15 }; -
trunk/abdev/BasicCompiler_Common/include/Compiler.h
r206 r224 4 4 #include <NamespaceSupporter.h> 5 5 #include <MetaImpl.h> 6 #include <DataTable.h> 6 7 7 8 class Compiler 8 9 { 9 // ネイティブコード10 NativeCode nativeCode;11 12 10 // 名前空間サポート 13 11 NamespaceSupporter namespaceSupporter; … … 16 14 MetaImpl metaImpl; 17 15 16 // データテーブル 17 DataTable dataTable; 18 18 19 public: 19 NativeCode &GetNativeCode()20 {21 return nativeCode;22 }23 20 24 21 NamespaceSupporter &GetNamespaceSupporter() … … 32 29 } 33 30 31 DataTable &GetDataTable() 32 { 33 return dataTable; 34 } 35 34 36 static bool StringToType( const std::string &typeName, Type &type ); 35 37 static const std::string TypeToString( const Type &type ); -
trunk/abdev/BasicCompiler_Common/include/Procedure.h
r215 r224 11 11 #include <Parameter.h> 12 12 #include <Variable.h> 13 #include <NativeCode.h> 13 14 14 15 class CClass; … … 146 147 // 識別ID 147 148 int id; 149 150 // ネイティブコード 151 NativeCode nativeCode; 148 152 149 153 // XMLシリアライズ用 … … 171 175 ar & BOOST_SERIALIZATION_NVP( localVars ); 172 176 ar & BOOST_SERIALIZATION_NVP( id ); 177 ar & BOOST_SERIALIZATION_NVP( nativeCode ); 173 178 } 174 179 -
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r218 r224 714 714 } 715 715 716 vtbl_offset=compiler.Get NativeCode().GetDataTable().AddBinary((void *)ppsi,GetVtblNum()*sizeof(LONG_PTR));716 vtbl_offset=compiler.GetDataTable().AddBinary((void *)ppsi,GetVtblNum()*sizeof(LONG_PTR)); 717 717 718 718 for( int i=0; i < GetVtblNum(); i++ ){ … … 728 728 729 729 LONG_PTR *pVtbl; 730 pVtbl=(LONG_PTR *)((char *)compiler.Get NativeCode().GetDataTable().GetPtr()+vtbl_offset);730 pVtbl=(LONG_PTR *)((char *)compiler.GetDataTable().GetPtr()+vtbl_offset); 731 731 732 732 int i;
Note:
See TracChangeset
for help on using the changeset viewer.