Changeset 220 in dev for trunk/abdev/BasicCompiler64/stack_frame.cpp
- Timestamp:
- Jul 18, 2007, 4:23:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/stack_frame.cpp
r206 r220 12 12 lowest_sp=0; 13 13 now_sp=0; 14 local_parm_size=0;15 14 max_parm_size=0; 16 15 } … … 19 18 error_check(); 20 19 } 21 void CStackFrame::SetLocalParmSize(int size){ 22 local_parm_size=size; 23 } 24 int CStackFrame::GetFrameSize(){ 20 int CStackFrame::GetFrameSize( int localParamSize ){ 25 21 int answer_sp; 26 22 27 23 answer_sp=lowest_sp-max_parm_size; 28 24 29 if((local _parm_size%0x10)==0){25 if((localParamSize%0x10)){ 30 26 if((answer_sp%0x10)==0){ 31 27 //関数のエントリポイントで128ビット境界ラインに合わせるため … … 142 138 if(max_parm_size<size) max_parm_size=size; 143 139 } 144 void CStackFrame::RunningSchedule(void){ 145 int i; 146 int all_size; 147 all_size=GetFrameSize(); 148 for(i=0;i<num;i++){ 149 *((long *)(OpBuffer+pObpValues[i]))+=all_size; 140 void CStackFrame::RunningSchedule( int stackFrameSize ){ 141 for(int i=0;i<num;i++){ 142 *((long *)(OpBuffer+pObpValues[i])) += stackFrameSize; 150 143 } 151 144 }
Note:
See TracChangeset
for help on using the changeset viewer.