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

Function _sqlite3BtreeCommitPhaseTwo

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

Source from the content-addressed store, hash-verified

70147 STACKTOP = sp;return ($$0|0);
70148}
70149function _sqlite3BtreeCommitPhaseTwo($0,$1) {
70150 $0 = $0|0;
70151 $1 = $1|0;
70152 var $$0$i = 0, $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 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;
70153 var $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, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
70154 var $getPageNormal$sink$i$i$i = 0, $or$cond = 0, $trunc$i$i = 0, label = 0, sp = 0;
70155 sp = STACKTOP;
70156 $2 = ((($0)) + 8|0);
70157 $3 = HEAP8[$2>>0]|0;
70158 $4 = ($3<<24>>24)==(0);
70159 if ($4) {
70160 $$1 = 0;
70161 return ($$1|0);
70162 }
70163 $5 = HEAP32[$0>>2]|0;
70164 $6 = ((($0)) + 4|0);
70165 $7 = HEAP32[$6>>2]|0;
70166 $8 = ((($7)) + 4|0);
70167 HEAP32[$8>>2] = $5;
70168 $9 = ($3<<24>>24)==(2);
70169 if ($9) {
70170 $10 = HEAP32[$7>>2]|0;
70171 $11 = ((($10)) + 40|0);
70172 $12 = HEAP32[$11>>2]|0;
70173 $13 = ($12|0)==(0);
70174 L6: do {
70175 if ($13) {
70176 $14 = ((($10)) + 16|0);
70177 $15 = HEAP8[$14>>0]|0;
70178 $16 = ($15<<24>>24)==(2);
70179 if ($16) {
70180 $17 = ((($10)) + 4|0);
70181 $18 = HEAP8[$17>>0]|0;
70182 $19 = ($18<<24>>24)==(0);
70183 if (!($19)) {
70184 $20 = ((($10)) + 5|0);
70185 $21 = HEAP8[$20>>0]|0;
70186 $22 = ($21<<24>>24)==(1);
70187 if ($22) {
70188 HEAP8[$14>>0] = 1;
70189 break;
70190 }
70191 }
70192 }
70193 $23 = ((($10)) + 100|0);
70194 $24 = HEAP32[$23>>2]|0;
70195 $25 = (($24) + 1)|0;
70196 HEAP32[$23>>2] = $25;
70197 $26 = ((($10)) + 19|0);
70198 $27 = HEAP8[$26>>0]|0;
70199 $28 = $27&255;
70200 $29 = (_pager_end_transaction($10,$28,1)|0);
70201 $trunc$i$i = $29&255;
70202 switch ($trunc$i$i<<24>>24) {
70203 case 10: case 13: {
70204 break;
70205 }
70206 default: {

Callers 5

_sqlite3_backup_stepFunction · 0.85
_sqlite3VdbeHaltFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_sqlite3PrepareFunction · 0.85
_sqlite3InitOneFunction · 0.85

Calls 3

_pager_end_transactionFunction · 0.85
_sqlite3BitvecDestroyFunction · 0.85
_btreeEndTransactionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…