(svn r26837) -Fix [Squirrel]: remove some pointless assignments

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 10 years ago
parent 9f249cfff9
commit 74ceffd3c5

@ -419,7 +419,6 @@ void SQFuncState::AddInstruction(SQInstruction &i)
break; break;
case _OP_GET: case _OP_GET:
if( pi.op == _OP_LOAD && pi._arg0 == i._arg2 && (!IsLocal(pi._arg0))){ if( pi.op == _OP_LOAD && pi._arg0 == i._arg2 && (!IsLocal(pi._arg0))){
pi._arg1 = pi._arg1;
pi._arg2 = (unsigned char)i._arg1; pi._arg2 = (unsigned char)i._arg1;
pi.op = _OP_GETK; pi.op = _OP_GETK;
pi._arg0 = i._arg0; pi._arg0 = i._arg0;
@ -431,7 +430,6 @@ void SQFuncState::AddInstruction(SQInstruction &i)
if( pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){ if( pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){
pi.op = _OP_PREPCALLK; pi.op = _OP_PREPCALLK;
pi._arg0 = i._arg0; pi._arg0 = i._arg0;
pi._arg1 = pi._arg1;
pi._arg2 = i._arg2; pi._arg2 = i._arg2;
pi._arg3 = i._arg3; pi._arg3 = i._arg3;
return; return;
@ -441,7 +439,6 @@ void SQFuncState::AddInstruction(SQInstruction &i)
if(pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){ if(pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){
pi.op = _OP_APPENDARRAY; pi.op = _OP_APPENDARRAY;
pi._arg0 = i._arg0; pi._arg0 = i._arg0;
pi._arg1 = pi._arg1;
pi._arg2 = MAX_FUNC_STACKSIZE; pi._arg2 = MAX_FUNC_STACKSIZE;
pi._arg3 = MAX_FUNC_STACKSIZE; pi._arg3 = MAX_FUNC_STACKSIZE;
return; return;
@ -476,7 +473,6 @@ void SQFuncState::AddInstruction(SQInstruction &i)
{ {
pi.op = i.op; pi.op = i.op;
pi._arg0 = i._arg0; pi._arg0 = i._arg0;
pi._arg1 = pi._arg1;
pi._arg2 = i._arg2; pi._arg2 = i._arg2;
pi._arg3 = MAX_FUNC_STACKSIZE; pi._arg3 = MAX_FUNC_STACKSIZE;
return; return;

Loading…
Cancel
Save