Remove the P3 operand from OP_IsNull since it was not being used. (CVS 6779)

FossilOrigin-Name: 767ef1e4a1b31abef479368d9f960ecfd6fa08c6
This commit is contained in:
drh
2009-06-18 00:41:55 +00:00
parent a0c0652111
commit 830ecf9197
3 changed files with 13 additions and 23 deletions
+6 -16
View File
@@ -43,7 +43,7 @@
** in this file for details. If in doubt, do not deviate from existing
** commenting and indentation practices when changing or adding code.
**
** $Id: vdbe.c,v 1.854 2009/06/17 22:50:42 drh Exp $
** $Id: vdbe.c,v 1.855 2009/06/18 00:41:56 drh Exp $
*/
#include "sqliteInt.h"
#include "vdbeInt.h"
@@ -1931,24 +1931,14 @@ case OP_IfNot: { /* jump, in1 */
break;
}
/* Opcode: IsNull P1 P2 P3 * *
/* Opcode: IsNull P1 P2 * * *
**
** Jump to P2 if the value in register P1 is NULL. If P3 is greater
** than zero, then check all values reg(P1), reg(P1+1),
** reg(P1+2), ..., reg(P1+P3-1).
** Jump to P2 if the value in register P1 is NULL.
*/
case OP_IsNull: { /* same as TK_ISNULL, jump, in1 */
int n;
n = pOp->p3;
assert( pOp->p3==0 || pOp->p1>0 );
do{
if( (pIn1->flags & MEM_Null)!=0 ){
pc = pOp->p2 - 1;
break;
}
pIn1++;
}while( --n > 0 );
if( (pIn1->flags & MEM_Null)!=0 ){
pc = pOp->p2 - 1;
}
break;
}