MCPcopy Index your code
hub / github.com/sql-js/sql.js / _computeJD

Function _computeJD

js/sql-debug.js:38401–38529  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

38399 STACKTOP = sp;return ($$031|0);
38400}
38401function _computeJD($0) {
38402 $0 = $0|0;
38403 var $$0$off = 0, $$04752 = 0, $$04951 = 0, $$053 = 0, $$1 = 0, $$148 = 0, $$neg = 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;
38404 var $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0, $37 = 0, $38 = 0, $39 = 0;
38405 var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0.0, $57 = 0;
38406 var $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $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;
38407 var $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $9 = 0, dest = 0, label = 0, sp = 0, stop = 0;
38408 sp = STACKTOP;
38409 $1 = ((($0)) + 40|0);
38410 $2 = HEAP8[$1>>0]|0;
38411 $3 = ($2<<24>>24)==(0);
38412 if (!($3)) {
38413 return;
38414 }
38415 $4 = ((($0)) + 42|0);
38416 $5 = HEAP8[$4>>0]|0;
38417 $6 = ($5<<24>>24)==(0);
38418 if ($6) {
38419 $$04752 = 1;$$04951 = 1;$$053 = 2000;
38420 label = 4;
38421 } else {
38422 $7 = ((($0)) + 8|0);
38423 $8 = HEAP32[$7>>2]|0;
38424 $9 = ((($0)) + 12|0);
38425 $10 = HEAP32[$9>>2]|0;
38426 $11 = ((($0)) + 16|0);
38427 $12 = HEAP32[$11>>2]|0;
38428 $$0$off = (($8) + 4713)|0;
38429 $13 = ($$0$off>>>0)>(14712);
38430 if (!($13)) {
38431 $$04752 = $10;$$04951 = $12;$$053 = $8;
38432 label = 4;
38433 }
38434 }
38435 if ((label|0) == 4) {
38436 $14 = ((($0)) + 41|0);
38437 $15 = HEAP8[$14>>0]|0;
38438 $16 = ($15<<24>>24)==(0);
38439 if ($16) {
38440 $18 = ($$04752|0)<(3);
38441 $19 = (($$04752) + 12)|0;
38442 $$148 = $18 ? $19 : $$04752;
38443 $20 = $18 << 31 >> 31;
38444 $$1 = (($20) + ($$053))|0;
38445 $$neg = (($$1|0) / -100)&-1;
38446 $21 = (($$1|0) / 400)&-1;
38447 $22 = ($$1*36525)|0;
38448 $23 = (($22) + 172251900)|0;
38449 $24 = (($23|0) / 100)&-1;
38450 $25 = ($$148*306001)|0;
38451 $26 = (($25) + 306001)|0;
38452 $27 = (($26|0) / 10000)&-1;
38453 $28 = (($$04951) + 2)|0;
38454 $29 = (($28) + ($$neg))|0;
38455 $30 = (($29) + ($21))|0;
38456 $31 = (($30) + ($27))|0;
38457 $32 = (($31) + ($24))|0;
38458 $33 = (+($32|0));

Callers 1

_isDateFunction · 0.85

Calls 2

_i64AddFunction · 0.85
_i64SubtractFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…