Skip to content

Commit 541483d

Browse files
Automatic rebaseline of codesize expectations. NFC (#25632)
This is an automatic change generated by tools/maint/rebaseline_tests.py. The following (2) test expectation files were updated by running the tests with `--rebaseline`: ``` test/codesize/audio_worklet_wasm.expected.js updated codesize/test_minimal_runtime_code_size_audio_worklet.json: 5929 => 6083 [+154 bytes / +2.60%] Average change: +2.60% (+2.60% - +2.60%) ``` Co-authored-by: emscripten-bot <emscripten-bot@users.noreply.github.com>
1 parent db42d3f commit 541483d

File tree

2 files changed

+61
-60
lines changed

2 files changed

+61
-60
lines changed

test/codesize/audio_worklet_wasm.expected.js

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ t && !r && (onmessage = a => {
1717

1818
if (r) {
1919
function a(b) {
20-
class f extends AudioWorkletProcessor {
20+
class h extends AudioWorkletProcessor {
2121
constructor(d) {
2222
super();
2323
d = d.processorOptions;
@@ -36,37 +36,37 @@ if (r) {
3636
return b;
3737
}
3838
process(d, g, e) {
39-
var n = d.length, p = g.length, h, q, k = 12 * (n + p), l = 0;
40-
for (h of d) l += h.length;
41-
l *= this.s;
39+
var l = d.length, p = g.length, f, q, k = 12 * (l + p), n = 0;
40+
for (f of d) n += f.length;
41+
n *= this.s;
4242
var H = 0;
43-
for (h of g) H += h.length;
44-
l += H * this.s;
43+
for (f of g) H += f.length;
44+
n += H * this.s;
4545
var N = 0;
46-
for (h in e) ++N, k += 8, l += e[h].byteLength;
47-
var U = C(), B = k + l + 15 & -16;
46+
for (f in e) ++N, k += 8, n += e[f].byteLength;
47+
var U = C(), B = k + n + 15 & -16;
4848
k = D(B);
49-
l = k + (B - l);
49+
n = k + (B - n);
5050
B = k;
51-
for (h of d) {
52-
G[k >> 2] = h.length;
51+
for (f of d) {
52+
G[k >> 2] = f.length;
5353
G[k + 4 >> 2] = this.u;
54-
G[k + 8 >> 2] = l;
54+
G[k + 8 >> 2] = n;
5555
k += 12;
56-
for (q of h) E.set(q, l >> 2), l += this.s;
56+
for (q of f) E.set(q, n >> 2), n += this.s;
5757
}
5858
d = k;
59-
for (h = 0; q = e[h++]; ) G[k >> 2] = q.length, G[k + 4 >> 2] = l, k += 8, E.set(q, l >> 2),
60-
l += 4 * q.length;
59+
for (f = 0; q = e[f++]; ) G[k >> 2] = q.length, G[k + 4 >> 2] = n, k += 8, E.set(q, n >> 2),
60+
n += 4 * q.length;
6161
e = k;
62-
for (h of g) G[k >> 2] = h.length, G[k + 4 >> 2] = this.u, G[k + 8 >> 2] = l, k += 12,
63-
l += this.s * h.length;
64-
if (n = this.v(n, B, p, e, N, d, this.A)) for (h of g) for (q of h) q.set(this.B[--H]);
62+
for (f of g) G[k >> 2] = f.length, G[k + 4 >> 2] = this.u, G[k + 8 >> 2] = n, k += 12,
63+
n += this.s * f.length;
64+
if (l = this.v(l, B, p, e, N, d, this.A)) for (f of g) for (q of f) q.set(this.B[--H]);
6565
F(U);
66-
return !!n;
66+
return !!l;
6767
}
6868
}
69-
return f;
69+
return h;
7070
}
7171
var port = globalThis.port || {};
7272
class c extends AudioWorkletProcessor {
@@ -108,24 +108,24 @@ var K = [], L = a => {
108108
c && A.get(c)(...a.x);
109109
}, M = a => {
110110
K.push(a);
111-
}, P = (a, c, b, f) => {
111+
}, P = (a, c, b, h) => {
112112
c = O[c];
113-
O[a].connect(c.destination || c, b, f);
113+
O[a].connect(c.destination || c, b, h);
114114
}, O = {}, Q = 0, R = globalThis.TextDecoder && new TextDecoder, S = (a = 0) => {
115-
for (var c = I, b = a, f = b + void 0; c[b] && !(b >= f); ) ++b;
115+
for (var c = I, b = a, h = b + void 0; c[b] && !(b >= h); ) ++b;
116116
if (16 < b - a && c.buffer && R) return R.decode(c.slice(a, b));
117-
for (f = ""; a < b; ) {
117+
for (h = ""; a < b; ) {
118118
var d = c[a++];
119119
if (d & 128) {
120120
var g = c[a++] & 63;
121-
if (192 == (d & 224)) f += String.fromCharCode((d & 31) << 6 | g); else {
121+
if (192 == (d & 224)) h += String.fromCharCode((d & 31) << 6 | g); else {
122122
var e = c[a++] & 63;
123123
d = 224 == (d & 240) ? (d & 15) << 12 | g << 6 | e : (d & 7) << 18 | g << 12 | e << 6 | c[a++] & 63;
124-
65536 > d ? f += String.fromCharCode(d) : (d -= 65536, f += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023));
124+
65536 > d ? h += String.fromCharCode(d) : (d -= 65536, h += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023));
125125
}
126-
} else f += String.fromCharCode(d);
126+
} else h += String.fromCharCode(d);
127127
}
128-
return f;
128+
return h;
129129
}, T = a => {
130130
if (a) {
131131
var c = G[a >> 2];
@@ -137,36 +137,37 @@ var K = [], L = a => {
137137
a = new AudioContext(a);
138138
O[++Q] = a;
139139
return Q;
140-
}, V = (a, c, b, f, d) => {
140+
}, V = (a, c, b, h, d) => {
141141
var g = b ? J[b + 4 >> 2] : 0;
142142
if (b) {
143-
var e = J[b >> 2];
144-
b = G[b + 8 >> 2];
145-
var n = g;
146-
if (b) {
147-
b >>= 2;
148-
for (var p = []; n--; ) p.push(G[b++]);
149-
b = p;
150-
} else b = void 0;
151-
f = {
143+
var e = J[b >> 2], l = G[b + 8 >> 2], p = g;
144+
if (l) {
145+
l >>= 2;
146+
for (var f = []; p--; ) f.push(G[l++]);
147+
l = f;
148+
} else l = void 0;
149+
b = {
152150
numberOfInputs: e,
153151
numberOfOutputs: g,
154-
outputChannelCount: b,
152+
outputChannelCount: l,
153+
channelCount: G[b + 12 >> 2] || void 0,
154+
channelCountMode: [ , "clamped-max", "explicit" ][J[b + 16 >> 2]],
155+
channelInterpretation: [ , "discrete" ][J[b + 20 >> 2]],
155156
processorOptions: {
156-
v: f,
157+
v: h,
157158
A: d,
158159
u: 128
159160
}
160161
};
161-
} else f = void 0;
162-
a = new AudioWorkletNode(O[a], c ? S(c) : "", f);
162+
} else b = void 0;
163+
a = new AudioWorkletNode(O[a], c ? S(c) : "", b);
163164
O[++Q] = a;
164165
return Q;
165-
}, W = (a, c, b, f) => {
166+
}, W = (a, c, b, h) => {
166167
var d = (d = G[c >> 2]) ? S(d) : "", g = J[c + 4 >> 2];
167168
c = G[c + 8 >> 2];
168-
for (var e = [], n = 0; g--; ) e.push({
169-
name: n++,
169+
for (var e = [], l = 0; g--; ) e.push({
170+
name: l++,
170171
defaultValue: E[c >> 2],
171172
minValue: E[c + 4 >> 2],
172173
maxValue: E[c + 8 >> 2],
@@ -177,24 +178,24 @@ var K = [], L = a => {
177178
H: e,
178179
I: a,
179180
v: b,
180-
A: f
181+
A: h
181182
});
182183
}, aa = () => !1, ba = 1, ca = a => {
183184
a = a.data;
184185
var c = a._wsc;
185186
c && A.get(c)(...a.C);
186-
}, da = (a, c, b, f, d) => {
187-
var g = O[a], e = g.audioWorklet, n = () => {
188-
A.get(f)(a, 0, d);
187+
}, da = (a, c, b, h, d) => {
188+
var g = O[a], e = g.audioWorklet, l = () => {
189+
A.get(h)(a, 0, d);
189190
};
190-
if (!e) return n();
191+
if (!e) return l();
191192
e.addModule(m.js).then((() => {
192193
e.port || (e.port = {
193194
postMessage: p => {
194195
p._boot ? (e.D = new AudioWorkletNode(g, "em-bootstrap", {
195196
processorOptions: p
196-
}), e.D.port.onmessage = h => {
197-
e.port.onmessage(h);
197+
}), e.D.port.onmessage = f => {
198+
e.port.onmessage(f);
198199
}) : e.D.port.postMessage(p);
199200
}
200201
});
@@ -207,8 +208,8 @@ var K = [], L = a => {
207208
F: b
208209
});
209210
e.port.onmessage = ca;
210-
A.get(f)(a, 1, d);
211-
})).catch(n);
211+
A.get(h)(a, 1, d);
212+
})).catch(l);
212213
};
213214

214215
function ea(a) {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 519,
33
"a.html.gz": 357,
4-
"a.js": 4102,
5-
"a.js.gz": 2103,
6-
"a.wasm": 1308,
7-
"a.wasm.gz": 876,
8-
"total": 5929,
9-
"total_gz": 3336
4+
"a.js": 4235,
5+
"a.js.gz": 2170,
6+
"a.wasm": 1329,
7+
"a.wasm.gz": 895,
8+
"total": 6083,
9+
"total_gz": 3422
1010
}

0 commit comments

Comments
 (0)