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

Function _sqlite3KeyInfoOfIndex

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

Source from the content-addressed store, hash-verified

218268 return;
218269}
218270function _sqlite3KeyInfoOfIndex($0,$1) {
218271 $0 = $0|0;
218272 $1 = $1|0;
218273 var $$0 = 0, $$036 = 0, $$03738 = 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, $23 = 0, $24 = 0, $25 = 0;
218274 var $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, $41 = 0, $42 = 0, $43 = 0;
218275 var $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, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0;
218276 var $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, $76 = 0, $77 = 0, $78 = 0, $8 = 0, $9 = 0;
218277 var $exitcond = 0, label = 0, sp = 0;
218278 sp = STACKTOP;
218279 $2 = ((($1)) + 52|0);
218280 $3 = HEAP16[$2>>1]|0;
218281 $4 = $3&65535;
218282 $5 = ((($1)) + 50|0);
218283 $6 = HEAP16[$5>>1]|0;
218284 $7 = $6&65535;
218285 $8 = ((($0)) + 36|0);
218286 $9 = HEAP32[$8>>2]|0;
218287 $10 = ($9|0)==(0);
218288 if (!($10)) {
218289 $$0 = 0;
218290 return ($$0|0);
218291 }
218292 $11 = ((($1)) + 55|0);
218293 $12 = HEAP8[$11>>0]|0;
218294 $13 = $12 & 8;
218295 $14 = ($13<<24>>24)==(0);
218296 $15 = HEAP32[$0>>2]|0;
218297 if ($14) {
218298 $18 = (_sqlite3KeyInfoAlloc($15,$4,0)|0);
218299 $$036 = $18;
218300 } else {
218301 $16 = (($4) - ($7))|0;
218302 $17 = (_sqlite3KeyInfoAlloc($15,$7,$16)|0);
218303 $$036 = $17;
218304 }
218305 $19 = ($$036|0)==(0|0);
218306 if ($19) {
218307 $$0 = 0;
218308 return ($$0|0);
218309 }
218310 $20 = ($3<<16>>16)==(0);
218311 if (!($20)) {
218312 $21 = ((($1)) + 32|0);
218313 $22 = ((($1)) + 28|0);
218314 $23 = ((($$036)) + 16|0);
218315 $$03738 = 0;
218316 while(1) {
218317 $24 = HEAP32[$21>>2]|0;
218318 $25 = (($24) + ($$03738<<2)|0);
218319 $26 = HEAP32[$25>>2]|0;
218320 $27 = ($26|0)==(22091|0);
218321 do {
218322 if ($27) {
218323 $42 = 0;
218324 } else {
218325 $28 = HEAP32[$0>>2]|0;
218326 $29 = ((($28)) + 70|0);
218327 $30 = HEAP8[$29>>0]|0;

Callers 13

_sqlite3OpenTableFunction · 0.85
_sqlite3SelectFunction · 0.85
_sqlite3DeleteFromFunction · 0.85
_sqlite3UpdateFunction · 0.85
_sqlite3InsertFunction · 0.85
_sqlite3PragmaFunction · 0.85
_sqlite3RefillIndexFunction · 0.85
_analyzeOneTableFunction · 0.85
_sqlite3FindInIndexFunction · 0.85
_fkLookupParentFunction · 0.85
_sqlite3WhereBeginFunction · 0.85

Calls 4

_sqlite3KeyInfoAllocFunction · 0.85
_sqlite3FindCollSeqFunction · 0.85
_sqlite3GetCollSeqFunction · 0.85
_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…