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

Function _vdbeMemClear

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

Source from the content-addressed store, hash-verified

31963 return ($2|0);
31964}
31965function _vdbeMemClear($0) {
31966 $0 = $0|0;
31967 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;
31968 var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
31969 sp = STACKTOP;
31970 $1 = ((($0)) + 8|0);
31971 $2 = HEAP16[$1>>1]|0;
31972 $3 = $2 & 9312;
31973 $4 = ($3<<16>>16)==(0);
31974 if (!($4)) {
31975 _vdbeMemClearExternAndSetNull($0);
31976 }
31977 $5 = ((($0)) + 24|0);
31978 $6 = HEAP32[$5>>2]|0;
31979 $7 = ($6|0)==(0);
31980 if ($7) {
31981 $36 = ((($0)) + 16|0);
31982 HEAP32[$36>>2] = 0;
31983 return;
31984 }
31985 $8 = ((($0)) + 32|0);
31986 $9 = HEAP32[$8>>2]|0;
31987 $10 = ((($0)) + 20|0);
31988 $11 = HEAP32[$10>>2]|0;
31989 $12 = ($9|0)==(0|0);
31990 do {
31991 if ($12) {
31992 label = 10;
31993 } else {
31994 $13 = ((($9)) + 464|0);
31995 $14 = HEAP32[$13>>2]|0;
31996 $15 = ($14|0)==(0|0);
31997 if (!($15)) {
31998 _measureAllocationSize($9,$11);
31999 break;
32000 }
32001 $16 = $11;
32002 $17 = ((($9)) + 296|0);
32003 $18 = HEAP32[$17>>2]|0;
32004 $19 = ($16>>>0)<($18>>>0);
32005 if ($19) {
32006 label = 10;
32007 } else {
32008 $20 = ((($9)) + 300|0);
32009 $21 = HEAP32[$20>>2]|0;
32010 $22 = ($16>>>0)<($21>>>0);
32011 if ($22) {
32012 $23 = ((($9)) + 292|0);
32013 $24 = HEAP32[$23>>2]|0;
32014 HEAP32[$11>>2] = $24;
32015 HEAP32[$23>>2] = $11;
32016 } else {
32017 label = 10;
32018 }
32019 $303 = (_sqlite3CorruptError(57412)|0);
32020 HEAP32[$0>>2] = $303;
32021 $311 = HEAP32[$0>>2]|0;
32022 STACKTOP = sp;return ($311|0);

Callers 15

_minMaxFinalizeFunction · 0.85
_zeroblobFuncFunction · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85
_vdbeCompareMemStringFunction · 0.85
_sqlite3VdbeMemTranslateFunction · 0.85
_sqlite3VdbeClearObjectFunction · 0.85
_sqlite3ValueFreeFunction · 0.85
_sqlite3VdbeHaltFunction · 0.85
_sqlite3_clear_bindingsFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_sqlite3VdbeSetNumColsFunction · 0.85

Calls 2

_measureAllocationSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…