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

Function _sqlite3VdbeMemGrow

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

Source from the content-addressed store, hash-verified

31571 STACKTOP = sp;return ($44|0);
31572}
31573function _sqlite3VdbeMemGrow($0,$1,$2) {
31574 $0 = $0|0;
31575 $1 = $1|0;
31576 $2 = $2|0;
31577 var $$ = 0, $$0 = 0, $$0$i = 0, $$0$i38 = 0, $$035 = 0, $$pre = 0, $$pre$phi43Z2D = 0, $$pre$phiZ2D = 0, $$pre42 = 0, $$sink$i$i = 0, $$sink4$i$i = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0;
31578 var $108 = 0, $109 = 0, $11 = 0, $110 = 0, $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;
31579 var $126 = 0, $127 = 0, $128 = 0, $129 = 0, $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;
31580 var $144 = 0, $145 = 0, $146 = 0, $147 = 0, $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;
31581 var $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0;
31582 var $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
31583 var $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, $42 = 0, $43 = 0;
31584 var $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, $60 = 0, $61 = 0;
31585 var $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, $79 = 0, $8 = 0;
31586 var $80 = 0, $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;
31587 var $99 = 0, $or$cond = 0, $or$cond41 = 0, label = 0, sp = 0;
31588 sp = STACKTOP;
31589 $3 = ($1|0)>(32);
31590 $$ = $3 ? $1 : 32;
31591 $4 = ((($0)) + 24|0);
31592 $5 = HEAP32[$4>>2]|0;
31593 $6 = ($5|0)>(0);
31594 $7 = ($2|0)!=(0);
31595 $or$cond = $7 & $6;
31596 if ($or$cond) {
31597 $8 = ((($0)) + 16|0);
31598 $9 = HEAP32[$8>>2]|0;
31599 $10 = ((($0)) + 20|0);
31600 $11 = HEAP32[$10>>2]|0;
31601 $12 = ($9|0)==($11|0);
31602 if ($12) {
31603 $13 = ((($0)) + 32|0);
31604 $14 = HEAP32[$13>>2]|0;
31605 $15 = (_sqlite3DbRealloc($14,$9,$$,0)|0);
31606 $16 = ($15|0)!=(0|0);
31607 $17 = ($9|0)==(0|0);
31608 $or$cond41 = $17 | $16;
31609 do {
31610 if (!($or$cond41)) {
31611 $18 = ($14|0)==(0|0);
31612 if (!($18)) {
31613 $19 = ((($14)) + 464|0);
31614 $20 = HEAP32[$19>>2]|0;
31615 $21 = ($20|0)==(0|0);
31616 if (!($21)) {
31617 _measureAllocationSize($14,$9);
31618 break;
31619 }
31620 $22 = $9;
31621 $23 = ((($14)) + 296|0);
31622 $24 = HEAP32[$23>>2]|0;
31623 $25 = ($22>>>0)<($24>>>0);
31624 if (!($25)) {
31625 $26 = ((($14)) + 300|0);
31626 $27 = HEAP32[$26>>2]|0;
31627 $28 = ($22>>>0)<($27>>>0);
31628 if ($28) {
31629 $29 = ((($14)) + 292|0);
31630 $30 = HEAP32[$29>>2]|0;

Callers 13

_valueToTextFunction · 0.85
_minmaxStepFunction · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85
_vdbeMemAddTerminatorFunction · 0.85
_createAggContextFunction · 0.85
_sqlite3_value_blobFunction · 0.85
_sqlite3_result_valueFunction · 0.85
_sqlite3VdbeMemTranslateFunction · 0.85
_sqlite3VdbeMemStringifyFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3VdbeExecFunction · 0.85

Calls 7

_sqlite3DbReallocFunction · 0.85
_measureAllocationSizeFunction · 0.85
_i64AddFunction · 0.85
_i64SubtractFunction · 0.85
_dbMallocRawFinishFunction · 0.85
_memcpyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…