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

Function _pager_unlock

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

Source from the content-addressed store, hash-verified

51058 return (0)|0;
51059}
51060function _pager_unlock($0) {
51061 $0 = $0|0;
51062 var $$011$i = 0, $$phi$trans$insert$i = 0, $$pre$i = 0, $$pre13$i = 0, $$sink = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0;
51063 var $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 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, $25 = 0;
51064 var $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, $43 = 0;
51065 var $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, $61 = 0;
51066 var $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0;
51067 var $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0;
51068 var $99 = 0, $not$ = 0, $phitmp = 0, $phitmp32 = 0, label = 0, sp = 0;
51069 sp = STACKTOP;
51070 $1 = ((($0)) + 56|0);
51071 $2 = HEAP32[$1>>2]|0;
51072 _sqlite3BitvecDestroy($2);
51073 HEAP32[$1>>2] = 0;
51074 $3 = ((($0)) + 96|0);
51075 $4 = HEAP32[$3>>2]|0;
51076 $5 = ($4|0)>(0);
51077 if ($5) {
51078 $6 = ((($0)) + 92|0);
51079 $$011$i = 0;
51080 while(1) {
51081 $7 = HEAP32[$6>>2]|0;
51082 $8 = (((($7) + (($$011$i*48)|0)|0)) + 16|0);
51083 $9 = HEAP32[$8>>2]|0;
51084 _sqlite3BitvecDestroy($9);
51085 $10 = (($$011$i) + 1)|0;
51086 $11 = HEAP32[$3>>2]|0;
51087 $12 = ($10|0)<($11|0);
51088 if ($12) {
51089 $$011$i = $10;
51090 } else {
51091 break;
51092 }
51093 }
51094 }
51095 $13 = ((($0)) + 4|0);
51096 $14 = HEAP8[$13>>0]|0;
51097 $15 = ($14<<24>>24)==(0);
51098 $$phi$trans$insert$i = ((($0)) + 68|0);
51099 $$pre$i = HEAP32[$$phi$trans$insert$i>>2]|0;
51100 $$pre13$i = HEAP32[$$pre$i>>2]|0;
51101 if ($15) {
51102 $17 = ($$pre13$i|0)==(0|0);
51103 if (!($17)) {
51104 $19 = $$pre13$i;
51105 label = 7;
51106 }
51107 } else {
51108 $16 = ($$pre13$i|0)==(3992|0);
51109 if ($16) {
51110 $19 = 3992;
51111 label = 7;
51112 }
51113 }
51114 if ((label|0) == 7) {
51115 $18 = ((($19)) + 4|0);
51116 $20 = HEAP32[$18>>2]|0;
51117 (FUNCTION_TABLE_ii[$20 & 255]($$pre$i)|0);

Callers 7

_getPageNormalFunction · 0.85
_sqlite3PagerCloseFunction · 0.85
_sqlite3BtreeBeginTransFunction · 0.85
_unlockBtreeIfUnusedFunction · 0.85
_sqlite3PagerSharedLockFunction · 0.85
_sqlite3BtreeRollbackFunction · 0.85

Calls 2

_sqlite3BitvecDestroyFunction · 0.85
_pager_resetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…