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

Function _sqlite3CreateFunc

js/sql-debug.js:244586–244819  ·  view source on GitHub ↗
($0,$1,$2,$3,$4,$5,$6,$7,$8)

Source from the content-addressed store, hash-verified

244584 return (0)|0;
244585}
244586function _sqlite3CreateFunc($0,$1,$2,$3,$4,$5,$6,$7,$8) {
244587 $0 = $0|0;
244588 $1 = $1|0;
244589 $2 = $2|0;
244590 $3 = $3|0;
244591 $4 = $4|0;
244592 $5 = $5|0;
244593 $6 = $6|0;
244594 $7 = $7|0;
244595 $8 = $8|0;
244596 var $$0$i100 = 0, $$05$i = 0, $$06$i = 0, $$1 = 0, $$197 = 0, $$off = 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;
244597 var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0;
244598 var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0;
244599 var $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0;
244600 var $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, $or$cond = 0, $or$cond3 = 0, $or$cond3$not = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond7$not = 0;
244601 var $or$cond9 = 0, $or$cond98 = 0, $trunc = 0, $trunc$clear = 0, $vararg_buffer = 0, $vararg_buffer3 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, label = 0, sp = 0;
244602 sp = STACKTOP;
244603 STACKTOP = STACKTOP + 32|0;
244604 $vararg_buffer3 = sp + 16|0;
244605 $vararg_buffer = sp;
244606 $9 = ($1|0)==(0|0);
244607 if (!($9)) {
244608 $10 = ($5|0)!=(0|0);
244609 $11 = ($6|0)!=(0|0);
244610 $12 = ($7|0)!=(0|0);
244611 $or$cond = $11 | $12;
244612 $or$cond98 = $10 & $or$cond;
244613 if (!($or$cond98)) {
244614 $13 = ($5|0)==(0|0);
244615 $or$cond3 = $13 & $12;
244616 $or$cond3$not = $or$cond3 ^ 1;
244617 $or$cond5 = $11 | $or$cond3$not;
244618 if ($or$cond5) {
244619 $or$cond7 = $10 | $12;
244620 $or$cond7$not = $or$cond7 ^ 1;
244621 $or$cond9 = $11 & $or$cond7$not;
244622 $$off = (($2) + 1)|0;
244623 $14 = ($$off>>>0)>(128);
244624 $15 = $14 | $or$cond9;
244625 if (!($15)) {
244626 $16 = (_strlen($1)|0);
244627 $17 = $16 & 1073741568;
244628 $18 = ($17|0)==(0);
244629 if ($18) {
244630 $19 = $3 & 2048;
244631 $trunc = $3&255;
244632 $trunc$clear = $trunc & 7;
244633 switch ($trunc$clear<<24>>24) {
244634 case 4: {
244635 $$197 = 2;
244636 break;
244637 }
244638 case 5: {
244639 $20 = $19 | 1;
244640 $21 = (_sqlite3CreateFunc($0,$1,$2,$20,$4,$5,$6,$7,$8)|0);
244641 $22 = ($21|0)==(0);
244642 if (!($22)) {
244643 $$1 = $21;

Callers 4

_sqlite3PragmaFunction · 0.85
_sqlite3_create_functionFunction · 0.85
_openDatabaseFunction · 0.85

Calls 5

_strlenFunction · 0.85
_sqlite3FindFunctionFunction · 0.85
_sqlite3ErrorWithMsgFunction · 0.85
_measureAllocationSizeFunction · 0.85
_sqlite3_logFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…