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

Function _pcache1Cachesize

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

Source from the content-addressed store, hash-verified

21988 return ($$0|0);
21989}
21990function _pcache1Cachesize($0,$1) {
21991 $0 = $0|0;
21992 $1 = $1|0;
21993 var $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, sp = 0;
21994 sp = STACKTOP;
21995 $2 = ((($0)) + 20|0);
21996 $3 = HEAP32[$2>>2]|0;
21997 $4 = ($3|0)==(0);
21998 if ($4) {
21999 return;
22000 }
22001 $5 = HEAP32[$0>>2]|0;
22002 $6 = ((($0)) + 28|0);
22003 $7 = HEAP32[$6>>2]|0;
22004 $8 = (($1) - ($7))|0;
22005 $9 = ((($5)) + 4|0);
22006 $10 = HEAP32[$9>>2]|0;
22007 $11 = (($10) + ($8))|0;
22008 HEAP32[$9>>2] = $11;
22009 $12 = (($11) + 10)|0;
22010 $13 = ((($5)) + 8|0);
22011 $14 = HEAP32[$13>>2]|0;
22012 $15 = (($12) - ($14))|0;
22013 $16 = ((($5)) + 12|0);
22014 HEAP32[$16>>2] = $15;
22015 HEAP32[$6>>2] = $1;
22016 $17 = ($1*9)|0;
22017 $18 = (($17>>>0) / 10)&-1;
22018 $19 = ((($0)) + 32|0);
22019 HEAP32[$19>>2] = $18;
22020 _pcache1EnforceMaxPage($0);
22021 return;
22022}
22023function _pcache1Pagecount($0) {
22024 $0 = $0|0;
22025 var $1 = 0, $2 = 0, label = 0, sp = 0;

Callers

nothing calls this directly

Calls 1

_pcache1EnforceMaxPageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…