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

Function _handleMovedCursor

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

Source from the content-addressed store, hash-verified

304365 return (0)|0;
304366}
304367function _handleMovedCursor($0) {
304368 $0 = $0|0;
304369 var $$0$i5 = 0, $$0$i5$ph = 0, $$0$i6 = 0, $$pre$i = 0, $$pre$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, $21 = 0, $22 = 0;
304370 var $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, $4 = 0, $40 = 0;
304371 var $41 = 0, $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, label = 0, sp = 0;
304372 sp = STACKTOP;
304373 STACKTOP = STACKTOP + 16|0;
304374 $1 = sp;
304375 $2 = ((($0)) + 40|0);
304376 $3 = HEAP32[$2>>2]|0;
304377 $4 = HEAP8[$3>>0]|0;
304378 $5 = ($4&255)>(2);
304379 L1: do {
304380 if ($5) {
304381 $6 = ($4<<24>>24)==(4);
304382 do {
304383 if ($6) {
304384 $36 = ((($3)) + 64|0);
304385 $37 = HEAP32[$36>>2]|0;
304386 $$0$i5$ph = $37;
304387 } else {
304388 HEAP8[$3>>0] = 0;
304389 $7 = ((($3)) + 56|0);
304390 $8 = HEAP32[$7>>2]|0;
304391 $9 = ((($3)) + 48|0);
304392 $10 = $9;
304393 $11 = $10;
304394 $12 = HEAP32[$11>>2]|0;
304395 $13 = (($10) + 4)|0;
304396 $14 = $13;
304397 $15 = HEAP32[$14>>2]|0;
304398 $16 = (_btreeMoveto($3,$8,$12,$15,0,$1)|0);
304399 $17 = ($16|0)==(0);
304400 if (!($17)) {
304401 $$0$i5$ph = $16;
304402 break;
304403 }
304404 $18 = HEAP32[$7>>2]|0;
304405 $19 = ($18|0)==(0|0);
304406 do {
304407 if (!($19)) {
304408 $20 = HEAP32[2]|0;
304409 $21 = ($20|0)==(0);
304410 if ($21) {
304411 $29 = HEAP32[(56)>>2]|0;
304412 FUNCTION_TABLE_vi[$29 & 255]($18);
304413 break;
304414 } else {
304415 $22 = HEAP32[(64)>>2]|0;
304416 $23 = (FUNCTION_TABLE_ii[$22 & 255]($18)|0);
304417 $24 = HEAP32[11822]|0;
304418 $25 = (($24) - ($23))|0;
304419 HEAP32[11822] = $25;
304420 $26 = HEAP32[11825]|0;
304421 $27 = (($26) + -1)|0;
304422 HEAP32[11825] = $27;
304423 $28 = HEAP32[(56)>>2]|0;
304424 FUNCTION_TABLE_vi[$28 & 255]($18);

Callers 1

_sqlite3VdbeExecFunction · 0.85

Calls 1

_btreeMovetoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…