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

Function _pagerStress

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

Source from the content-addressed store, hash-verified

49925 return ($$0|0);
49926}
49927function _pagerStress($0,$1) {
49928 $0 = $0|0;
49929 $1 = $1|0;
49930 var $$023 = 0, $$1 = 0, $$125 = 0, $$sink$i$i = 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;
49931 var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0;
49932 var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
49933 var $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $7 = 0, $8 = 0, $9 = 0, $getPageNormal$sink$i$i = 0, $trunc$i = 0, label = 0, sp = 0;
49934 sp = STACKTOP;
49935 $2 = ((($0)) + 40|0);
49936 $3 = HEAP32[$2>>2]|0;
49937 $4 = ($3|0)==(0);
49938 if (!($4)) {
49939 $$023 = 0;
49940 return ($$023|0);
49941 }
49942 $5 = ((($0)) + 20|0);
49943 $6 = HEAP8[$5>>0]|0;
49944 $7 = ($6<<24>>24)==(0);
49945 if (!($7)) {
49946 $8 = $6 & 3;
49947 $9 = ($8<<24>>24)==(0);
49948 if (!($9)) {
49949 $$023 = 0;
49950 return ($$023|0);
49951 }
49952 $10 = ((($1)) + 28|0);
49953 $11 = HEAP16[$10>>1]|0;
49954 $12 = $11 & 8;
49955 $13 = ($12<<16>>16)==(0);
49956 if (!($13)) {
49957 $$023 = 0;
49958 return ($$023|0);
49959 }
49960 }
49961 $14 = ((($1)) + 16|0);
49962 HEAP32[$14>>2] = 0;
49963 $15 = ((($0)) + 212|0);
49964 $16 = HEAP32[$15>>2]|0;
49965 $17 = ($16|0)==(0|0);
49966 do {
49967 if ($17) {
49968 $21 = ((($1)) + 28|0);
49969 $22 = HEAP16[$21>>1]|0;
49970 $23 = $22 & 8;
49971 $24 = ($23<<16>>16)==(0);
49972 if ($24) {
49973 $25 = ((($0)) + 16|0);
49974 $26 = HEAP8[$25>>0]|0;
49975 $27 = ($26<<24>>24)==(3);
49976 if ($27) {
49977 label = 10;
49978 }
49979 } else {
49980 label = 10;
49981 }
49982 if ((label|0) == 10) {
49983 $28 = (_syncJournal($0,1)|0);
49984 $29 = ($28|0)==(0);

Callers

nothing calls this directly

Calls 4

_syncJournalFunction · 0.85
_pager_write_pagelistFunction · 0.85
_pagerWalFramesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…