MCPcopy Create free account
hub / github.com/sql-js/sql.js / _fts3InsertDocsize

Function _fts3InsertDocsize

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

Source from the content-addressed store, hash-verified

371940 STACKTOP = sp;return ($$0|0);
371941}
371942function _fts3InsertDocsize($0,$1,$2) {
371943 $0 = $0|0;
371944 $1 = $1|0;
371945 $2 = $2|0;
371946 var $$0$lcssa$i = 0, $$011$i$i = 0, $$01214$i = 0, $$015$i = 0, $$1$i24 = 0, $$sink = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0;
371947 var $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0;
371948 var $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $15 = 0, $16 = 0;
371949 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;
371950 var $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, $53 = 0;
371951 var $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0;
371952 var $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0;
371953 var $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond$i = 0, $or$cond$i$i = 0, $or$cond$i$i$i = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
371954 sp = STACKTOP;
371955 STACKTOP = STACKTOP + 16|0;
371956 $vararg_buffer = sp;
371957 $3 = sp + 8|0;
371958 $4 = HEAP32[$0>>2]|0;
371959 $5 = ($4|0)==(0);
371960 if (!($5)) {
371961 STACKTOP = sp;return;
371962 }
371963 $6 = ((($1)) + 24|0);
371964 $7 = HEAP32[$6>>2]|0;
371965 $8 = ($7*10)|0;
371966 $9 = (_sqlite3_malloc($8)|0);
371967 $10 = ($9|0)==(0|0);
371968 L4: do {
371969 if ($10) {
371970 $$sink = 7;
371971 } else {
371972 $11 = HEAP32[$6>>2]|0;
371973 $12 = ($11|0)>(0);
371974 if ($12) {
371975 $$01214$i = 0;$$015$i = 0;
371976 while(1) {
371977 $13 = (($9) + ($$015$i)|0);
371978 $14 = (($2) + ($$01214$i<<2)|0);
371979 $15 = HEAP32[$14>>2]|0;
371980 $$011$i$i = $13;$17 = $15;$20 = 0;
371981 while(1) {
371982 $16 = $17&255;
371983 $18 = $16 | -128;
371984 $19 = ((($$011$i$i)) + 1|0);
371985 HEAP8[$$011$i$i>>0] = $18;
371986 $21 = (_bitshift64Lshr(($17|0),($20|0),7)|0);
371987 $22 = tempRet0;
371988 $23 = ($21|0)==(0);
371989 $24 = ($22|0)==(0);
371990 $25 = $23 & $24;
371991 if ($25) {
371992 break;
371993 } else {
371994 $$011$i$i = $19;$17 = $21;$20 = $22;
371995 }
371996 }
371997 $26 = $16 & 127;
371998 HEAP8[$$011$i$i>>0] = $26;
371999 $27 = $19;

Callers 1

_fts3UpdateMethodFunction · 0.85

Calls 12

_sqlite3_mallocFunction · 0.85
_bitshift64LshrFunction · 0.85
_sqlite3_mprintfFunction · 0.85
_sqlite3LockAndPrepareFunction · 0.85
_vdbeUnbindFunction · 0.85
_vdbeReleaseAndSetInt64Function · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85
_sqlite3ErrorFinishFunction · 0.85
_apiOomErrorFunction · 0.85
_sqlite3_stepFunction · 0.85
_invokeProfileCallbackFunction · 0.85
_sqlite3VdbeResetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…