MCPcopy Create free account
hub / github.com/sql-js/sql.js / _pcache1Rekey

Function _pcache1Rekey

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

Source from the content-addressed store, hash-verified

22234 return;
22235}
22236function _pcache1Rekey($0,$1,$2,$3) {
22237 $0 = $0|0;
22238 $1 = $1|0;
22239 $2 = $2|0;
22240 $3 = $3|0;
22241 var $$0 = 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, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
22242 var label = 0, sp = 0;
22243 sp = STACKTOP;
22244 $4 = ((($0)) + 48|0);
22245 $5 = HEAP32[$4>>2]|0;
22246 $6 = (($2>>>0) % ($5>>>0))&-1;
22247 $7 = ((($0)) + 52|0);
22248 $8 = HEAP32[$7>>2]|0;
22249 $9 = (($8) + ($6<<2)|0);
22250 $$0 = $9;
22251 while(1) {
22252 $10 = HEAP32[$$0>>2]|0;
22253 $11 = ($10|0)==($1|0);
22254 $12 = ((($10)) + 16|0);
22255 if ($11) {
22256 break;
22257 } else {
22258 $$0 = $12;
22259 }
22260 }
22261 $13 = ((($1)) + 16|0);
22262 $14 = HEAP32[$13>>2]|0;
22263 HEAP32[$$0>>2] = $14;
22264 $15 = (($3>>>0) % ($5>>>0))&-1;
22265 $16 = ((($1)) + 8|0);
22266 HEAP32[$16>>2] = $3;
22267 $17 = HEAP32[$7>>2]|0;
22268 $18 = (($17) + ($15<<2)|0);
22269 $19 = HEAP32[$18>>2]|0;
22270 HEAP32[$13>>2] = $19;
22271 HEAP32[$18>>2] = $1;
22272 $20 = ((($0)) + 36|0);
22273 $21 = HEAP32[$20>>2]|0;
22274 $22 = ($21>>>0)<($3>>>0);
22275 if (!($22)) {
22276 return;
22277 }
22278 HEAP32[$20>>2] = $3;
22279 return;
22280}
22281function _pcache1Truncate($0,$1) {
22282 $0 = $0|0;
22283 $1 = $1|0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…