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

Function _btreeGetHasContent

js/sql-debug.js:53011–53750  ·  view source on GitHub ↗
($pBt,$pgno)

Source from the content-addressed store, hash-verified

53009 STACKTOP = sp;return ($8|0);
53010}
53011function _btreeGetHasContent($pBt,$pgno) {
53012 $pBt = $pBt|0;
53013 $pgno = $pgno|0;
53014 var $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $p = 0, label = 0, sp = 0;
53015 sp = STACKTOP;
53016 STACKTOP = STACKTOP + 16|0;
53017 $0 = sp + 8|0;
53018 $1 = sp + 4|0;
53019 $p = sp;
53020 HEAP32[$0>>2] = $pBt;
53021 HEAP32[$1>>2] = $pgno;
53022 $2 = HEAP32[$0>>2]|0;
53023 $3 = ((($2)) + 60|0);
53024 $4 = HEAP32[$3>>2]|0;
53025 HEAP32[$p>>2] = $4;
53026 $5 = HEAP32[$p>>2]|0;
53027 $6 = ($5|0)!=(0|0);
53028 if (!($6)) {
53029 $16 = 0;
53030 $15 = $16&1;
53031 STACKTOP = sp;return ($15|0);
53032 }
53033 HEAP32[$8>>2] = $13;
53034 if ($11) {
53035 $22 = ($13|0)==(0);
53036 if (!($22)) {
53037 $$2 = 0;
53038 STACKTOP = sp;return ($$2|0);
53039 }
53040 $23 = ((($0)) + 68|0);
53041 $24 = HEAP32[$23>>2]|0;
53042 $25 = HEAP32[$24>>2]|0;
53043 $26 = ($25|0)==(0|0);
53044 if ($26) {
53045 $$2 = 0;
53046 STACKTOP = sp;return ($$2|0);
53047 }
53048 $27 = ($25|0)==(3992|0);
53049 if ($27) {
53050 $28 = ((($24)) + 16|0);
53051 $29 = HEAP32[$28>>2]|0;
53052 $30 = ($29|0)==(0|0);
53053 if (!($30)) {
53054 $$in$i62 = $29;
53055 while(1) {
53056 $31 = HEAP32[$$in$i62>>2]|0;
53057 $32 = HEAP32[2]|0;
53058 $33 = ($32|0)==(0);
53059 if ($33) {
53060 $42 = HEAP32[(56)>>2]|0;
53061 FUNCTION_TABLE_vi[$42 & 255]($$in$i62);
53062 } else {
53063 $34 = HEAP32[(64)>>2]|0;
53064 $35 = (FUNCTION_TABLE_ii[$34 & 255]($$in$i62)|0);
53065 $36 = HEAP32[11822]|0;
53066 $37 = (($36) - ($35))|0;
53067 HEAP32[11822] = $37;
53068 $38 = HEAP32[11825]|0;

Callers

nothing calls this directly

Calls 11

_i64SubtractFunction · 0.85
_memsetFunction · 0.85
_pager_playback_one_pageFunction · 0.85
_pagerUndoCallbackFunction · 0.85
_walIndexPageFunction · 0.85
_sqlite3PcacheDirtyListFunction · 0.85
_readJournalHdrFunction · 0.85
_i64AddFunction · 0.85
___divdi3Function · 0.85
___muldi3Function · 0.85
_sqlite3BitvecDestroyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…