MCPcopy Index your code
hub / github.com/sql-js/sql.js / _enlargeAndAppend

Function _enlargeAndAppend

js/sql-debug.js:13131–13152  ·  view source on GitHub ↗
($0,$1,$2)

Source from the content-addressed store, hash-verified

13129 return ($$0$i4|0);
13130}
13131function _enlargeAndAppend($0,$1,$2) {
13132 $0 = $0|0;
13133 $1 = $1|0;
13134 $2 = $2|0;
13135 var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
13136 sp = STACKTOP;
13137 $3 = (_sqlite3StrAccumEnlarge($0,$2)|0);
13138 $4 = ($3|0)>(0);
13139 if (!($4)) {
13140 return;
13141 }
13142 $5 = ((($0)) + 4|0);
13143 $6 = HEAP32[$5>>2]|0;
13144 $7 = ((($0)) + 16|0);
13145 $8 = HEAP32[$7>>2]|0;
13146 $9 = (($6) + ($8)|0);
13147 _memcpy(($9|0),($1|0),($3|0))|0;
13148 $10 = HEAP32[$7>>2]|0;
13149 $11 = (($10) + ($3))|0;
13150 HEAP32[$7>>2] = $11;
13151 return;
13152}
13153function _doubleToInt64($0) {
13154 $0 = +$0;
13155 var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;

Callers 10

_sqlite3VXPrintfFunction · 0.85
_groupConcatStepFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3UniqueConstraintFunction · 0.85
_pragmaVtabConnectFunction · 0.85
_pragmaVtabFilterFunction · 0.85
_explainAppendTermFunction · 0.85
_checkAppendMsgFunction · 0.85
_sqlite3VdbeExpandSqlFunction · 0.85

Calls 2

_sqlite3StrAccumEnlargeFunction · 0.85
_memcpyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…