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

Function _try_realloc_chunk

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

Source from the content-addressed store, hash-verified

393075 return ($$1|0);
393076}
393077function _try_realloc_chunk($0,$1) {
393078 $0 = $0|0;
393079 $1 = $1|0;
393080 var $$1272 = 0, $$1275 = 0, $$2 = 0, $$3 = 0, $$pre = 0, $$pre$phiZ2D = 0, $$sink1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0;
393081 var $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0;
393082 var $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0;
393083 var $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0;
393084 var $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
393085 var $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, $42 = 0, $43 = 0, $44 = 0;
393086 var $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, $60 = 0, $61 = 0, $62 = 0;
393087 var $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, $79 = 0, $8 = 0, $80 = 0;
393088 var $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0;
393089 var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
393090 sp = STACKTOP;
393091 $2 = ((($0)) + 4|0);
393092 $3 = HEAP32[$2>>2]|0;
393093 $4 = $3 & -8;
393094 $5 = (($0) + ($4)|0);
393095 $6 = HEAP32[(46744)>>2]|0;
393096 $7 = $3 & 3;
393097 $notlhs = ($0>>>0)>=($6>>>0);
393098 $notrhs = ($7|0)!=(1);
393099 $or$cond$not = $notrhs & $notlhs;
393100 $8 = ($0>>>0)<($5>>>0);
393101 $or$cond3 = $or$cond$not & $8;
393102 if (!($or$cond3)) {
393103 _abort();
393104 // unreachable;
393105 }
393106 $9 = ((($5)) + 4|0);
393107 $10 = HEAP32[$9>>2]|0;
393108 $11 = $10 & 1;
393109 $12 = ($11|0)==(0);
393110 if ($12) {
393111 _abort();
393112 // unreachable;
393113 }
393114 $13 = ($7|0)==(0);
393115 if ($13) {
393116 $14 = ($1>>>0)<(256);
393117 if ($14) {
393118 $$2 = 0;
393119 return ($$2|0);
393120 }
393121 $15 = (($1) + 4)|0;
393122 $16 = ($4>>>0)<($15>>>0);
393123 if (!($16)) {
393124 $17 = (($4) - ($1))|0;
393125 $18 = HEAP32[(47208)>>2]|0;
393126 $19 = $18 << 1;
393127 $20 = ($17>>>0)>($19>>>0);
393128 if (!($20)) {
393129 $$2 = $0;
393130 return ($$2|0);
393131 }
393132 }
393133 $$2 = 0;
393134 return ($$2|0);

Callers 1

_reallocFunction · 0.85

Calls 2

_abortFunction · 0.85
_dispose_chunkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…