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

Function staticAlloc

js/sql-debug.js:300–305  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

298
299
300function staticAlloc(size) {
301 assert(!staticSealed);
302 var ret = STATICTOP;
303 STATICTOP = (STATICTOP + size + 15) & -16;
304 return ret;
305}
306
307function dynamicAlloc(size) {
308 assert(DYNAMICTOP_PTR);

Callers 2

getMemoryFunction · 0.70
sql-debug.jsFile · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…