MCPcopy Index your code
hub / github.com/sql-js/sql.js / _btreeParseCellPtrIndex

Function _btreeParseCellPtrIndex

js/sql-debug.js:62399–62478  ·  view source on GitHub ↗
($0,$1,$2)

Source from the content-addressed store, hash-verified

62397 }
62398}
62399function _btreeParseCellPtrIndex($0,$1,$2) {
62400 $0 = $0|0;
62401 $1 = $1|0;
62402 $2 = $2|0;
62403 var $$ = 0, $$0$add = 0, $$0$idx = 0, $$035 = 0, $$1 = 0, $$136 = 0, $$idx37 = 0, $$idx37$val = 0, $$idx38 = 0, $$idx38$val = 0, $$idx38$val$idx = 0, $$idx38$val$idx$val = 0, $$ptr = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
62404 var $17 = 0, $18 = 0, $19 = 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, $34 = 0, $35 = 0;
62405 var $36 = 0, $37 = 0, $38 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
62406 sp = STACKTOP;
62407 $3 = ((($0)) + 10|0);
62408 $4 = HEAP8[$3>>0]|0;
62409 $5 = $4&255;
62410 $6 = (($1) + ($5)|0);
62411 $7 = HEAP8[$6>>0]|0;
62412 $8 = $7&255;
62413 $9 = ($7<<24>>24)<(0);
62414 if ($9) {
62415 $10 = $8 & 127;
62416 $$0$idx = 0;$$035 = $10;
62417 while(1) {
62418 $11 = $$035 << 7;
62419 $$0$add = (($$0$idx) + 1)|0;
62420 $$ptr = (($6) + ($$0$add)|0);
62421 $12 = HEAP8[$$ptr>>0]|0;
62422 $13 = $12 & 127;
62423 $14 = $13&255;
62424 $15 = $14 | $11;
62425 $16 = ($12<<24>>24)<(0);
62426 $17 = ($$0$add|0)<(8);
62427 $or$cond = $16 & $17;
62428 if ($or$cond) {
62429 $$0$idx = $$0$add;$$035 = $15;
62430 } else {
62431 $$1 = $$ptr;$$136 = $15;
62432 break;
62433 }
62434 }
62435 } else {
62436 $$1 = $6;$$136 = $8;
62437 }
62438 $18 = ((($$1)) + 1|0);
62439 $19 = $2;
62440 $20 = $19;
62441 HEAP32[$20>>2] = $$136;
62442 $21 = (($19) + 4)|0;
62443 $22 = $21;
62444 HEAP32[$22>>2] = 0;
62445 $23 = ((($2)) + 12|0);
62446 HEAP32[$23>>2] = $$136;
62447 $24 = ((($2)) + 8|0);
62448 HEAP32[$24>>2] = $18;
62449 $25 = ((($0)) + 14|0);
62450 $26 = HEAP16[$25>>1]|0;
62451 $27 = $26&65535;
62452 $28 = ($$136>>>0)>($27>>>0);
62453 if ($28) {
62454 $$idx37 = ((($0)) + 16|0);
62455 $$idx37$val = HEAP16[$$idx37>>1]|0;
62456 $$idx38 = ((($0)) + 52|0);

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…