Changeset 206 in dev for trunk/abdev/BasicCompiler64/Opcode.h
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Opcode.h
r142 r206 1 //Opcode.h 1 #pragma once 2 3 #include <Type.h> 4 #include <Procedure.h> 2 5 3 6 … … 323 326 bool _member_offset(bool isErrorEnabled, bool isWriteAccess, const CClass &objClass, const char *member, RELATIVE_VAR *pRelativeVar, Type &resultType, BOOL bPrivateAccess); 324 327 void SetThisPtrToReg(int reg); 325 bool GetVarOffset(bool isErrorEnabled,bool isWriteAccess,const char *NameBuffer,RELATIVE_VAR *pRelativeVar,Type &resultType, int *pss = NULL);326 bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,const char *InitBuf);328 bool GetVarOffset(bool isErrorEnabled,bool isWriteAccess,const char *NameBuffer,RELATIVE_VAR *pRelativeVar,Type &resultType, Subscripts *pResultSubscripts = NULL ); 329 bool SetInitGlobalData(int offset,const Type &type,const Subscripts &subscripts,const char *InitBuf); 327 330 #define DIMFLAG_INITDEBUGVAR 0x01 328 331 #define DIMFLAG_NONCALL_CONSTRACTOR 0x02 329 332 #define DIMFLAG_STATIC 0x04 330 333 #define DIMFLAG_CONST 0x08 331 void dim( char *VarName, int *SubScripts,Type &type, const char *InitBuf,const char *ConstractParameter,DWORD dwFlags);334 void dim( char *VarName, const Subscripts &subscripts, Type &type, const char *InitBuf,const char *ConstractParameter,DWORD dwFlags); 332 335 void SetVarPtrToReg(int reg,RELATIVE_VAR *pRelativeVar); 333 336 bool Compile_AddGlobalRootsForGc(); … … 356 359 357 360 public: 358 UserProc *_OverloadSolution( const char *name, std::vector<UserProc *> &subs, bool isEnabledReturnType = false );359 UserProc *OverloadSolution( const char *name, std::vector<UserProc *> &subs, bool isEnabledReturnType = false );361 const UserProc *_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false ); 362 const UserProc *OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false ); 360 363 361 364 void ApplyDefaultParameters( const Parameters ¶ms ); … … 389 392 #define PROCFLAG_NEW 1 390 393 bool Opcode_CallProcPtr(const char *variable, const char *lpszParms,ProcPointer *pProcPointer); 391 bool Opcode_CallProc(const char *Parameter, UserProc *pUserProc,DWORD dwFlags,const char *ObjectName,int RefType);394 bool Opcode_CallProc(const char *Parameter,const UserProc *pUserProc,DWORD dwFlags,const char *ObjectName,int RefType); 392 395 bool Opcode_CallDllProc( const char *lpszParms,DllProc *pDllProc); 393 396 … … 401 404 //OperatorProc.cpp 402 405 void FreeTempObject(int reg,const CClass *pobj_c); 403 int CallOperatorProc( intidCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp);406 int CallOperatorProc(BYTE idCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp); 404 407 void CallCastOperatorProc(int reg,Type &calcType,BOOL bCalcUseHeap,const Type &toType); 405 408 void CallIndexerGetterProc(int reg,const CClass *pobj_Class,char *ObjectName,char *Parameter,Type &resultType); … … 512 515 void op_fld_ptr_esp(int type); 513 516 void op_zero_reg(int reg); 514 void op_call( UserProc *pUserProc );515 void op_call( DllProc *pDllProc );517 void op_call( const UserProc *pUserProc ); 518 void op_call( const DllProc *pDllProc ); 516 519 void op_ret();
Note:
See TracChangeset
for help on using the changeset viewer.