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

Function _sqlite3BtreeCloseCursor

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

Source from the content-addressed store, hash-verified

80229 }
80230}
80231function _sqlite3BtreeCloseCursor($0) {
80232 $0 = $0|0;
80233 var $$0 = 0, $$09$i = 0, $$idx$i = 0, $$idx$val$i = 0, $$idx7$i = 0, $$idx7$val$i = 0, $$pre$i = 0, $1 = 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;
80234 var $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, $36 = 0, $37 = 0, $38 = 0, $39 = 0;
80235 var $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, $54 = 0, $55 = 0, $56 = 0, $57 = 0;
80236 var $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, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0;
80237 var $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $9 = 0, label = 0, sp = 0;
80238 sp = STACKTOP;
80239 $1 = ((($0)) + 8|0);
80240 $2 = HEAP32[$1>>2]|0;
80241 $3 = ($2|0)==(0|0);
80242 if ($3) {
80243 return;
80244 }
80245 $4 = ((($0)) + 12|0);
80246 $5 = HEAP32[$4>>2]|0;
80247 $6 = HEAP32[$2>>2]|0;
80248 $7 = ((($2)) + 4|0);
80249 $8 = HEAP32[$7>>2]|0;
80250 $9 = ((($8)) + 4|0);
80251 HEAP32[$9>>2] = $6;
80252 $10 = ((($5)) + 8|0);
80253 $11 = HEAP32[$10>>2]|0;
80254 $12 = ($11|0)==($0|0);
80255 L4: do {
80256 if ($12) {
80257 $13 = ((($0)) + 16|0);
80258 $14 = HEAP32[$13>>2]|0;
80259 HEAP32[$10>>2] = $14;
80260 } else {
80261 $$0 = $11;
80262 while(1) {
80263 $15 = ((($$0)) + 16|0);
80264 $16 = HEAP32[$15>>2]|0;
80265 $17 = ($16|0)==($0|0);
80266 if ($17) {
80267 break;
80268 }
80269 $20 = ($16|0)==(0|0);
80270 if ($20) {
80271 break L4;
80272 } else {
80273 $$0 = $16;
80274 }
80275 }
80276 $18 = ((($0)) + 16|0);
80277 $19 = HEAP32[$18>>2]|0;
80278 HEAP32[$15>>2] = $19;
80279 }
80280 } while(0);
80281 $21 = ((($0)) + 68|0);
80282 $22 = HEAP8[$21>>0]|0;
80283 $23 = ($22<<24>>24)>(-1);
80284 if ($23) {
80285 $24 = ($22<<24>>24)==(0);
80286 if (!($24)) {
80287 $$09$i = 0;$83 = $22;
80288 while(1) {

Callers 2

_sqlite3BtreeCloseFunction · 0.85
_sqlite3VdbeFreeCursorFunction · 0.85

Calls 2

_sqlite3PcacheReleaseFunction · 0.85
_unlockBtreeIfUnusedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…