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

Function _pcache1RemoveFromHash

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

Source from the content-addressed store, hash-verified

22807 return;
22808}
22809function _pcache1RemoveFromHash($0,$1) {
22810 $0 = $0|0;
22811 $1 = $1|0;
22812 var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
22813 var sp = 0;
22814 sp = STACKTOP;
22815 $2 = ((($0)) + 20|0);
22816 $3 = HEAP32[$2>>2]|0;
22817 $4 = ((($0)) + 8|0);
22818 $5 = HEAP32[$4>>2]|0;
22819 $6 = ((($3)) + 48|0);
22820 $7 = HEAP32[$6>>2]|0;
22821 $8 = (($5>>>0) % ($7>>>0))&-1;
22822 $9 = ((($3)) + 52|0);
22823 $10 = HEAP32[$9>>2]|0;
22824 $11 = (($10) + ($8<<2)|0);
22825 $$0 = $11;
22826 while(1) {
22827 $12 = HEAP32[$$0>>2]|0;
22828 $13 = ($12|0)==($0|0);
22829 $14 = ((($12)) + 16|0);
22830 if ($13) {
22831 break;
22832 } else {
22833 $$0 = $14;
22834 }
22835 }
22836 $15 = HEAP32[$14>>2]|0;
22837 HEAP32[$$0>>2] = $15;
22838 $16 = ((($3)) + 44|0);
22839 $17 = HEAP32[$16>>2]|0;
22840 $18 = (($17) + -1)|0;
22841 HEAP32[$16>>2] = $18;
22842 $19 = ($1|0)==(0);
22843 if ($19) {
22844 return;
22845 }
22846 _pcache1FreePage($0);
22847 return;
22848}
22849function _pcache1FreePage($0) {
22850 $0 = $0|0;
22851 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;

Callers

nothing calls this directly

Calls 1

_pcache1FreePageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…