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

Function _pcache1ResizeHash

js/sql-debug.js:23589–23655  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

23587 return ($$0|0);
23588}
23589function _pcache1ResizeHash($0) {
23590 $0 = $0|0;
23591 var $$ = 0, $$03639 = 0, $$038 = 0, $$lcssa = 0, $$pre = 0, $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;
23592 var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
23593 sp = STACKTOP;
23594 $1 = ((($0)) + 48|0);
23595 $2 = HEAP32[$1>>2]|0;
23596 $3 = $2 << 1;
23597 $4 = ($3>>>0)>(256);
23598 $$ = $4 ? $3 : 256;
23599 $5 = $$ << 2;
23600 $6 = (_sqlite3MallocZero($5,0)|0);
23601 $7 = ($6|0)==(0|0);
23602 if ($7) {
23603 return;
23604 }
23605 $8 = HEAP32[$1>>2]|0;
23606 $9 = ($8|0)==(0);
23607 $10 = ((($0)) + 52|0);
23608 $11 = HEAP32[$10>>2]|0;
23609 if ($9) {
23610 $$lcssa = $11;
23611 } else {
23612 $$03639 = 0;$13 = $11;
23613 while(1) {
23614 $12 = (($13) + ($$03639<<2)|0);
23615 $14 = HEAP32[$12>>2]|0;
23616 $15 = ($14|0)==(0|0);
23617 if ($15) {
23618 $26 = $13;
23619 } else {
23620 $$038 = $14;
23621 while(1) {
23622 $16 = ((($$038)) + 8|0);
23623 $17 = HEAP32[$16>>2]|0;
23624 $18 = (($17>>>0) % ($$>>>0))&-1;
23625 $19 = ((($$038)) + 16|0);
23626 $20 = HEAP32[$19>>2]|0;
23627 $21 = (($6) + ($18<<2)|0);
23628 $22 = HEAP32[$21>>2]|0;
23629 HEAP32[$19>>2] = $22;
23630 HEAP32[$21>>2] = $$038;
23631 $23 = ($20|0)==(0|0);
23632 if ($23) {
23633 break;
23634 } else {
23635 $$038 = $20;
23636 }
23637 }
23638 $$pre = HEAP32[$10>>2]|0;
23639 $26 = $$pre;
23640 }
23641 $24 = (($$03639) + 1)|0;
23642 $25 = ($24>>>0)<($8>>>0);
23643 if ($25) {
23644 $$03639 = $24;$13 = $26;
23645 } else {
23646 $$lcssa = $26;

Callers 2

_pcache1CreateFunction · 0.85
_pcache1FetchStage2Function · 0.85

Calls 2

_sqlite3MallocZeroFunction · 0.85
_sqlite3_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…