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

Function _sqlite3ValueFree

js/sql-debug.js:45180–45253  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

45178 }
45179}
45180function _sqlite3ValueFree($0) {
45181 $0 = $0|0;
45182 var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
45183 var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
45184 sp = STACKTOP;
45185 $1 = ($0|0)==(0|0);
45186 if ($1) {
45187 return;
45188 }
45189 $2 = ((($0)) + 8|0);
45190 $3 = HEAP16[$2>>1]|0;
45191 $4 = $3 & 9312;
45192 $5 = ($4<<16>>16)==(0);
45193 if ($5) {
45194 $6 = ((($0)) + 24|0);
45195 $7 = HEAP32[$6>>2]|0;
45196 $8 = ($7|0)==(0);
45197 if (!($8)) {
45198 label = 4;
45199 }
45200 } else {
45201 label = 4;
45202 }
45203 if ((label|0) == 4) {
45204 _vdbeMemClear($0);
45205 }
45206 $9 = ((($0)) + 32|0);
45207 $10 = HEAP32[$9>>2]|0;
45208 $11 = ($10|0)==(0|0);
45209 if (!($11)) {
45210 $12 = ((($10)) + 464|0);
45211 $13 = HEAP32[$12>>2]|0;
45212 $14 = ($13|0)==(0|0);
45213 if (!($14)) {
45214 _measureAllocationSize($10,$0);
45215 return;
45216 }
45217 $15 = $0;
45218 $16 = ((($10)) + 296|0);
45219 $17 = HEAP32[$16>>2]|0;
45220 $18 = ($15>>>0)<($17>>>0);
45221 if (!($18)) {
45222 $19 = ((($10)) + 300|0);
45223 $20 = HEAP32[$19>>2]|0;
45224 $21 = ($15>>>0)<($20>>>0);
45225 if ($21) {
45226 $22 = ((($10)) + 292|0);
45227 $23 = HEAP32[$22>>2]|0;
45228 HEAP32[$0>>2] = $23;
45229 HEAP32[$22>>2] = $0;
45230 return;
45231 }
45232 }
45233 }
45234 $24 = HEAP32[2]|0;
45235 $25 = ($24|0)==(0);
45236 if ($25) {
45237 $33 = HEAP32[(56)>>2]|0;

Callers 6

_freeP4Function · 0.85
_sqlite3GetCollSeqFunction · 0.85
_valueFromExprFunction · 0.85
_sqlite3ExprCompareFunction · 0.85
_exprAnalyzeFunction · 0.85

Calls 2

_vdbeMemClearFunction · 0.85
_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…