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

Function _findElementWithHash

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

Source from the content-addressed store, hash-verified

45944 STACKTOP = sp;return ($$0|0);
45945}
45946function _findElementWithHash($0,$1,$2) {
45947 $0 = $0|0;
45948 $1 = $1|0;
45949 $2 = $2|0;
45950 var $$0 = 0, $$01315$i = 0, $$016$i = 0, $$023 = 0, $$024 = 0, $$024$in = 0, $$025 = 0, $$025$in = 0, $$05$lcssa$i = 0, $$056$i = 0, $$07$i = 0, $$12629 = 0, $$in = 0, $$lcssa$i = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
45951 var $16 = 0, $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;
45952 var $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $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;
45953 var $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, $or$cond14$i = 0, label = 0, sp = 0;
45954 sp = STACKTOP;
45955 $3 = ((($0)) + 12|0);
45956 $4 = HEAP32[$3>>2]|0;
45957 $5 = ($4|0)==(0|0);
45958 if ($5) {
45959 $22 = ((($0)) + 8|0);
45960 $23 = ((($0)) + 4|0);
45961 $$023 = 0;$$024$in = $23;$$025$in = $22;
45962 } else {
45963 $6 = HEAP8[$1>>0]|0;
45964 $7 = ($6<<24>>24)==(0);
45965 if ($7) {
45966 $$05$lcssa$i = 0;
45967 } else {
45968 $$056$i = 0;$$07$i = $1;$9 = $6;
45969 while(1) {
45970 $8 = $9&255;
45971 $10 = ((($$07$i)) + 1|0);
45972 $11 = (17324 + ($8)|0);
45973 $12 = HEAP8[$11>>0]|0;
45974 $13 = $12&255;
45975 $14 = (($13) + ($$056$i))|0;
45976 $15 = Math_imul($14, -1640531535)|0;
45977 $16 = HEAP8[$10>>0]|0;
45978 $17 = ($16<<24>>24)==(0);
45979 if ($17) {
45980 $$05$lcssa$i = $15;
45981 break;
45982 } else {
45983 $$056$i = $15;$$07$i = $10;$9 = $16;
45984 }
45985 }
45986 }
45987 $18 = HEAP32[$0>>2]|0;
45988 $19 = (($$05$lcssa$i>>>0) % ($18>>>0))&-1;
45989 $20 = (((($4) + ($19<<3)|0)) + 4|0);
45990 $21 = (($4) + ($19<<3)|0);
45991 $$023 = $19;$$024$in = $21;$$025$in = $20;
45992 }
45993 $$024 = HEAP32[$$024$in>>2]|0;
45994 $$025 = HEAP32[$$025$in>>2]|0;
45995 $24 = ($2|0)==(0|0);
45996 if (!($24)) {
45997 HEAP32[$2>>2] = $$023;
45998 }
45999 $25 = ($$024|0)==(0);
46000 if ($25) {
46001 $$0 = 46688;
46002 return ($$0|0);
46003 }

Callers 15

_sqlite3HashInsertFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_yy_reduceFunction · 0.85
_sqlite3CreateIndexFunction · 0.85
_sqlite3FindCollSeqFunction · 0.85
_sqlite3GetCollSeqFunction · 0.85
_sqlite3DropTableFunction · 0.85
_sqlite3DeleteFromFunction · 0.85
_sqlite3UpdateFunction · 0.85
_sqlite3InsertFunction · 0.85
_sqlite3FindIndexFunction · 0.85
_sqlite3FindTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…