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

Function _sqlite3BtreeClose

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

Source from the content-addressed store, hash-verified

79990 return;
79991}
79992function _sqlite3BtreeClose($0) {
79993 $0 = $0|0;
79994 var $$013$i = 0, $$02 = 0, $$pre = 0, $$pre3 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
79995 var $16 = 0, $17 = 0, $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;
79996 var $34 = 0, $35 = 0, $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;
79997 var $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0;
79998 var $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0;
79999 var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond$i$i$i = 0, label = 0, sp = 0;
80000 sp = STACKTOP;
80001 $1 = ((($0)) + 4|0);
80002 $2 = HEAP32[$1>>2]|0;
80003 $3 = HEAP32[$0>>2]|0;
80004 $4 = ((($2)) + 4|0);
80005 HEAP32[$4>>2] = $3;
80006 $5 = ((($2)) + 8|0);
80007 $6 = HEAP32[$5>>2]|0;
80008 $7 = ($6|0)==(0|0);
80009 if (!($7)) {
80010 $$02 = $6;
80011 while(1) {
80012 $8 = ((($$02)) + 16|0);
80013 $9 = HEAP32[$8>>2]|0;
80014 $10 = ((($$02)) + 8|0);
80015 $11 = HEAP32[$10>>2]|0;
80016 $12 = ($11|0)==($0|0);
80017 if ($12) {
80018 _sqlite3BtreeCloseCursor($$02);
80019 }
80020 $13 = ($9|0)==(0|0);
80021 if ($13) {
80022 break;
80023 } else {
80024 $$02 = $9;
80025 }
80026 $42 = HEAP32[$pSorter>>2]|0;
80027 $43 = ((($42)) + 60|0);
80028 HEAP8[$43>>0] = 0;
80029 }
80030 }
80031 _sqlite3BtreeRollback($0,0,0);
80032 $14 = ((($0)) + 9|0);
80033 $15 = HEAP8[$14>>0]|0;
80034 $16 = ($15<<24>>24)==(0);
80035 L8: do {
80036 if ($16) {
80037 label = 12;
80038 } else {
80039 $17 = ((($2)) + 64|0);
80040 $18 = HEAP32[$17>>2]|0;
80041 $19 = (($18) + -1)|0;
80042 HEAP32[$17>>2] = $19;
80043 $20 = ($18|0)<(2);
80044 if ($20) {
80045 $21 = HEAP32[11676]|0;
80046 $22 = ($21|0)==($2|0);
80047 if ($22) {
80048 $23 = ((($2)) + 68|0);
80049 $24 = HEAP32[$23>>2]|0;

Callers 6

_sqlite3VdbeFreeCursorFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_sqlite3PragmaFunction · 0.85
_detachFuncFunction · 0.85
_attachFuncFunction · 0.85

Calls 3

_sqlite3BtreeCloseCursorFunction · 0.85
_sqlite3BtreeRollbackFunction · 0.85
_sqlite3PagerCloseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…