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

Function _bindText

js/sql-debug.js:322383–322478  ·  view source on GitHub ↗
($0,$1,$2,$3,$4,$5)

Source from the content-addressed store, hash-verified

322381 return ($5|0);
322382}
322383function _bindText($0,$1,$2,$3,$4,$5) {
322384 $0 = $0|0;
322385 $1 = $1|0;
322386 $2 = $2|0;
322387 $3 = $3|0;
322388 $4 = $4|0;
322389 $5 = $5|0;
322390 var $$0 = 0, $$1 = 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, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
322391 var $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $magicptr = 0, $or$cond$i = 0, $or$cond31 = 0, label = 0, sp = 0;
322392 sp = STACKTOP;
322393 $6 = (_vdbeUnbind($0,$1)|0);
322394 $7 = ($6|0)==(0);
322395 if (!($7)) {
322396 $magicptr = $4;
322397 switch ($magicptr|0) {
322398 case 0: case -1: {
322399 $$1 = $6;
322400 return ($$1|0);
322401 break;
322402 }
322403 default: {
322404 }
322405 }
322406 FUNCTION_TABLE_vi[$4 & 255]($2);
322407 $$1 = $6;
322408 return ($$1|0);
322409 }
322410 $8 = ($2|0)==(0|0);
322411 if ($8) {
322412 $$1 = 0;
322413 return ($$1|0);
322414 }
322415 $9 = ((($0)) + 116|0);
322416 $10 = HEAP32[$9>>2]|0;
322417 $11 = (($1) + -1)|0;
322418 $12 = (($10) + (($11*40)|0)|0);
322419 $13 = (_sqlite3VdbeMemSetStr($12,$2,$3,$5,$4)|0);
322420 $14 = ($13|0)!=(0);
322421 $15 = ($5<<24>>24)==(0);
322422 $or$cond31 = $15 | $14;
322423 do {
322424 if ($or$cond31) {
322425 $$0 = $13;
322426 } else {
322427 $16 = HEAP32[$0>>2]|0;
322428 $17 = ((($16)) + 70|0);
322429 $18 = HEAP8[$17>>0]|0;
322430 $19 = (((($10) + (($11*40)|0)|0)) + 8|0);
322431 $20 = HEAP16[$19>>1]|0;
322432 $21 = $20 & 2;
322433 $22 = ($21<<16>>16)==(0);
322434 if ($22) {
322435 $$1 = 0;
322436 return ($$1|0);
322437 }
322438 $23 = (((($10) + (($11*40)|0)|0)) + 10|0);
322439 $24 = HEAP8[$23>>0]|0;
322440 $25 = ($24<<24>>24)==($18<<24>>24);

Callers 3

_sqlite3_bind_textFunction · 0.85
_sqlite3_bind_valueFunction · 0.85
_fts3WriteSegdirFunction · 0.85

Calls 5

_vdbeUnbindFunction · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85
_sqlite3VdbeMemTranslateFunction · 0.85
_sqlite3ErrorFinishFunction · 0.85
_apiOomErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…