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

Function _robust_open

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

Source from the content-addressed store, hash-verified

19070 return ($$0|0);
19071}
19072function _robust_open($0,$1,$2) {
19073 $0 = $0|0;
19074 $1 = $1|0;
19075 $2 = $2|0;
19076 var $$023 = 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, $28 = 0;
19077 var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
19078 sp = STACKTOP;
19079 STACKTOP = STACKTOP + 96|0;
19080 $vararg_buffer = sp;
19081 $3 = sp + 8|0;
19082 $4 = ($2|0)!=(0);
19083 $5 = $4 ? $2 : 420;
19084 $6 = $1 | 524288;
19085 while(1) {
19086 $7 = HEAP32[(3424)>>2]|0;
19087 $8 = (FUNCTION_TABLE_iiii[$7 & 255]($0,$6,$5)|0);
19088 $9 = ($8|0)<(0);
19089 if ($9) {
19090 $10 = (___errno_location()|0);
19091 $11 = HEAP32[$10>>2]|0;
19092 $12 = ($11|0)==(4);
19093 if ($12) {
19094 continue;
19095 } else {
19096 $$023 = $8;
19097 label = 12;
19098 break;
19099 }
19100 }
19101 $13 = ($8|0)>(2);
19102 if ($13) {
19103 label = 6;
19104 break;
19105 }
19106 $14 = HEAP32[(3436)>>2]|0;
19107 (FUNCTION_TABLE_ii[$14 & 255]($8)|0);
19108 HEAP32[$vararg_buffer>>2] = $0;
19109 $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
19110 HEAP32[$vararg_ptr1>>2] = $8;
19111 _sqlite3_log(28,17862,$vararg_buffer);
19112 $15 = HEAP32[(3424)>>2]|0;
19113 $16 = (FUNCTION_TABLE_iiii[$15 & 255](17905,$1,$2)|0);
19114 $17 = ($16|0)<(0);
19115 if ($17) {
19116 $$023 = -1;
19117 label = 12;
19118 break;
19119 }
19120 }
19121 if ((label|0) == 6) {
19122 if (!($4)) {
19123 $$023 = $8;
19124 STACKTOP = sp;return ($$023|0);
19125 }
19126 $18 = HEAP32[(3484)>>2]|0;
19127 $19 = (FUNCTION_TABLE_iii[$18 & 255]($8,$3)|0);
19128 $20 = ($19|0)==(0);
19129 if ($20) {

Callers 2

_unixOpenFunction · 0.85
_unixShmMapFunction · 0.85

Calls 2

___errno_locationFunction · 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…