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

Function _pcache1Create

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

Source from the content-addressed store, hash-verified

21814 return;
21815}
21816function _pcache1Create($0,$1,$2) {
21817 $0 = $0|0;
21818 $1 = $1|0;
21819 $2 = $2|0;
21820 var $$0 = 0, $$0$i8$i$ph = 0, $$038 = 0, $$neg = 0, $$sink = 0, $$sink$i$i$i = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
21821 var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
21822 var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
21823 var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
21824 var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $pcache1Create$dummyCurrentPage$sink = 0, label = 0, sp = 0;
21825 sp = STACKTOP;
21826 $3 = HEAP32[(46628)>>2]|0;
21827 $4 = ($3*52)|0;
21828 $5 = (($4) + 64)|0;
21829 $6 = ($5|0)<(0);
21830 $7 = $6 << 31 >> 31;
21831 $8 = (_i64Add(($5|0),($7|0),-1,-1)|0);
21832 $9 = tempRet0;
21833 $10 = ($9>>>0)>(0);
21834 $11 = ($8>>>0)>(2147483390);
21835 $12 = ($9|0)==(0);
21836 $13 = $12 & $11;
21837 $14 = $10 | $13;
21838 if ($14) {
21839 $$0 = 0;
21840 return ($$0|0);
21841 }
21842 $15 = HEAP32[2]|0;
21843 $16 = ($15|0)==(0);
21844 if ($16) {
21845 $55 = HEAP32[(52)>>2]|0;
21846 $56 = (FUNCTION_TABLE_ii[$55 & 255]($5)|0);
21847 $57 = ($56|0)==(0|0);
21848 if ($57) {
21849 $$0 = 0;
21850 return ($$0|0);
21851 } else {
21852 $$0$i8$i$ph = $56;
21853 label = 12;
21854 }
21855 } else {
21856 $17 = HEAP32[(68)>>2]|0;
21857 $18 = (FUNCTION_TABLE_ii[$17 & 255]($5)|0);
21858 $19 = HEAP32[11829]|0;
21859 $20 = ($19>>>0)<($5>>>0);
21860 if ($20) {
21861 HEAP32[11829] = $5;
21862 }
21863 $21 = (46456);
21864 $22 = $21;
21865 $23 = HEAP32[$22>>2]|0;
21866 $24 = (($21) + 4)|0;
21867 $25 = $24;
21868 $26 = HEAP32[$25>>2]|0;
21869 $27 = ($26|0)>(0);
21870 $28 = ($23>>>0)>(0);
21871 $29 = ($26|0)==(0);
21872 $30 = $29 & $28;
21873 $31 = $27 | $30;

Callers

nothing calls this directly

Calls 5

_i64AddFunction · 0.85
_i64SubtractFunction · 0.85
_memsetFunction · 0.85
_pcache1ResizeHashFunction · 0.85
_pcache1DestroyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…