Lines Matching defs:nMem
8502 int nMem; /* Number of memory cells required */
11006 int nMem; /* Number of registers allocated */
11102 int nMem; /* Number of memory cells used so far */
12955 int nMem; /* Number of entries in aMem */
13125 int nMem; /* Number of memory locations currently allocated */
58950 for(i=1, pX=&pVdbe->aMem[1]; i<=pVdbe->nMem; i++, pX++){
60687 assert( p->nMem>9 );
60934 for(i=1; i<p->nMem; i++){
60979 int nMem; /* Number of VM memory registers */
60995 nMem = pParse->nMem;
61002 ** cells (nMem+1-nCursor)..nMem, inclusive, will never be used by
61005 ** cursor 0 is stored in memory cell nMem. Memory cell (nMem-1)
61010 nMem += nCursor;
61020 if( pParse->explain && nMem<10 ){
61021 nMem = 10;
61040 p->aMem = allocSpace(p->aMem, nMem*sizeof(Mem), &zCsr, zEnd, &nByte);
61069 p->aMem--; /* aMem[] goes from 1..nMem */
61070 p->nMem = nMem; /* not from 0..nMem-1 */
61071 for(n=1; n<=nMem; n++){
61119 v->nMem = pFrame->nMem;
61155 releaseMemArray(&p->aMem[1], p->nMem);
61180 for(i=1; i<=p->nMem; i++) assert( p->aMem[i].flags==MEM_Invalid );
64366 ** with 1 and going up to Vdbe.nMem. Each register can store
64545 ** space. Memory cell (p->nMem) corresponds to cursor 0. Space for
64546 ** cursor 1 is managed by memory cell (p->nMem-1), etc.
64548 Mem *pMem = &p->aMem[p->nMem-iCur];
65322 int nMem; /* Number of memory registers for sub-program */
65512 assert( pOp->p2<=p->nMem );
65523 assert( pOp->p1<=p->nMem );
65529 assert( pOp->p2<=p->nMem );
65535 assert( pOp->p3<=p->nMem );
65541 assert( pOp->p2<=p->nMem );
65546 assert( pOp->p3<=p->nMem );
65607 assert( pOp->p1>0 && pOp->p1<=p->nMem );
65818 assert( pOp->p3<=p->nMem );
65891 assert( pOut<=&aMem[p->nMem] );
65892 assert( pIn1<=&aMem[p->nMem] );
65967 nMem+1 );
66244 assert( pOp->p3>0 && pOp->p3<=p->nMem );
66248 assert( u.ah.n==0 || (pOp->p2>0 && pOp->p2+u.ah.n<=p->nMem+1) );
66777 assert( u.ak.p1>0 && u.ak.p1+mx<=p->nMem+1 );
66778 assert( u.ak.p2>0 && u.ak.p2+mx<=p->nMem+1 );
66780 assert( u.ak.p1>0 && u.ak.p1+u.ak.n<=p->nMem+1 );
66781 assert( u.ak.p2>0 && u.ak.p2+u.ak.n<=p->nMem+1 );
67035 assert( pOp->p3>0 && pOp->p3<=p->nMem );
67315 assert( pIn1 <= &p->aMem[p->nMem] );
67378 assert( u.ap.nField>0 && pOp->p2>0 && pOp->p2+u.ap.nField<=p->nMem+1 );
67444 assert( pOp->p3>0 && pOp->p3<=p->nMem );
68019 assert( u.ax.p2<=p->nMem );
68570 assert( pOp->p4.i>0 && pOp->p4.i<=p->nMem );
68773 assert( pOp->p3<=u.bg.pFrame->nMem );
68777 assert( pOp->p3<=p->nMem );
69470 assert( pOp->p2>0 && pOp->p2+pOp->p3<=p->nMem+1 );
69885 assert( pOp->p3>0 && pOp->p3<=p->nMem );
70035 int nMem; /* Number of memory registers for sub-program */
70077 /* SubProgram.nMem is set to the number of memory cells used by the
70080 ** variable u.cc.nMem (and later, VdbeFrame.nChildMem) to this value.
70082 u.cc.nMem = u.cc.pProgram->nMem + u.cc.pProgram->nCsr;
70084 + u.cc.nMem * sizeof(Mem)
70096 u.cc.pFrame->nChildMem = u.cc.nMem;
70100 u.cc.pFrame->nMem = p->nMem;
70116 assert( u.cc.pProgram->nMem+u.cc.pProgram->nCsr==u.cc.pFrame->nChildMem );
70128 p->nMem = u.cc.pFrame->nChildMem;
70130 p->apCsr = (VdbeCursor **)&aMem[p->nMem+1];
70319 assert( pOp->p3>0 && pOp->p3<=p->nMem );
70368 assert( pOp->p1>0 && pOp->p1<=p->nMem );
70792 assert( pOp->p3>0 && pOp->p3<=p->nMem );
71474 pParse->nMem = 1;
75916 *prNotFound = ++pParse->nMem;
75932 *prNotFound = rMayHaveNull = ++pParse->nMem;
76153 sqlite3SelectDestInit(&dest, 0, ++pParse->nMem);
76679 assert( target>0 && target<=pParse->nMem );
77298 assert( target>0 && target<=pParse->nMem );
77336 iMem = ++pParse->nMem;
77695 int r1 = ++pParse->nMem;
78239 pCol->iMem = ++pParse->nMem;
78297 pItem->iMem = ++pParse->nMem;
78371 return ++pParse->nMem;
78410 i = pParse->nMem+1;
78411 pParse->nMem += nReg;
78922 int i = ++pParse->nMem;
79768 if( iMem+1+(nCol*2)>pParse->nMem ){
79769 pParse->nMem = iMem+1+(nCol*2);
79958 if( pParse->nMem<regRec ) pParse->nMem = regRec;
79988 iMem = pParse->nMem+1;
80017 analyzeOneTable(pParse, pTab, pOnlyIdx, iStatCur, pParse->nMem+1);
81406 pParse->nMem = 0;
82071 reg1 = pParse->regRowid = ++pParse->nMem;
82072 reg2 = pParse->regRoot = ++pParse->nMem;
82073 reg3 = ++pParse->nMem;
84049 int iMem = ++pParse->nMem;
85812 memCnt = ++pParse->nMem;
85837 int iRowSet = ++pParse->nMem; /* Register for rowset of rows to delete */
85838 int iRowid = ++pParse->nMem; /* Used for storing rowid values. */
85985 iOld = pParse->nMem+1;
85986 pParse->nMem += (1 + pTab->nCol);
89172 pToplevel->nMem++; /* Register to hold name of table */
89173 pInfo->regCtr = ++pToplevel->nMem; /* Max rowid register */
89174 pToplevel->nMem++; /* Rowid in sqlite_sequence */
89551 ** SELECT result into registers dest.iMem...dest.iMem+dest.nMem-1.
89557 regEof = ++pParse->nMem;
89560 sqlite3SelectDestInit(&dest, SRT_Coroutine, ++pParse->nMem);
89581 assert( dest.nMem==nColumn );
89712 regRowCount = ++pParse->nMem;
89727 aRegIdx[i] = ++pParse->nMem;
89761 regRowid = regIns = pParse->nMem+1;
89762 pParse->nMem += pTab->nCol + 1;
89765 pParse->nMem++;
92213 int mem = ++pParse->nMem;
92386 pParse->nMem = 2;
92426 int mem = ++pParse->nMem;
92477 pParse->nMem += 2;
92569 iReg = ++pParse->nMem;
92973 pParse->nMem = 6;
93011 pParse->nMem = 3;
93037 pParse->nMem = 3;
93057 pParse->nMem = 3;
93076 pParse->nMem = 2;
93100 pParse->nMem = 8;
93184 pParse->nMem = 6;
93230 if( pParse->nMem < cnt+4 ){
93231 pParse->nMem = cnt+4;
93480 pParse->nMem = 1;
93507 pParse->nMem = 3;
93554 pParse->nMem = 2;
94543 pDest->nMem = 0;
95074 pDest->iMem = pParse->nMem+1;
95075 pDest->nMem = nResultCol;
95076 pParse->nMem += nResultCol;
95078 assert( pDest->nMem==nResultCol );
95409 int regSortOut = ++pParse->nMem;
95962 p->iLimit = iLimit = ++pParse->nMem;
95980 p->iOffset = iOffset = ++pParse->nMem;
95981 pParse->nMem++; /* Allocate an extra register for limit+offset */
96408 pDest->nMem = dest.nMem;
96419 ** pIn->nMem columns to be output. pDest is where the output should
96457 j2 = sqlite3VdbeAddOp4(v, OP_Compare, pIn->iMem, regPrev+1, pIn->nMem,
96461 sqlite3ExprCodeCopy(pParse, pIn->iMem, regPrev+1, pIn->nMem);
96479 sqlite3VdbeAddOp3(v, OP_MakeRecord, pIn->iMem, pIn->nMem, r1);
96495 assert( pIn->nMem==1 );
96521 assert( pIn->nMem==1 );
96533 pDest->iMem = sqlite3GetTempRange(pParse, pIn->nMem);
96534 pDest->nMem = pIn->nMem;
96536 sqlite3ExprCodeMove(pParse, pIn->iMem, pDest->iMem, pDest->nMem);
96551 sqlite3VdbeAddOp2(v, OP_ResultRow, pIn->iMem, pIn->nMem);
96552 sqlite3ExprCacheAffinityChange(pParse, pIn->iMem, pIn->nMem);
96820 nMem;
96821 regLimitB = ++pParse->nMem;
96833 regAddrA = ++pParse->nMem;
96834 regEofA = ++pParse->nMem;
96835 regAddrB = ++pParse->nMem;
96836 regEofB = ++pParse->nMem;
96837 regOutA = ++pParse->nMem;
96838 regOutB = ++pParse->nMem;
98137 if( regHit==0 && pAggInfo->nAccumulator ) regHit = ++pParse->nMem;
98366 pItem->regReturn = ++pParse->nMem;
98543 int iFlag = ++pParse->nMem;
98544 int iBase = pParse->nMem+1;
98546 pParse->nMem += (pEList->nExpr*2);
98665 iUseFlag = ++pParse->nMem;
98666 iAbortFlag = ++pParse->nMem;
98667 regOutputRow = ++pParse->nMem;
98669 regReset = ++pParse->nMem;
98671 iAMem = pParse->nMem + 1;
98672 pParse->nMem += pGroupBy->nExpr;
98673 iBMem = pParse->nMem + 1;
98674 pParse->nMem += pGroupBy->nExpr;
99905 if( pParse->nMem<3 ){
99906 pParse->nMem = 3;
100219 pProgram->nMem = pSubParse->nMem;
100293 sqlite3VdbeAddOp3(v, OP_Program, reg, ignoreJump, ++pParse->nMem);
100688 reg = ++pParse->nMem;
100693 reg = ++pParse->nMem;
100719 regRowSet = ++pParse->nMem;
100720 regOldRowid = regNewRowid = ++pParse->nMem;
100722 regOld = pParse->nMem + 1;
100723 pParse->nMem += pTab->nCol;
100726 regNewRowid = ++pParse->nMem;
100728 regNew = pParse->nMem + 1;
100729 pParse->nMem += pTab->nCol;
100775 regRowCount = ++pParse->nMem;
101094 iReg = ++pParse->nMem;
101095 pParse->nMem += pTab->nCol+1;
106123 regBase = pParse->nMem + 1;
106125 pParse->nMem += nReg;
106383 pLevel->iLeftJoin = ++pParse->nMem;
106504 memEndValue = ++pParse->nMem;
106815 int regReturn = ++pParse->nMem; /* Register used with OP_Gosub */
106866 regRowset = ++pParse->nMem;
106867 regRowid = ++pParse->nMem;