Changeset 559 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include
- Timestamp:
- May 5, 2008, 12:26:44 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common/include
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Class.h
r558 r559 437 437 long comVtblOffset; 438 438 long vtblMasterListOffset; 439 public: 439 440 std::vector<long> vtblMasterList; 440 public: 441 LONG_PTR GetVtblOffset() const 442 { 443 return vtbl_offset; 444 } 445 void SetVtblOffset( int vtblOffset ) 446 { 447 this->vtbl_offset = vtblOffset; 448 } 449 long GetComVtblOffset() const 450 { 451 return comVtblOffset; 452 } 453 void SetComVtblOffset( int comVtblOffset ) 454 { 455 this->comVtblOffset = comVtblOffset; 456 } 441 457 void GetVtblMasterListIndexAndVtblIndex( const UserProc *pUserProc, int &vtblMasterListIndex, int &vtblIndex ) const; 442 458 int GetVtblMasterListIndex( const CClass *pClass ) const; 443 long GetComVtblOffset() const;444 459 long GetVtblMasterListOffset() const; 445 void GenerateVTableMasterList( const std::vector<long> &vtableMasterList, long &offset ); 446 void GenerateFullVTables(); 447 void ActionVtblSchedule( LONG_PTR ImageBase, LONG_PTR MemPos_CodeSection, LONG_PTR MemPos_DataSection ); 460 void SetVtblMasterListOffset( int vtblMasterListOffset ) 461 { 462 this->vtblMasterListOffset = vtblMasterListOffset; 463 } 448 464 bool IsAbstract() const; 449 465 … … 484 500 bool Insert( CClass *pClass, int nowLine ); 485 501 CClass *Add( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine); 486 487 // vtblを一時的に生成488 void GenerateVTables();489 490 // vtblのを正規のオフセットで再構築491 void ActionVtblSchedule(LONG_PTR ImageBase, LONG_PTR MemPos_CodeSection, LONG_PTR MemPos_DataSection );492 502 493 503 virtual void InitStaticMember(); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h
r558 r559 273 273 // 仮想メソッドの個数を取得 274 274 int GetVtblNum() const; 275 276 // vtblを生成 277 void GenerateVTablePart( long &vtableDataTableOffset ) const; 278 }; 275 };
Note:
See TracChangeset
for help on using the changeset viewer.