MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / $0

Function $0

test/js_optimizer/wasm2js.js:39–85  ·  view source on GitHub ↗
($0_1, $1_1)

Source from the content-addressed store, hash-verified

37 // EMSCRIPTEN_START_FUNCS
38;
39 function $0($0_1, $1_1) {
40 var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0;
41 helper();
42 $5_1 = 1024;
43 $2_1 = HEAP32[$1_1 + 16 >> 2];
44 label$1 : {
45 if (!$2_1) {
46 if ($1($1_1)) {
47 break label$1
48 }
49 $2_1 = HEAP32[$1_1 + 16 >> 2];
50 }
51 $4_1 = HEAP32[$1_1 + 20 >> 2];
52 if ($2_1 - $4_1 >>> 0 < $0_1 >>> 0) {
53 return FUNCTION_TABLE[HEAP32[$1_1 + 36 >> 2]]($1_1, 1024, $0_1) | 0
54 }
55 label$5 : {
56 if (HEAP8[$1_1 + 75 | 0] < 0) {
57 break label$5
58 }
59 $3_1 = $0_1;
60 while (1) {
61 $2_1 = $3_1;
62 if (!$2_1) {
63 break label$5
64 }
65 $3_1 = $2_1 + -1 | 0;
66 if (HEAPU8[$3_1 + 1024 | 0] != 10) {
67 continue
68 }
69 break;
70 };
71 $3_1 = FUNCTION_TABLE[HEAP32[$1_1 + 36 >> 2]]($1_1, 1024, $2_1) | 0;
72 if ($3_1 >>> 0 < $2_1 >>> 0) {
73 break label$1
74 }
75 $0_1 = $0_1 - $2_1 | 0;
76 $5_1 = $2_1 + 1024 | 0;
77 $4_1 = HEAP32[$1_1 + 20 >> 2];
78 $6_1 = $2_1;
79 }
80 $3($4_1, $5_1, $0_1);
81 HEAP32[$1_1 + 20 >> 2] = HEAP32[$1_1 + 20 >> 2] + $0_1;
82 $3_1 = $0_1 + $6_1 | 0;
83 }
84 return $3_1;
85 }
86
87 function $1($0_1) {
88 var $1_1 = 0;

Callers 1

$11Function · 0.85

Calls 3

$1Function · 0.85
$3Function · 0.85
helperFunction · 0.70

Tested by

no test coverage detected