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

Function _sqlite3StrAccumEnlarge

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

Source from the content-addressed store, hash-verified

13377 return ($$0|0);
13378}
13379function _sqlite3StrAccumEnlarge($0,$1) {
13380 $0 = $0|0;
13381 $1 = $1|0;
13382 var $$0$i = 0, $$050 = 0, $$pre$i = 0, $$pre$i52 = 0, $$pre$phi$i57Z2D = 0, $$pre$phi$iZ2D = 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, $111 = 0;
13383 var $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, $13 = 0;
13384 var $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 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;
13385 var $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, $45 = 0;
13386 var $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, $63 = 0;
13387 var $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, $81 = 0;
13388 var $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, label = 0;
13389 var sp = 0;
13390 sp = STACKTOP;
13391 $2 = ((($0)) + 20|0);
13392 $3 = HEAP8[$2>>0]|0;
13393 $4 = ($3<<24>>24)==(0);
13394 if (!($4)) {
13395 $134 = 0;
13396 return ($134|0);
13397 }
13398 $5 = ((($0)) + 12|0);
13399 $6 = HEAP32[$5>>2]|0;
13400 $7 = ($6|0)==(0);
13401 $8 = ((($0)) + 16|0);
13402 $9 = HEAP32[$8>>2]|0;
13403 if ($7) {
13404 $10 = ((($0)) + 8|0);
13405 $11 = HEAP32[$10>>2]|0;
13406 $12 = $9 ^ -1;
13407 $13 = (($11) + ($12))|0;
13408 HEAP8[$2>>0] = 2;
13409 HEAP32[$10>>2] = 0;
13410 $134 = $13;
13411 return ($134|0);
13412 }
13413 $14 = ((($0)) + 21|0);
13414 $15 = HEAP8[$14>>0]|0;
13415 $16 = $15 & 4;
13416 $17 = ($16<<24>>24)==(0);
13417 if ($17) {
13418 $72 = 0;
13419 } else {
13420 $18 = ((($0)) + 4|0);
13421 $19 = HEAP32[$18>>2]|0;
13422 $72 = $19;
13423 }
13424 $20 = (($1) + 1)|0;
13425 $21 = ($20|0)<(0);
13426 $22 = $21 << 31 >> 31;
13427 $23 = (_i64Add(($9|0),0,($20|0),($22|0))|0);
13428 $24 = tempRet0;
13429 $25 = (_i64Add(($23|0),($24|0),($9|0),0)|0);
13430 $26 = tempRet0;
13431 $27 = ($26|0)>(0);
13432 $28 = ($25>>>0)>($6>>>0);
13433 $29 = ($26|0)==(0);
13434 $30 = $29 & $28;
13435 $31 = $27 | $30;
13436 $32 = $31 ? $23 : $25;

Callers 2

_sqlite3VXPrintfFunction · 0.85
_enlargeAndAppendFunction · 0.85

Calls 6

_i64AddFunction · 0.85
_measureAllocationSizeFunction · 0.85
_sqlite3_initializeFunction · 0.85
_sqlite3ReallocFunction · 0.85
_sqlite3DbReallocFunction · 0.85
_memcpyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…