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

Function _sqlite3VdbeReset

js/sql-debug.js:81212–81317  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

81210 STACKTOP = sp;return;
81211}
81212function _sqlite3VdbeReset($0) {
81213 $0 = $0|0;
81214 var $1 = 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, $26 = 0, $27 = 0;
81215 var $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, $44 = 0, $45 = 0;
81216 var $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
81217 sp = STACKTOP;
81218 STACKTOP = STACKTOP + 16|0;
81219 $vararg_buffer = sp;
81220 $1 = HEAP32[$0>>2]|0;
81221 (_sqlite3VdbeHalt($0)|0);
81222 $2 = ((($0)) + 36|0);
81223 $3 = HEAP32[$2>>2]|0;
81224 $4 = ($3|0)>(-1);
81225 if ($4) {
81226 (_sqlite3VdbeTransferError($0)|0);
81227 $5 = ((($0)) + 145|0);
81228 $6 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8);
81229 $7 = $6 & 32;
81230 $8 = ($7<<16>>16)==(0);
81231 if (!($8)) {
81232 $9 = $6 | 1;
81233 HEAP8[$5>>0]=$9&255;HEAP8[$5+1>>0]=$9>>8;
81234 }
81235 } else {
81236 $10 = ((($0)) + 40|0);
81237 $11 = HEAP32[$10>>2]|0;
81238 $12 = ($11|0)==(0);
81239 if (!($12)) {
81240 $13 = ((($0)) + 145|0);
81241 $14 = HEAPU8[$13>>0]|(HEAPU8[$13+1>>0]<<8);
81242 $15 = $14 & 1;
81243 $16 = ($15<<16>>16)==(0);
81244 if (!($16)) {
81245 $17 = ((($0)) + 108|0);
81246 $18 = HEAP32[$17>>2]|0;
81247 $19 = ($18|0)!=(0|0);
81248 $20 = $19 ? 17859 : 0;
81249 HEAP32[$vararg_buffer>>2] = $18;
81250 _sqlite3ErrorWithMsg($1,$11,$20,$vararg_buffer);
81251 }
81252 }
81253 }
81254 $21 = ((($0)) + 108|0);
81255 $22 = HEAP32[$21>>2]|0;
81256 $23 = ($22|0)==(0|0);
81257 do {
81258 if (!($23)) {
81259 $24 = ($1|0)==(0|0);
81260 if (!($24)) {
81261 $25 = ((($1)) + 464|0);
81262 $26 = HEAP32[$25>>2]|0;
81263 $27 = ($26|0)==(0|0);
81264 if (!($27)) {
81265 _measureAllocationSize($1,$22);
81266 break;
81267 }
81268 $28 = $22;
81269 $29 = ((($1)) + 296|0);

Callers 15

_sqlite3_finalizeFunction · 0.85
_sqlite3_resetFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3PrepareFunction · 0.85
_sqlite3_execFunction · 0.85
_sqlite3_declare_vtabFunction · 0.85
_sqlite3_blob_openFunction · 0.85
_blobReadWriteFunction · 0.85
_fts3NextMethodFunction · 0.85
_fts3UpdateMethodFunction · 0.85
_fts3SyncMethodFunction · 0.85

Calls 4

_sqlite3VdbeHaltFunction · 0.85
_sqlite3ErrorWithMsgFunction · 0.85
_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…