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

Function _vdbeFreeOpArray

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

Source from the content-addressed store, hash-verified

44683 }
44684}
44685function _vdbeFreeOpArray($0,$1,$2) {
44686 $0 = $0|0;
44687 $1 = $1|0;
44688 $2 = $2|0;
44689 var $$012 = 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, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0;
44690 var $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
44691 sp = STACKTOP;
44692 $3 = ($1|0)==(0|0);
44693 if ($3) {
44694 return;
44695 }
44696 $4 = ($2|0)<(1);
44697 if (!($4)) {
44698 $5 = (($2) + -1)|0;
44699 $6 = (($1) + (($5*20)|0)|0);
44700 $$012 = $6;
44701 while(1) {
44702 $7 = ((($$012)) + 1|0);
44703 $8 = HEAP8[$7>>0]|0;
44704 $9 = ($8<<24>>24)<(-6);
44705 if ($9) {
44706 $10 = ((($$012)) + 16|0);
44707 $11 = $8 << 24 >> 24;
44708 $12 = HEAP32[$10>>2]|0;
44709 _freeP4($0,$11,$12);
44710 }
44711 $13 = ((($$012)) + -20|0);
44712 $14 = ($13>>>0)<($1>>>0);
44713 if ($14) {
44714 break;
44715 } else {
44716 $$012 = $13;
44717 }
44718 }
44719 }
44720 $15 = ($0|0)==(0|0);
44721 if (!($15)) {
44722 $16 = ((($0)) + 464|0);
44723 $17 = HEAP32[$16>>2]|0;
44724 $18 = ($17|0)==(0|0);
44725 if (!($18)) {
44726 _measureAllocationSize($0,$1);
44727 return;
44728 }
44729 $19 = $1;
44730 $20 = ((($0)) + 296|0);
44731 $21 = HEAP32[$20>>2]|0;
44732 $22 = ($19>>>0)<($21>>>0);
44733 if (!($22)) {
44734 $23 = ((($0)) + 300|0);
44735 $24 = HEAP32[$23>>2]|0;
44736 $25 = ($19>>>0)<($24>>>0);
44737 if ($25) {
44738 $26 = ((($0)) + 292|0);
44739 $27 = HEAP32[$26>>2]|0;
44740 HEAP32[$1>>2] = $27;
44741 HEAP32[$26>>2] = $1;
44742 return;

Callers 1

_sqlite3VdbeClearObjectFunction · 0.85

Calls 2

_freeP4Function · 0.85
_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…