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

Function _measureAllocationSize

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

Source from the content-addressed store, hash-verified

13654 return ($134|0);
13655}
13656function _measureAllocationSize($0,$1) {
13657 $0 = $0|0;
13658 $1 = $1|0;
13659 var $$0$i = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
13660 sp = STACKTOP;
13661 $2 = ($0|0)==(0|0);
13662 if ($2) {
13663 label = 4;
13664 } else {
13665 $3 = $1;
13666 $4 = ((($0)) + 296|0);
13667 $5 = HEAP32[$4>>2]|0;
13668 $6 = ($3>>>0)<($5>>>0);
13669 if ($6) {
13670 label = 4;
13671 } else {
13672 $7 = ((($0)) + 300|0);
13673 $8 = HEAP32[$7>>2]|0;
13674 $9 = ($3>>>0)<($8>>>0);
13675 if ($9) {
13676 $12 = ((($0)) + 268|0);
13677 $13 = HEAP16[$12>>1]|0;
13678 $14 = $13&65535;
13679 $$0$i = $14;
13680 } else {
13681 label = 4;
13682 }
13683 }
13684 }
13685 if ((label|0) == 4) {
13686 $10 = HEAP32[(64)>>2]|0;
13687 $11 = (FUNCTION_TABLE_ii[$10 & 255]($1)|0);
13688 $$0$i = $11;
13689 }
13690 $15 = ((($0)) + 464|0);
13691 $16 = HEAP32[$15>>2]|0;
13692 $17 = HEAP32[$16>>2]|0;
13693 $18 = (($17) + ($$0$i))|0;
13694 HEAP32[$16>>2] = $18;
13695 return;
13696}
13697function _sqlite3DbRealloc($0,$1,$2,$3) {
13698 $0 = $0|0;
13699 $1 = $1|0;

Callers 15

_sqlite3VXPrintfFunction · 0.85
_sqlite3StrAccumEnlargeFunction · 0.85
_sqlite3VdbeMemFinalizeFunction · 0.85
_sqlite3VdbeMemGrowFunction · 0.85
_vdbeMemClearFunction · 0.85
_renameParentFuncFunction · 0.85
_dbReallocFinishFunction · 0.85
_sqlite3ExprDeleteNNFunction · 0.85
_exprListDeleteNNFunction · 0.85
_clearSelectFunction · 0.85
_deleteTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…