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

Function _sqlite3_finalize

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

Source from the content-addressed store, hash-verified

80936 return ($$2|0);
80937}
80938function _sqlite3_finalize($0) {
80939 $0 = $0|0;
80940 var $$0$i21 = 0, $$0$i22 = 0, $$1 = 0, $$pre$i$i = 0, $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;
80941 var $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, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
80942 var $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, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
80943 var $60 = 0, $61 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, $switch$split2D = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_ptr3 = 0, $vararg_ptr4 = 0, label = 0, sp = 0;
80944 sp = STACKTOP;
80945 STACKTOP = STACKTOP + 32|0;
80946 $vararg_buffer1 = sp + 8|0;
80947 $vararg_buffer = sp;
80948 $1 = ($0|0)==(0|0);
80949 if ($1) {
80950 $$1 = 0;
80951 STACKTOP = sp;return ($$1|0);
80952 }
80953 $2 = HEAP32[$0>>2]|0;
80954 $3 = ($2|0)==(0|0);
80955 if ($3) {
80956 _sqlite3_log(21,21366,$vararg_buffer);
80957 HEAP32[$vararg_buffer1>>2] = 17025;
80958 $vararg_ptr3 = ((($vararg_buffer1)) + 4|0);
80959 HEAP32[$vararg_ptr3>>2] = 77402;
80960 $vararg_ptr4 = ((($vararg_buffer1)) + 8|0);
80961 HEAP32[$vararg_ptr4>>2] = (17052);
80962 _sqlite3_log(21,17000,$vararg_buffer1);
80963 $$1 = 21;
80964 STACKTOP = sp;return ($$1|0);
80965 }
80966 $4 = ((($0)) + 128|0);
80967 $5 = $4;
80968 $6 = $5;
80969 $7 = HEAP32[$6>>2]|0;
80970 $8 = (($5) + 4)|0;
80971 $9 = $8;
80972 $10 = HEAP32[$9>>2]|0;
80973 $11 = ($10|0)>(0);
80974 $12 = ($7>>>0)>(0);
80975 $13 = ($10|0)==(0);
80976 $14 = $13 & $12;
80977 $15 = $11 | $14;
80978 if ($15) {
80979 _invokeProfileCallback($2,$0);
80980 }
80981 $16 = ((($0)) + 20|0);
80982 $17 = HEAP32[$16>>2]|0;
80983 $switch$split2D = ($17|0)<(832317811);
80984 if ($switch$split2D) {
80985 switch ($17|0) {
80986 case 770837923: {
80987 label = 6;
80988 break;
80989 }
80990 default: {
80991 $$0$i21 = 0;
80992 }
80993 }
80994 } else {
80995 switch ($17|0) {

Callers 15

_sqlite3LockAndPrepareFunction · 0.85
_sqlite3InitCallbackFunction · 0.85
_pragmaVtabCloseFunction · 0.85
_pragmaVtabFilterFunction · 0.85
_pragmaVtabNextFunction · 0.85
_pragmaVtabCursorClearFunction · 0.85
_execSqlFunction · 0.85
_blobSeekToRowFunction · 0.85
_fts3DisconnectMethodFunction · 0.85
_fts3FilterMethodFunction · 0.85
_fts3UpdateMethodFunction · 0.85
_fts3SyncMethodFunction · 0.85

Calls 7

_sqlite3_logFunction · 0.85
_invokeProfileCallbackFunction · 0.85
_sqlite3VdbeResetFunction · 0.85
_sqlite3VdbeClearObjectFunction · 0.85
_measureAllocationSizeFunction · 0.85
_apiOomErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…