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

Function _sqlite3MemRealloc

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

Source from the content-addressed store, hash-verified

40748 return;
40749}
40750function _sqlite3MemRealloc($0,$1) {
40751 $0 = $0|0;
40752 $1 = $1|0;
40753 var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0;
40754 var label = 0, sp = 0;
40755 sp = STACKTOP;
40756 STACKTOP = STACKTOP + 16|0;
40757 $vararg_buffer = sp;
40758 $2 = ((($0)) + -8|0);
40759 $3 = (($1) + 8)|0;
40760 $4 = (_realloc($2,$3)|0);
40761 $5 = ($4|0)==(0|0);
40762 if ($5) {
40763 $13 = $2;
40764 $14 = $13;
40765 $15 = HEAP32[$14>>2]|0;
40766 $16 = (($13) + 4)|0;
40767 $17 = $16;
40768 $18 = HEAP32[$17>>2]|0;
40769 HEAP32[$vararg_buffer>>2] = $15;
40770 $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
40771 HEAP32[$vararg_ptr1>>2] = $1;
40772 _sqlite3_log(7,21037,$vararg_buffer);
40773 $19 = 0;
40774 STACKTOP = sp;return ($19|0);
40775 } else {
40776 $6 = ($1|0)<(0);
40777 $7 = $6 << 31 >> 31;
40778 $8 = $4;
40779 $9 = $8;
40780 HEAP32[$9>>2] = $1;
40781 $10 = (($8) + 4)|0;
40782 $11 = $10;
40783 HEAP32[$11>>2] = $7;
40784 $12 = ((($4)) + 8|0);
40785 $19 = $12;
40786 STACKTOP = sp;return ($19|0);
40787 }
40788 return (0)|0;
40789}
40790function _sqlite3MemSize($0) {
40791 $0 = $0|0;
40792 var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;

Callers

nothing calls this directly

Calls 2

_reallocFunction · 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…