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

Function _fts3DbExec

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

Source from the content-addressed store, hash-verified

336618 return (0)|0;
336619}
336620function _fts3DbExec($0,$1,$2,$varargs) {
336621 $0 = $0|0;
336622 $1 = $1|0;
336623 $2 = $2|0;
336624 $varargs = $varargs|0;
336625 var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
336626 sp = STACKTOP;
336627 STACKTOP = STACKTOP + 16|0;
336628 $3 = sp;
336629 $4 = HEAP32[$0>>2]|0;
336630 $5 = ($4|0)==(0);
336631 if (!($5)) {
336632 STACKTOP = sp;return;
336633 }
336634 HEAP32[$3>>2] = $varargs;
336635 $6 = (_sqlite3_vmprintf($2,$3)|0);
336636 $7 = ($6|0)==(0|0);
336637 if ($7) {
336638 HEAP32[$0>>2] = 7;
336639 STACKTOP = sp;return;
336640 }
336641 $8 = (_sqlite3_exec($1,$6,0,0,0)|0);
336642 HEAP32[$0>>2] = $8;
336643 $9 = HEAP32[2]|0;
336644 $10 = ($9|0)==(0);
336645 if ($10) {
336646 $18 = HEAP32[(56)>>2]|0;
336647 FUNCTION_TABLE_vi[$18 & 255]($6);
336648 STACKTOP = sp;return;
336649 } else {
336650 $11 = HEAP32[(64)>>2]|0;
336651 $12 = (FUNCTION_TABLE_ii[$11 & 255]($6)|0);
336652 $13 = HEAP32[11822]|0;
336653 $14 = (($13) - ($12))|0;
336654 HEAP32[11822] = $14;
336655 $15 = HEAP32[11825]|0;
336656 $16 = (($15) + -1)|0;
336657 HEAP32[11825] = $16;
336658 $17 = HEAP32[(56)>>2]|0;
336659 FUNCTION_TABLE_vi[$17 & 255]($6);
336660 STACKTOP = sp;return;
336661 }
336662 $51 = HEAP32[$pNew>>2]|0;
336663 HEAP32[$0>>2] = $51;
336664 $52 = HEAP32[$0>>2]|0;
336665 STACKTOP = sp;return ($52|0);
336666}
336667function _fts3SegmentMerge($0,$1,$2,$3) {
336668 $0 = $0|0;
336669 $1 = $1|0;

Callers 4

_fts3DestroyMethodFunction · 0.85
_fts3UpdateMethodFunction · 0.85
_fts3RenameMethodFunction · 0.85
_fts3InitVtabFunction · 0.85

Calls 2

_sqlite3_vmprintfFunction · 0.85
_sqlite3_execFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…