Changeset 64 in dev for BasicCompiler64/Opcode.h
- Timestamp:
- Mar 8, 2007, 2:49:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Opcode.h
r62 r64 125 125 void SetLocalParmSize(int size); 126 126 int GetFrameSize(); 127 int GetNowSp(); 128 void mov_sp( int reg ); 127 129 int push(int reg); 128 130 void push(int xmm_reg,int var_size); … … 130 132 void ref(int reg); 131 133 void ref(int xmm_reg,int var_size); 132 void pop(int reg );134 void pop(int reg = REG_NON); 133 135 void pop(int xmm_reg,int var_size); 134 136 void parameter_allocate(int size); … … 247 249 void SetVariableFromRax(int VarType,int CalcType,RELATIVE_VAR *pRelativeVar); 248 250 void OpcodeCalc(char *Command); 249 void SetRefVariable( const char *varname, const char *expression );250 251 251 252 //NumOpe.cpp … … 285 286 //Compile_Set_Var.cpp 286 287 BOOL IsUse_r11(RELATIVE_VAR *pRelativeVar); 287 void SetObjectVariableFromRax(LONG_PTR lpVarIndex,int CalcType,LONG_PTR lpCalcIndex,RELATIVE_VAR *pRelativeVar,BOOL bUseHeap); 288 void SetDoubleVariable(int type,RELATIVE_VAR *pRelative); 289 void SetSingleVariable(int type,RELATIVE_VAR *pRelative); 288 void SetStructVariableFromRax(LONG_PTR lpVarIndex,int CalcType,LONG_PTR lpCalcIndex,RELATIVE_VAR *pRelativeVar,BOOL bUseHeap); 289 void SetRealVariable(int VarType, int CalcType, RELATIVE_VAR *pRelativeVar); 290 290 void SetBooleanVariable(int type,RELATIVE_VAR *pRelative); 291 291 void SetWholeVariable(int var_size,int type,RELATIVE_VAR *pRelative); … … 307 307 308 308 //Compile_Object.cpp 309 int Operator_New(const char *Parameter,LONG_PTR *plpIndex); 310 void OpcodeDelete(const char *Parameter); 309 void Operator_New( CClass &classObj, const char *objectSizeStr, const char *parameter,const TYPEINFO &baseTypeInfo ); 310 int Operator_New(const char *Parameter,LONG_PTR *plpIndex,const TYPEINFO &baseTypeInfo ); 311 void OpcodeDelete(const char *Parameter, bool isSweeping); 311 312 312 313 //Compile_Var.cpp … … 319 320 #define DIMFLAG_STATIC 0x04 320 321 #define DIMFLAG_CONST 0x08 322 void dim(bool isRef, char *VarName,int *SubScripts,TYPEINFO &TypeInfo,int TypeSize,char *InitBuf,char *ConstractParameter,DWORD dwFlags); 321 323 void OpcodeDim(char *Parameter,DWORD dwFlag); 322 324 void SetVarPtrToReg(int reg,RELATIVE_VAR *pRelativeVar); 323 325 324 326 //CParameter.cpp 327 #define OVERLOAD_MIN_LEVEL 0 328 #define OVERLOAD_MAX_LEVEL 3 329 #define OVERLOAD_LEVEL0 0 325 330 #define OVERLOAD_LEVEL1 1 326 331 #define OVERLOAD_LEVEL2 2 … … 352 357 BOOL ErrorCheck(const char *FuncName,PARAMETER_INFO *ppi,int pi_num,int SecondParmNum); 353 358 void MacroParameterSupport(PARAMETER_INFO *ppi); 354 void Set ObjectParameter(int reg,CClass *pobj_Class,LPSTR Parameter);359 void SetStructParameter(int reg,CClass *pobj_Class,LPSTR Parameter); 355 360 356 361 //一時オブジェクトパラメータの生成と破棄 357 voidNewTempParameters( const char *FuncName,PARAMETER_INFO *ppi,int pi_num,int SecondParmNum );362 int NewTempParameters( const char *FuncName,PARAMETER_INFO *ppi,int pi_num,int SecondParmNum ); 358 363 void DeleteTempParameters(); 359 364 … … 380 385 #define PROCFLAG_NEW 1 381 386 int Opcode_CallProcPtr(char *variable,char *Parameter,PROCPTRINFO *pi,LONG_PTR *plpIndex); 382 void Opcode_CallProc(c har *Parameter,SUBINFO *psi,DWORD dwFlags,char *ObjectName,int RefType);387 void Opcode_CallProc(const char *Parameter,SUBINFO *psi,DWORD dwFlags,char *ObjectName,int RefType); 383 388 int Opcode_CallDllProc(char *Parameter,DECLAREINFO *pdi,LONG_PTR *plpIndex); 384 389 … … 410 415 void OpcodeGosub(char *Parameter); 411 416 void OpcodeReturn(char *Parameter); 412 void Opcode_Input(c har *Parameter);413 void Opcode_Print(c har *Parameter,BOOL bWrite);417 void Opcode_Input(const char *Parameter); 418 void Opcode_Print(const char *Parameter,BOOL bWrite); 414 419 void OpcodeCallPtr(char *Parameter); 415 420 void OpcodeSetPtrData(char *Parameter,int type); … … 450 455 void op_mov64_ToReg (int reg,_int64 i64data); 451 456 void op_mov64_ToReg (int reg,int i32data); 452 void op_mov64_ToReg_FromReg (int reg1,int reg2);453 457 void op_movsxd (int reg64,int reg32); 454 458 void op_movsx64_FromReg16 (int reg64,int reg16); … … 460 464 void op_dec (int reg); 461 465 void op_add_RM (int op_size,int reg,int base_reg,int offset,char mod); 462 void op_add 64_value(int reg,int offset);466 void op_add_RV (int reg,int offset); 463 467 void op_add64_reg (int reg1,int reg2); 464 468 void op_add32_reg (int reg1,int reg2); … … 467 471 void op_sub32_reg (int reg1,int reg2); 468 472 void op_sbb_RR ( int op_size, int reg1, int reg2 ); 469 void op_imul_ reg(int op_size,int reg1,int reg2);470 void op_imul_ value(int op_size,int reg,int i32data);473 void op_imul_RR (int op_size,int reg1,int reg2); 474 void op_imul_RV (int op_size,int reg,int i32data); 471 475 void op_div64_reg (int reg); 472 476 void op_idiv64_reg (int reg);
Note:
See TracChangeset
for help on using the changeset viewer.