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

Function _freeP4Mem

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

Source from the content-addressed store, hash-verified

45252 }
45253}
45254function _freeP4Mem($0,$1) {
45255 $0 = $0|0;
45256 $1 = $1|0;
45257 var $$pre = 0, $$pre$phiZ2D = 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;
45258 var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
45259 var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
45260 sp = STACKTOP;
45261 $2 = ((($1)) + 24|0);
45262 $3 = HEAP32[$2>>2]|0;
45263 $4 = ($3|0)==(0);
45264 L1: do {
45265 if ($4) {
45266 label = 13;
45267 } else {
45268 $5 = ((($1)) + 20|0);
45269 $6 = HEAP32[$5>>2]|0;
45270 $7 = ($6|0)==(0|0);
45271 if ($7) {
45272 label = 13;
45273 } else {
45274 $8 = ($0|0)==(0|0);
45275 do {
45276 if (!($8)) {
45277 $9 = ((($0)) + 464|0);
45278 $10 = HEAP32[$9>>2]|0;
45279 $11 = ($10|0)==(0|0);
45280 if ($11) {
45281 $12 = $6;
45282 $13 = ((($0)) + 296|0);
45283 $14 = HEAP32[$13>>2]|0;
45284 $15 = ($12>>>0)<($14>>>0);
45285 if ($15) {
45286 break;
45287 }
45288 $16 = ((($0)) + 300|0);
45289 $17 = HEAP32[$16>>2]|0;
45290 $18 = ($12>>>0)<($17>>>0);
45291 if (!($18)) {
45292 break;
45293 }
45294 $19 = ((($0)) + 292|0);
45295 $20 = HEAP32[$19>>2]|0;
45296 HEAP32[$6>>2] = $20;
45297 HEAP32[$19>>2] = $6;
45298 } else {
45299 _measureAllocationSize($0,$6);
45300 }
45301 $$pre$phiZ2D = $9;$34 = $1;
45302 label = 15;
45303 break L1;
45304 }
45305 } while(0);
45306 $21 = HEAP32[2]|0;
45307 $22 = ($21|0)==(0);
45308 if ($22) {
45309 $30 = HEAP32[(56)>>2]|0;
45310 FUNCTION_TABLE_vi[$30 & 255]($6);
45311 label = 13;

Callers 2

_freeP4Function · 0.85

Calls 1

_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…