Home | History | Annotate | Download | only in orig

Lines Matching refs:nOp

10354   int nOp;                      /* Elements in aOp[] */
10649 SQLITE_PRIVATE int sqlite3VdbeAddOpList(Vdbe*, int nOp, VdbeOpList const *aOp, int iLineno);
15392 int nOp; /* Size of aOp array */
15584 int nOp; /* Number of instructions in the program */
37186 OSTRACE(("SYNC-NOP pid=%lu, pFile=%p, file=%p, rc=SQLITE_OK\n",
66778 ** Resize the Vdbe.aOp array so that it is at least nOp elements larger
66779 ** than its current size. nOp is guaranteed to be less than or equal
66787 static int growOpArray(Vdbe *v, int nOp){
66799 int nNew = (p->nOpAlloc>=512 ? p->nOpAlloc*2 : p->nOpAlloc+nOp);
66802 UNUSED_PARAMETER(nOp);
66805 assert( nOp<=(1024/sizeof(Op)) );
66806 assert( nNew>=(p->nOpAlloc+nOp) );
66846 i = p->nOp;
66854 p->nOp++;
67045 p->aLabel[j] = v->nOp;
67047 p->iFixedOp = v->nOp - 1;
67087 int nOp;
67093 nOp = v->nOp;
67096 nOp = p->apSub[p->iSub-1]->nOp;
67098 assert( p->iAddr<nOp );
67102 if( p->iAddr==nOp ){
67212 for(pOp=p->aOp, i=p->nOp-1; i>=0; i--, pOp++){
67243 assert( p->nOp - i >= 3 );
67283 return p->nOp;
67305 *pnOp = p->nOp;
67314 SQLITE_PRIVATE int sqlite3VdbeAddOpList(Vdbe *p, int nOp, VdbeOpList const *aOp, int iLineno){
67317 assert( nOp>0 );
67319 if( p->nOp + nOp > p->pParse->nOpAlloc && growOpArray(p, nOp) ){
67322 addr = p->nOp;
67324 for(i=0; i<nOp; i++, aOp++, pOut++){
67352 p->nOp += nOp;
67409 p->pParse->iFixedOp = p->nOp - 1;
67410 sqlite3VdbeChangeP2(p, addr, p->nOp);
67477 ** nOp entries.
67479 static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){
67482 for(pOp=aOp; pOp<&aOp[nOp]; pOp++){
67506 if( addr<p->nOp ){
67512 if( addr==p->nOp-1 ) p->nOp--;
67521 if( (p->nOp-1)>(p->pParse->iFixedOp) && p->aOp[p->nOp-1].opcode==op ){
67522 sqlite3VdbeChangeToNoop(p, p->nOp-1);
67558 assert( p->nOp>0 );
67559 assert( addr<p->nOp );
67561 addr = p->nOp - 1;
67615 assert( p->nOp>0 || p->aOp==0 );
67616 assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed );
67617 if( p->nOp ){
67619 sqlite3DbFree(p->db, p->aOp[p->nOp-1].zComment);
67620 p->aOp[p->nOp-1].zComment = sqlite3VMPrintf(p->db, zFormat, ap);
67670 addr = p->nOp - 1;
67672 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
68111 nRow = p->nOp;
68126 nRow += apSub[i]->nOp;
68143 if( i<p->nOp ){
68151 i -= p->nOp;
68152 for(j=0; i>=apSub[j]->nOp; j++){
68153 i -= apSub[j]->nOp;
68257 }else if( p->nOp>=1 ){
68273 int nOp = p->nOp;
68276 if( nOp<1 ) return;
68351 assert( p->nOp>0 );
68371 for(i=0; i<p->nOp; i++){
68412 assert( p->nOp>0 );
68439 zCsr = (u8*)&p->aOp[p->nOp]; /* Memory avaliable for allocation */
68472 p->anExec = allocSpace(p->anExec, p->nOp*sizeof(i64), &zCsr, zEnd, &nByte);
68564 v->nOp = pFrame->nOp;
69368 for(i=0; i<p->nOp; i++){
69382 for(i=0; i<p->nOp; i++){
69466 vdbeFreeOpArray(db, pSub->aOp, pSub->nOp);
69470 vdbeFreeOpArray(db, p->aOp, p->nOp);
72614 memset(p->anExec, 0, p->nOp * sizeof(i64));
73499 for(i=0; i<p->nOp; i++){
73504 for(i=0; i<p->nOp; i++){
73517 assert( pOp>=aOp && pOp<&aOp[p->nOp]);
73719 assert( pOp->p2>=0 && pOp->p2<p->nOp );
73720 assert( pOp->p3>=0 && pOp->p3<p->nOp );
73741 assert( pIn1->u.i>=0 && pIn1->u.i<p->nOp );
73744 assert( pCaller->p2>=0 && pCaller->p2<p->nOp );
77568 assert( pOp->p2>0 && pOp->p2<p->nOp );
78373 assert( pProgram->nOp>0 );
78430 pFrame->nOp = p->nOp;
78462 p->nOp = pProgram->nOp;
79517 assert( pOp>=&aOp[-1] && pOp<&aOp[p->nOp-1] );
115356 pProgram->aOp = sqlite3VdbeTakeOpArray(v, &pProgram->nOp, &pTop->nMaxArg);