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

Function _readDbPage

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

Source from the content-addressed store, hash-verified

58640 STACKTOP = sp;return ($$2$i|0);
58641}
58642function _readDbPage($0) {
58643 $0 = $0|0;
58644 var $$ = 0, $$0 = 0, $$030 = 0, $$idx = 0, $$idx$val = 0, $$idx31 = 0, $$idx31$val = 0, $$pr = 0, $$pre = 0, $$pre$phi32Z2D = 0, $$pre$phiZ2D = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0;
58645 var $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0;
58646 var $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0;
58647 var $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
58648 sp = STACKTOP;
58649 STACKTOP = STACKTOP + 16|0;
58650 $1 = sp;
58651 $2 = ((($0)) + 20|0);
58652 $3 = HEAP32[$2>>2]|0;
58653 HEAP32[$1>>2] = 0;
58654 $4 = ((($3)) + 212|0);
58655 $5 = HEAP32[$4>>2]|0;
58656 $6 = ($5|0)==(0|0);
58657 if ($6) {
58658 $7 = ((($3)) + 152|0);
58659 $8 = HEAP32[$7>>2]|0;
58660 $$pre = ((($0)) + 24|0);
58661 $$pre$phiZ2D = $$pre;$38 = $8;
58662 label = 6;
58663 } else {
58664 $9 = ((($0)) + 24|0);
58665 $10 = HEAP32[$9>>2]|0;
58666 $11 = (_sqlite3WalFindFrame($5,$10,$1)|0);
58667 $12 = ($11|0)==(0);
58668 if (!($12)) {
58669 $$0 = $11;
58670 STACKTOP = sp;return ($$0|0);
58671 }
58672 $$pr = HEAP32[$1>>2]|0;
58673 $13 = ($$pr|0)==(0);
58674 $14 = ((($3)) + 152|0);
58675 $15 = HEAP32[$14>>2]|0;
58676 if ($13) {
58677 $$pre$phiZ2D = $9;$38 = $15;
58678 label = 6;
58679 } else {
58680 $16 = HEAP32[$4>>2]|0;
58681 $17 = ((($0)) + 4|0);
58682 $18 = HEAP32[$17>>2]|0;
58683 $$idx = ((($16)) + 8|0);
58684 $$idx$val = HEAP32[$$idx>>2]|0;
58685 $$idx31 = ((($16)) + 66|0);
58686 $$idx31$val = HEAP16[$$idx31>>1]|0;
58687 $19 = $$idx31$val&65535;
58688 $20 = $19 & 65024;
58689 $21 = $19 << 16;
58690 $22 = $21 & 65536;
58691 $23 = $22 | $20;
58692 $24 = (($$pr) + -1)|0;
58693 $25 = $23 | 24;
58694 $26 = (___muldi3(($25|0),0,($24|0),0)|0);
58695 $27 = tempRet0;
58696 $28 = (_i64Add(($26|0),($27|0),56,0)|0);
58697 $29 = tempRet0;
58698 $30 = ($23|0)<($15|0);
58699 $31 = $30 ? $23 : $15;

Callers 2

_getPageNormalFunction · 0.85
_pagerUndoCallbackFunction · 0.85

Calls 3

_sqlite3WalFindFrameFunction · 0.85
___muldi3Function · 0.85
_i64AddFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…