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

Function _unixShmUnmap

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

Source from the content-addressed store, hash-verified

18165 return;
18166}
18167function _unixShmUnmap($0,$1) {
18168 $0 = $0|0;
18169 $1 = $1|0;
18170 var $$025 = 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;
18171 var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
18172 sp = STACKTOP;
18173 $2 = ((($0)) + 36|0);
18174 $3 = HEAP32[$2>>2]|0;
18175 $4 = ($3|0)==(0|0);
18176 if ($4) {
18177 return 0;
18178 }
18179 $5 = HEAP32[$3>>2]|0;
18180 $6 = ((($5)) + 32|0);
18181 $$025 = $6;
18182 while(1) {
18183 $7 = HEAP32[$$025>>2]|0;
18184 $8 = ($7|0)==($3|0);
18185 $9 = ((($7)) + 4|0);
18186 if ($8) {
18187 break;
18188 } else {
18189 $$025 = $9;
18190 }
18191 }
18192 $10 = ((($3)) + 4|0);
18193 $11 = HEAP32[$10>>2]|0;
18194 HEAP32[$$025>>2] = $11;
18195 $12 = HEAP32[2]|0;
18196 $13 = ($12|0)==(0);
18197 if ($13) {
18198 $21 = HEAP32[(56)>>2]|0;
18199 FUNCTION_TABLE_vi[$21 & 255]($3);
18200 } else {
18201 $14 = HEAP32[(64)>>2]|0;
18202 $15 = (FUNCTION_TABLE_ii[$14 & 255]($3)|0);
18203 $16 = HEAP32[11822]|0;
18204 $17 = (($16) - ($15))|0;
18205 HEAP32[11822] = $17;
18206 $18 = HEAP32[11825]|0;
18207 $19 = (($18) + -1)|0;
18208 HEAP32[11825] = $19;
18209 $20 = HEAP32[(56)>>2]|0;
18210 FUNCTION_TABLE_vi[$20 & 255]($3);
18211 }
18212 HEAP32[$2>>2] = 0;
18213 $22 = ((($5)) + 28|0);
18214 $23 = HEAP32[$22>>2]|0;
18215 $24 = (($23) + -1)|0;
18216 HEAP32[$22>>2] = $24;
18217 $25 = ($24|0)==(0);
18218 if (!($25)) {
18219 return 0;
18220 }
18221 $26 = ($1|0)==(0);
18222 if (!($26)) {
18223 $27 = ((($5)) + 12|0);
18224 $28 = HEAP32[$27>>2]|0;

Callers

nothing calls this directly

Calls 1

_unixShmPurgeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…