Changeset 817 in dev for branches/egtra/ab5.0/abdev/compiler_x64
- Timestamp:
- Mar 19, 2011, 10:47:28 PM (14 years ago)
- Location:
- branches/egtra/ab5.0/abdev/compiler_x64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/compiler_x64/Opcode.h
r704 r817 1 1 #pragma once 2 3 #include <array> 2 4 3 5 #include "MachineFixed.h" … … 37 39 , sourceCodePos( sourceCodePos ) 38 40 { 41 } 42 43 WithInfo(WithInfo&& y) 44 : name(std::move(y.name)) 45 , sourceCodePos(std::move(y.sourceCodePos)) 46 { 47 } 48 49 WithInfo(WithInfo const& y) 50 : name(y.name) 51 , sourceCodePos(y.sourceCodePos) 52 { 53 } 54 55 WithInfo& operator =(WithInfo&& y) 56 { 57 name = std::move(y.name); 58 sourceCodePos = std::move(y.sourceCodePos); 59 return *this; 60 } 61 62 WithInfo& operator =(WithInfo const& y) 63 { 64 return *this = std::move(WithInfo(y)); 39 65 } 40 66 }; … … 75 101 76 102 void error_check(void); 103 104 private: 105 StackFrame(StackFrame const&); 106 StackFrame& operator =(StackFrame const&); 77 107 }; 78 108 extern StackFrame *pobj_sf; … … 93 123 void backup(); 94 124 void restore(); 125 126 private: 127 CBlockReg(CBlockReg const&); 128 CBlockReg& operator =(CBlockReg const&); 95 129 }; 96 130 extern CBlockReg *pobj_BlockReg; … … 101 135 102 136 //利用可能なレジスタを列挙する関数 103 void EnumRegister(int *pRegList,int nMaxList,int *array_reg,int *sp,int AnswerReg); 104 105 int array_UseReg[16],sp_UseReg; 106 107 int array_XmmReg[16]; 137 void EnumRegister(int const *pRegList,int nMaxList,int *array_reg,int *sp,int AnswerReg); 138 139 std::array<int, 16> array_UseReg; 140 int sp_UseReg; 141 142 std::array<int, 16> array_XmmReg; 108 143 int sp_XmmReg; 109 144 … … 113 148 CRegister(){}; 114 149 CRegister(int AnswerReg); 150 151 CRegister(CRegister const& y) 152 : array_UseReg(y.array_UseReg) 153 , sp_UseReg(y.sp_UseReg) 154 , array_XmmReg(y.array_XmmReg) 155 , sp_XmmReg(y.sp_XmmReg) 156 , init_sp_reg(y.init_sp_reg) 157 , init_sp_xmm_reg(y.init_sp_xmm_reg) 158 { 159 } 160 161 CRegister& operator =(CRegister const& y) 162 { 163 array_UseReg = y.array_UseReg; 164 sp_UseReg = y.sp_UseReg; 165 array_XmmReg = y.array_XmmReg; 166 sp_XmmReg = y.sp_XmmReg; 167 init_sp_reg = y.init_sp_reg; 168 init_sp_xmm_reg = y.init_sp_xmm_reg; 169 return *this; 170 } 171 115 172 ~CRegister(){}; 116 173 … … 313 370 void BackupParameter(int pi_num); 314 371 void RestoreParameter(int pi_num); 372 373 private: 374 ParamImpl(ParamImpl const&); 375 ParamImpl& operator =(ParamImpl const&); 315 376 }; 316 377 … … 325 386 void lock(int level); 326 387 void unlock(int level); 388 389 private: 390 CDBLockParms(CDBLockParms const&); 391 CDBLockParms& operator =(CDBLockParms const&); 327 392 }; 328 393 -
branches/egtra/ab5.0/abdev/compiler_x64/Register.cpp
r468 r817 112 112 CRegister *pobj_reg; 113 113 114 void CRegister::EnumRegister(int *pRegList,int nMaxList,int *array_reg,int *sp,int AnswerReg){114 void CRegister::EnumRegister(int const* pRegList,int nMaxList,int *array_reg,int *sp,int AnswerReg){ 115 115 int i,i2,sw=0; 116 116 … … 161 161 162 162 EnumRegister( 163 (int *)CalculationRegister,163 CalculationRegister, 164 164 sizeof(CalculationRegister)/sizeof(int), 165 array_UseReg ,165 array_UseReg.data(), 166 166 &sp_UseReg, 167 167 AnswerReg); … … 174 174 175 175 EnumRegister( 176 (int *)CalculationXmmRegister,176 CalculationXmmRegister, 177 177 sizeof(CalculationXmmRegister)/sizeof(int), 178 array_XmmReg ,178 array_XmmReg.data(), 179 179 &sp_XmmReg, 180 180 AnswerReg);
Note:
See TracChangeset
for help on using the changeset viewer.