Lines Matching defs:nMem
10355 int nMem
13223 int nMem; /* Number of memory cells used so far */
15393 int nMem; /* Number of entries in aMem */
15583 int nMem; /* Number of memory locations currently allocated */
65741 for(i=1, pX=&pVdbe->aMem[1]; i<=pVdbe->nMem; i++, pX++){
68135 assert( p->nMem>9 );
68375 for(i=1; i<p->nMem; i++){
68420 int nMem; /* Number of VM memory registers */
68437 nMem = pParse->nMem;
68444 ** cells (nMem+1-nCursor)..nMem, inclusive, will never be used by
68447 ** cursor 0 is stored in memory cell nMem. Memory cell (nMem-1)
68452 nMem += nCursor;
68462 if( pParse->explain && nMem<10 ){
68463 nMem = 10;
68482 p->aMem = allocSpace(p->aMem, nMem*sizeof(Mem), &zCsr, zEnd, &nByte);
68514 p->aMem--; /* aMem[] goes from 1..nMem */
68515 p->nMem = nMem; /* not from 0..nMem-1 */
68516 for(n=1; n<=nMem; n++){
68584 v->nMem = pFrame->nMem;
68612 releaseMemArray(&p->aMem[1], p->nMem);
68637 for(i=1; i<=p->nMem; i++) assert( p->aMem[i].flags==MEM_Undefined );
73024 ** space. Memory cell (p->nMem) corresponds to cursor 0. Space for
73025 ** cursor 1 is managed by memory cell (p->nMem-1), etc.
73027 Mem *pMem = &p->aMem[p->nMem-iCur];
73442 assert( pOp->p2<=(p->nMem-p->nCursor) );
73571 assert( pOp->p1<=(p->nMem-p->nCursor) );
73578 assert( pOp->p2<=(p->nMem-p->nCursor) );
73585 assert( pOp->p3<=(p->nMem-p->nCursor) );
73592 assert( pOp->p2<=(p->nMem-p->nCursor) );
73597 assert( pOp->p3<=(p->nMem-p->nCursor) );
73696 assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) );
73736 assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) );
74001 assert( pOp->p3<=(p->nMem-p->nCursor) );
74026 assert( pOp->p3<=(p->nMem-p->nCursor) );
74047 assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) );
74114 assert( pOut<=&aMem[(p->nMem-p->nCursor)] );
74115 assert( pIn1<=&aMem[(p->nMem-p->nCursor)] );
74199 assert( pOp->p1+pOp->p2<=(p->nMem-p->nCursor)+1 );
74513 assert( pOp->p3>0 && pOp->p3<=(p->nMem
74514 assert( n==0 || (pOp->p2>0 && pOp->p2+n<=(p->nMem-p->nCursor)+1) );
75009 assert( p1>0 && p1+mx<=(p->nMem-p->nCursor)+1 );
75010 assert( p2>0 && p2+mx<=(p->nMem-p->nCursor)+1 );
75012 assert( p1>0 && p1+n<=(p->nMem-p->nCursor)+1 );
75013 assert( p2>0 && p2+n<=(p->nMem-p->nCursor)+1 );
75271 assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) );
75528 assert( pIn1 <= &p->aMem[(p->nMem-p->nCursor)] );
75590 assert( nField>0 && pOp->p2>0 && pOp->p2+nField<=(p->nMem-p->nCursor)+1 );
75681 assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) );
76264 assert( p2<=(p->nMem-p->nCursor) );
77040 assert( pOp->p3<=pFrame->nMem );
77044 assert( pOp->p3<=(p->nMem-p->nCursor) );
77777 assert( pOp->p2>0 && pOp->p2+pOp->p3<=(p->nMem-p->nCursor)+1 );
78232 assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) );
78380 int nMem; /* Number of memory registers for sub-program */
78421 /* SubProgram.nMem is set to the number of memory cells used by the
78424 ** variable nMem (and later, VdbeFrame.nChildMem) to this value.
78426 nMem = pProgram->nMem + pProgram->nCsr;
78428 + nMem * sizeof(Mem)
78440 pFrame->nChildMem = nMem;
78444 pFrame->nMem = p->nMem;
78463 assert( pProgram->nMem+pProgram->nCsr==pFrame->nChildMem );
78476 p->nMem = pFrame->nChildMem;
78478 p->apCsr = (VdbeCursor **)&aMem[p->nMem+1];
78713 assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) );
78714 assert( n==0 || (pOp->p2>0 && pOp->p2+n<=(p->nMem-p->nCursor)+1) );
78792 assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) );
79226 assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) );
79925 pParse->nMem = 1;
86771 *prRhsHasNull = ++pParse->nMem;
86809 *prRhsHasNull = rMayHaveNull = ++pParse->nMem;
87021 sqlite3SelectDestInit(&dest, 0, ++pParse->nMem);
87608 assert( target>0 && target<=pParse->nMem );
87908 r1 = pParse->nMem+1;
87909 pParse->nMem += nFarg;
88261 r2 = ++pParse->nMem;
88284 assert( target>0 && target<=pParse->nMem );
88329 iMem = ++pParse->nMem;
89012 pCol->iMem = ++pParse->nMem;
89070 pItem->iMem = ++pParse->nMem;
89142 return ++pParse->nMem;
89181 i = pParse->nMem+1;
89182 pParse->nMem += nReg;
89696 int i = ++pParse->nMem;
91022 pParse->nMem = MAX(pParse->nMem, iMem);
91116 pParse->nMem = MAX(pParse->nMem, regPrev+nColTest);
91262 pParse->nMem = MAX(pParse->nMem, regCol+nCol);
91341 iMem = pParse->nMem+1;
91371 analyzeOneTable(pParse, pTab, pOnlyIdx, iStatCur,pParse->nMem+1,pParse->nTab);
93027 pParse->nMem = 0;
93786 reg1 = pParse->regRowid = ++pParse->nMem;
93787 reg2 = pParse->regRoot = ++pParse->nMem;
93788 reg3 = ++pParse->nMem;
94752 regYield = ++pParse->nMem;
94753 regRec = ++pParse->nMem;
94754 regRowid = ++pParse->nMem;
96109 int iMem = ++pParse->nMem;
98050 memCnt = ++pParse->nMem;
98083 iRowSet = ++pParse->nMem;
98091 iPk = pParse->nMem+1;
98092 pParse->nMem += nPk;
98126 iKey = pParse->nMem + 1;
98128 if( iKey>pParse->nMem ) pParse->nMem = iKey;
98149 iKey = ++pParse->nMem;
98373 iOld = pParse->nMem+1;
98374 pParse->nMem += (1 + pTab->nCol);
102041 pToplevel->nMem++; /* Register to hold name of table */
102042 pInfo->regCtr = ++pToplevel->nMem; /* Max rowid register */
102043 pToplevel->nMem++; /* Rowid in sqlite_sequence */
102395 regRowid = regIns = pParse->nMem+1;
102396 pParse->nMem += pTab->nCol + 1;
102399 pParse->nMem++;
102456 regYield = ++pParse->nMem;
102560 regRowCount = ++pParse->nMem;
102574 aRegIdx[i] = ++pParse->nMem;
106145 pParse->nMem = 2;
106268 pParse->nMem += 2;
106360 iReg = ++pParse->nMem;
106847 pParse->nMem = 6;
106881 pParse->nMem = 4;
106916 pParse->nMem = 6;
106920 pParse->nMem = 3;
106924 assert( pParse->nMem<=ArraySize(azCol) );
106925 setAllColumnNames(v, pParse->nMem, azCol);
106936 sqlite3VdbeAddOp2(v, OP_ResultRow, 1, pParse->nMem);
106952 pParse->nMem = 5;
106972 pParse->nMem = 3;
106990 pParse->nMem = 2;
107015 pParse->nMem = 8;
107060 regResult = pParse->nMem+1;
107061 pParse->nMem += 4;
107062 regKey = ++pParse->nMem;
107063 regRow = ++pParse->nMem;
107078 if( pTab->nCol+regRow>pParse->nMem ) pParse->nMem = pTab->nCol + regRow;
107217 pParse->nMem = 6;
107268 pParse->nMem = MAX( pParse->nMem, cnt+8 );
107305 pParse->nMem = MAX(pParse->nMem, 8+j);
107550 pParse->nMem = 1;
107580 pParse->nMem = 3;
107686 pParse->nMem = 2;
109163 int regRecord = ++pParse->nMem; /* Assembled sorter record */
109173 regBase = pParse->nMem + 1;
109174 pParse->nMem += nBase;
109194 regPrevKey = pParse->nMem+1;
109195 pParse->nMem += pSort->nOBSat;
109216 pSort->regReturn = ++pParse->nMem;
109355 pParse->nMem += nPrefixReg;
109357 pDest->iSdst = pParse->nMem+1;
109358 pParse->nMem += nResultCol;
109359 }else if( pDest->iSdst+nResultCol > pParse->nMem ){
109365 pParse->nMem += nResultCol;
109399 regPrev = pParse->nMem+1;
109400 pParse->nMem += nResultCol;
109876 int regSortOut = ++pParse->nMem;
110482 p->iLimit = iLimit = ++pParse->nMem;
110500 p->iOffset = iOffset = ++pParse->nMem;
110501 pParse->nMem++; /* Allocate an extra register for limit+offset */
110672 regCurrent = ++pParse->nMem;
111545 regPrev = pParse->nMem+1;
111546 pParse->nMem += nExpr+1;
111570 regLimitA = ++pParse->nMem;
111571 regLimitB = ++pParse->nMem;
111583 regAddrA = ++pParse->nMem;
111584 regAddrB = ++pParse->nMem;
111585 regOutA = ++pParse->nMem;
111586 regOutB = ++pParse->nMem;
113339 if( regHit==0 && pAggInfo->nAccumulator ) regHit = ++pParse->nMem;
113607 pItem->regReturn = ++pParse->nMem;
113630 pItem->regReturn = ++pParse->nMem;
113843 sAggInfo.mnReg = pParse->nMem+1;
113858 sAggInfo.mxReg = pParse->nMem;
113888 iUseFlag = ++pParse->nMem;
113889 iAbortFlag = ++pParse->nMem;
113890 regOutputRow = ++pParse->nMem;
113892 regReset = ++pParse->nMem;
113894 iAMem = pParse->nMem + 1;
113895 pParse->nMem += pGroupBy->nExpr;
113896 iBMem = pParse->nMem + 1;
113897 pParse->nMem += pGroupBy->nExpr;
115061 if( pParse->nMem<3 ){
115062 pParse->nMem = 3;
115376 pProgram->nMem = pSubParse->nMem;
115451 sqlite3VdbeAddOp3(v, OP_Program, reg, ignoreJump, ++pParse->nMem);
115881 reg = ++pParse->nMem;
115887 reg = ++pParse->nMem;
115904 regRowSet = ++pParse->nMem;
115905 regOldRowid = regNewRowid = ++pParse->nMem;
115907 regOld = pParse->nMem + 1;
115908 pParse->nMem += pTab->nCol;
115911 regNewRowid = ++pParse->nMem;
115913 regNew = pParse->nMem + 1;
115914 pParse->nMem += pTab->nCol;
115974 iPk = pParse->nMem+1;
115975 pParse->nMem += nPk;
115976 regKey = ++pParse->nMem;
116005 regRowCount = ++pParse->nMem;
116335 regArg = pParse->nMem + 1;
116336 pParse->nMem += nArg;
116337 regRec = ++pParse->nMem;
116338 regRowid = ++pParse->nMem;
117210 iReg = ++pParse->nMem;
119030 regBase = pParse->nMem + 1;
119032 pParse->nMem += nReg;
119189 pLevel->iLeftJoin = ++pParse->nMem;
119261 iReleaseReg = ++pParse->nMem;
119337 memEndValue = ++pParse->nMem;
119352 iRowidReg = ++pParse->nMem;
119468 pLevel->iLikeRepCntr = ++pParse->nMem;
119605 iRowidReg = ++pParse->nMem;
119694 int regReturn = ++pParse->nMem; /* Register used with OP_Gosub */
119749 regRowset = ++pParse->nMem;
119757 regRowid = ++pParse->nMem;