MCPcopy Index your code
hub / github.com/sql-js/sql.js / _sqlite3MemMalloc

Function _sqlite3MemMalloc

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

Source from the content-addressed store, hash-verified

40711 STACKTOP = sp;return ($$0$i$i|0);
40712}
40713function _sqlite3MemMalloc($0) {
40714 $0 = $0|0;
40715 var $1 = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
40716 sp = STACKTOP;
40717 STACKTOP = STACKTOP + 16|0;
40718 $vararg_buffer = sp;
40719 $1 = (($0) + 8)|0;
40720 $2 = (_malloc($1)|0);
40721 $3 = ($2|0)==(0|0);
40722 if ($3) {
40723 HEAP32[$vararg_buffer>>2] = $0;
40724 _sqlite3_log(7,21073,$vararg_buffer);
40725 $11 = 0;
40726 STACKTOP = sp;return ($11|0);
40727 } else {
40728 $4 = ($0|0)<(0);
40729 $5 = $4 << 31 >> 31;
40730 $6 = $2;
40731 $7 = $6;
40732 HEAP32[$7>>2] = $0;
40733 $8 = (($6) + 4)|0;
40734 $9 = $8;
40735 HEAP32[$9>>2] = $5;
40736 $10 = ((($2)) + 8|0);
40737 $11 = $10;
40738 STACKTOP = sp;return ($11|0);
40739 }
40740 return (0)|0;
40741}
40742function _sqlite3MemFree($0) {
40743 $0 = $0|0;
40744 var $1 = 0, label = 0, sp = 0;

Callers

nothing calls this directly

Calls 2

_mallocFunction · 0.85
_sqlite3_logFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…