MCPcopy
hub / github.com/sql-js/sql.js / _growOp3

Function _growOp3

js/sql-debug.js:138817–138960  ·  view source on GitHub ↗
($0,$1,$2,$3,$4)

Source from the content-addressed store, hash-verified

138815 return ($$0|0);
138816}
138817function _growOp3($0,$1,$2,$3,$4) {
138818 $0 = $0|0;
138819 $1 = $1|0;
138820 $2 = $2|0;
138821 $3 = $3|0;
138822 $4 = $4|0;
138823 var $$$i = 0, $$0 = 0, $$0$i$i = 0, $$phi$trans$insert = 0, $$pre = 0, $$pre18 = 0, $$pre20 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0;
138824 var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0;
138825 var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
138826 var $61 = 0, $62 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
138827 sp = STACKTOP;
138828 $5 = ((($0)) + 12|0);
138829 $6 = ((($0)) + 88|0);
138830 $7 = ((($0)) + 136|0);
138831 $$pre = HEAP32[$5>>2]|0;
138832 $$phi$trans$insert = ((($$pre)) + 48|0);
138833 $$pre18 = HEAP32[$$phi$trans$insert>>2]|0;
138834 $10 = $$pre18;$9 = $$pre;
138835 while(1) {
138836 $8 = ((($9)) + 48|0);
138837 $11 = ($10|0)==(0);
138838 $12 = $10 << 1;
138839 $$$i = $11 ? 51 : $12;
138840 $13 = HEAP32[$9>>2]|0;
138841 $14 = ((($13)) + 120|0);
138842 $15 = HEAP32[$14>>2]|0;
138843 $16 = ($$$i|0)>($15|0);
138844 if ($16) {
138845 label = 3;
138846 break;
138847 }
138848 $30 = HEAP32[$6>>2]|0;
138849 $31 = ($$$i*20)|0;
138850 $32 = (_sqlite3DbRealloc($13,$30,$31,0)|0);
138851 $33 = ($32|0)==(0|0);
138852 if ($33) {
138853 $$0 = 1;
138854 label = 16;
138855 break;
138856 }
138857 $34 = HEAP32[$9>>2]|0;
138858 $35 = ($34|0)==(0|0);
138859 $$pre20 = $32;
138860 if ($35) {
138861 label = 12;
138862 } else {
138863 $36 = ((($34)) + 296|0);
138864 $37 = HEAP32[$36>>2]|0;
138865 $38 = ($$pre20>>>0)<($37>>>0);
138866 if ($38) {
138867 label = 12;
138868 } else {
138869 $39 = ((($34)) + 300|0);
138870 $40 = HEAP32[$39>>2]|0;
138871 $41 = ($$pre20>>>0)<($40>>>0);
138872 if ($41) {
138873 $44 = ((($34)) + 268|0);
138874 $45 = HEAP16[$44>>1]|0;

Callers 15

_yy_reduceFunction · 0.85
_sqlite3VdbeCreateFunction · 0.85
_sqlite3OpenTableFunction · 0.85
_sqlite3ExprCodeFunction · 0.85
_sqlite3StartTableFunction · 0.85
_sqlite3EndTableFunction · 0.85
_sqlite3CreateIndexFunction · 0.85
_sqlite3DropTableFunction · 0.85
_sqlite3SelectFunction · 0.85
_sqlite3DeleteFromFunction · 0.85
_sqlite3UpdateFunction · 0.85
_sqlite3InsertFunction · 0.85

Calls 1

_sqlite3DbReallocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…