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

Function _sqlite3_log

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

Source from the content-addressed store, hash-verified

10059 return;
10060}
10061function _sqlite3_log($0,$1,$varargs) {
10062 $0 = $0|0;
10063 $1 = $1|0;
10064 $varargs = $varargs|0;
10065 var $$0$i$i = 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, $3 = 0, $4 = 0, $5 = 0;
10066 var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
10067 sp = STACKTOP;
10068 STACKTOP = STACKTOP + 256|0;
10069 $2 = sp + 16|0;
10070 $3 = sp + 40|0;
10071 $4 = sp;
10072 $5 = HEAP32[(260)>>2]|0;
10073 $6 = ($5|0)==(0|0);
10074 if ($6) {
10075 STACKTOP = sp;return;
10076 }
10077 HEAP32[$4>>2] = $varargs;
10078 $7 = ((($2)) + 4|0);
10079 HEAP32[$7>>2] = $3;
10080 HEAP32[$2>>2] = 0;
10081 $8 = ((($2)) + 8|0);
10082 HEAP32[$8>>2] = 210;
10083 $9 = ((($2)) + 12|0);
10084 $10 = ((($2)) + 21|0);
10085 ;HEAP32[$9>>2]=0|0;HEAP32[$9+4>>2]=0|0;HEAP16[$9+8>>1]=0|0;
10086 _sqlite3VXPrintf($2,$1,$4);
10087 $11 = HEAP32[(260)>>2]|0;
10088 $12 = HEAP32[(264)>>2]|0;
10089 $13 = HEAP32[$7>>2]|0;
10090 $14 = ($13|0)==(0|0);
10091 if ($14) {
10092 label = 6;
10093 } else {
10094 $15 = ((($2)) + 16|0);
10095 $16 = HEAP32[$15>>2]|0;
10096 $17 = (($13) + ($16)|0);
10097 HEAP8[$17>>0] = 0;
10098 $18 = HEAP32[$9>>2]|0;
10099 $19 = ($18|0)==(0);
10100 if ($19) {
10101 label = 6;
10102 } else {
10103 $20 = HEAP8[$10>>0]|0;
10104 $21 = $20 & 4;
10105 $22 = ($21<<24>>24)==(0);
10106 if ($22) {
10107 $23 = (_strAccumFinishRealloc($2)|0);
10108 $$0$i$i = $23;
10109 } else {
10110 label = 6;
10111 }
10112 }
10113 }
10114 if ((label|0) == 6) {
10115 $24 = HEAP32[$7>>2]|0;
10116 $$0$i$i = $24;
10117 }
10118 FUNCTION_TABLE_viii[$11 & 255]($12,$0,$$0$i$i);

Callers 15

_sqlite3_configFunction · 0.85
_unixOpenFunction · 0.85
_unixDeleteFunction · 0.85
_unixFullPathnameFunction · 0.85
_unixRandomnessFunction · 0.85
_dotlockCloseFunction · 0.85
_unixTruncateFunction · 0.85
_unixSyncFunction · 0.85
_unixShmPurgeFunction · 0.85
_openDirectoryFunction · 0.85
_nolockCloseFunction · 0.85
_robust_openFunction · 0.85

Calls 2

_sqlite3VXPrintfFunction · 0.85
_strAccumFinishReallocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…