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

Function _btreeMoveto

js/sql-debug.js:288728–288825  ·  view source on GitHub ↗
($0,$1,$2,$3,$4,$5)

Source from the content-addressed store, hash-verified

288726 STACKTOP = sp;return ($$1|0);
288727}
288728function _btreeMoveto($0,$1,$2,$3,$4,$5) {
288729 $0 = $0|0;
288730 $1 = $1|0;
288731 $2 = $2|0;
288732 $3 = $3|0;
288733 $4 = $4|0;
288734 $5 = $5|0;
288735 var $$02022 = 0, $$021 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
288736 var $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0;
288737 var $vararg_ptr1 = 0, $vararg_ptr2 = 0, label = 0, sp = 0;
288738 sp = STACKTOP;
288739 STACKTOP = STACKTOP + 16|0;
288740 $vararg_buffer = sp;
288741 $6 = ($1|0)==(0|0);
288742 if ($6) {
288743 $7 = (_sqlite3BtreeMovetoUnpacked($0,0,$2,$3,$4,$5)|0);
288744 $$021 = $7;
288745 STACKTOP = sp;return ($$021|0);
288746 }
288747 $8 = ((($0)) + 112|0);
288748 $9 = HEAP32[$8>>2]|0;
288749 $10 = (_sqlite3VdbeAllocUnpackedRecord($9)|0);
288750 $11 = ($10|0)==(0|0);
288751 if ($11) {
288752 $$021 = 7;
288753 STACKTOP = sp;return ($$021|0);
288754 }
288755 $12 = HEAP32[$8>>2]|0;
288756 _sqlite3VdbeRecordUnpack($12,$2,$1,$10);
288757 $13 = ((($10)) + 8|0);
288758 $14 = HEAP16[$13>>1]|0;
288759 $15 = ($14<<16>>16)==(0);
288760 if ($15) {
288761 HEAP32[$vararg_buffer>>2] = 21258;
288762 $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
288763 HEAP32[$vararg_ptr1>>2] = 60841;
288764 $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
288765 HEAP32[$vararg_ptr2>>2] = (17052);
288766 _sqlite3_log(11,17000,$vararg_buffer);
288767 $$02022 = 11;
288768 } else {
288769 $16 = (_sqlite3BtreeMovetoUnpacked($0,$10,$2,$3,$4,$5)|0);
288770 $$02022 = $16;
288771 }
288772 $17 = HEAP32[$8>>2]|0;
288773 $18 = ((($17)) + 12|0);
288774 $19 = HEAP32[$18>>2]|0;
288775 $20 = ($19|0)==(0|0);
288776 if (!($20)) {
288777 $21 = ((($19)) + 464|0);
288778 $22 = HEAP32[$21>>2]|0;
288779 $23 = ($22|0)==(0|0);
288780 if (!($23)) {
288781 _measureAllocationSize($19,$10);
288782 $$021 = $$02022;
288783 STACKTOP = sp;return ($$021|0);
288784 }
288785 $24 = $10;

Callers 5

_btreePreviousFunction · 0.85
_btreeNextFunction · 0.85
_handleMovedCursorFunction · 0.85
_sqlite3BtreeInsertFunction · 0.85
_accessPayloadCheckedFunction · 0.85

Calls 5

_sqlite3VdbeRecordUnpackFunction · 0.85
_sqlite3_logFunction · 0.85
_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…