Changeset 357 in dev for trunk/abdev/BasicCompiler_Common/include/NativeCode.h
- Timestamp:
- Nov 5, 2007, 3:26:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r355 r357 19 19 GlobalVar, // グローバル変数スケジュール 20 20 DataTable, // データテーブル スケジュール 21 CatchAddress, // Catchアドレス スケジュール 21 22 Relocation, // リロケーション情報スケジュール 22 23 UserProc, // ユーザ定義関数呼び出し側スケジュール … … 52 53 case UserProc: 53 54 case AddressOf: 55 case CatchAddress: 54 56 ar & boost::serialization::make_nvp("pUserProc", const_cast<::UserProc *&>(pUserProc)); 55 57 break; … … 127 129 const ::UserProc &GetUserProc() const 128 130 { 129 if( !( type == Schedule::UserProc || type == Schedule::AddressOf ) )131 if( !( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ) ) 130 132 { 131 133 SetError(); … … 149 151 } 150 152 type = Schedule::AddressOf; 153 } 154 void SpecifyCatchAddress() 155 { 156 if( type != Schedule::UserProc ) 157 { 158 SetError(); 159 } 160 type = Schedule::CatchAddress; 151 161 } 152 162 }; … … 279 289 280 290 void PutEx( const NativeCode &nativeCode ); 281 void PutEx( long l, Schedule::Type scheduleType ) 282 { 283 if( scheduleType != Schedule::None ) 284 { 285 schedules.push_back( Schedule( scheduleType, GetSize() ) ); 286 } 287 288 Put( l ); 289 } 291 void PutEx( long l, Schedule::Type scheduleType ); 290 292 void PutUserProcSchedule( const UserProc *pUserProc, bool isCall ); 293 void PutCatchAddressSchedule( const UserProc *pUserProc, long codePos ); 291 294 void PutDllProcSchedule( const DllProc *pDllProc ); 292 295 void PutVtblSchedule( const CClass *pClass );
Note:
See TracChangeset
for help on using the changeset viewer.