Skip to content

Commit 695954f

Browse files
authored
Merge branch 'WebKit:main' into main
2 parents 2e3c8a6 + 4b8dff1 commit 695954f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+43250
-4682
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
GITHUB_ACTIONS_OUTPUT: ""
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
browser: [chrome, firefox, jsc, safari, spidermonkey, v8]
2122
steps:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.DS_Store
22
.directory
3-
/node_modules
3+
node_modules
44

55
# Ignore auto-generated files by VS & VSCode.
66
/.vs/
77
/.vscode/
8+
9+
# v8.log is generated by the d8-shell if profiling is enabled
10+
v8.log

8bitbench/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class Benchmark {
3838
romBinary;
3939

4040
async init() {
41-
Module.wasmBinary = await getBinary(wasmBinary);
42-
this.romBinary = await getBinary(romBinary);
41+
Module.wasmBinary = await JetStream.getBinary(JetStream.preload.wasmBinary);
42+
this.romBinary = await JetStream.getBinary(JetStream.preload.romBinary);
4343
}
4444

4545
async runIteration() {

ARES-6/Air/util.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,3 @@ function bubbleSort(array, lessThan)
168168
end--;
169169
}
170170
}
171-
172-
let currentTime;
173-
if (this.performance && performance.now)
174-
currentTime = function() { return performance.now() };
175-
else if (this.preciseTime)
176-
currentTime = function() { return preciseTime() * 1000; };
177-
else
178-
currentTime = function() { return +new Date(); };
179-

ARES-6/Babylon/benchmark.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class Benchmark {
3030
let sources = [];
3131

3232
const files = [
33-
[airBlob, {}]
34-
, [basicBlob, {}]
35-
, [inspectorBlob, {}]
36-
, [babylonBlob, {sourceType: "module"}]
33+
[JetStream.preload.airBlob, {}],
34+
[JetStream.preload.basicBlob, {}],
35+
[JetStream.preload.inspectorBlob, {}],
36+
[JetStream.preload.babylonBlob, {sourceType: "module"}],
3737
];
3838

3939
for (let [file, options] of files)
40-
sources.push([file, await getString(file), options]);
40+
sources.push([file, await JetStream.getString(file), options]);
4141

4242
this.sources = sources;
4343
}

ARES-6/Basic/util.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

Dart/benchmark.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// Excerpt from `build/run_wasm.js` to add own task queue implementation, since
6-
// `setTimeout` and `queueMicrotask` are not always available in shells.
5+
// Excerpt from `wasm_gc_benchmarks/tools/run_wasm.js` to add own task queue
6+
// implementation, since `setTimeout` and `queueMicrotask` are not always
7+
// available in shells.
8+
// TODO: Now (2025-08-14) that all shells have `setTimeout` available, can we
9+
// remove this? Talk to Dart2wasm folks.
710
function addTaskQueue(self) {
811
"use strict";
912

@@ -62,8 +65,7 @@ function addTaskQueue(self) {
6265
ms = Math.max(0, ms);
6366
var id = timerIdCounter++;
6467
// A callback can be scheduled at most once.
65-
// (console.assert is only available on D8)
66-
// if (isD8) console.assert(f.$timerId === undefined);
68+
console.assert(f.$timerId === undefined);
6769
f.$timerId = id;
6870
timerIds[id] = f;
6971
if (ms == 0 && !isNextTimerDue()) {
@@ -262,8 +264,8 @@ class Benchmark {
262264
// The generated JavaScript code from dart2wasm is an ES module, which we
263265
// can only load with a dynamic import (since this file is not a module.)
264266

265-
Module.wasmBinary = await getBinary(wasmBinary);
266-
this.dart2wasmJsModule = await dynamicImport(jsModule);
267+
Module.wasmBinary = await JetStream.getBinary(JetStream.preload.wasmBinary);
268+
this.dart2wasmJsModule = await JetStream.dynamicImport(JetStream.preload.jsModule);
267269
}
268270

269271
async runIteration() {
@@ -283,7 +285,7 @@ class Benchmark {
283285
const framesToDraw = 100;
284286
const initialFramesToSkip = 0;
285287
const dartArgs = [
286-
startTimeSinceEpochSeconds,
288+
startTimeSinceEpochSeconds.toString(),
287289
framesToDraw.toString(),
288290
initialFramesToSkip.toString()
289291
];

Dart/build.log

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Built on 2025-03-06 09:52:17+01:00
2-
Cloning into 'wasm_gc_benchmarks'...
3-
f80892d Update Dart SDK, switch wasm to -O2, recompile performance benchmarks
4-
Copying files from wasm_gc_benchmarks/ into build/
5-
Build success
1+
Built on Thu Aug 14 04:47:37 PM CEST 2025
2+
Cloning into 'wasm_gc_benchmarks'...
3+
13951e1 Roll new version of flute and regenerate flute-based benchmarks
4+
Copying files from wasm_gc_benchmarks/ into build/
5+
Build success

Dart/build.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@ rm -rf wasm_gc_benchmarks/
77
rm -rf build/
88

99
BUILD_LOG="$(realpath build.log)"
10-
echo -e "Built on $(date --rfc-3339=seconds)" | tee "$BUILD_LOG"
10+
echo -e "Built on $(date)" | tee "$BUILD_LOG"
1111

12-
git clone https://github.com/mkustermann/wasm_gc_benchmarks |& tee -a "$BUILD_LOG"
12+
git clone https://github.com/mkustermann/wasm_gc_benchmarks 2>&1 | tee -a "$BUILD_LOG"
1313
pushd wasm_gc_benchmarks/
1414
git log -1 --oneline | tee -a "$BUILD_LOG"
1515
popd
1616

1717
echo "Copying files from wasm_gc_benchmarks/ into build/" | tee -a "$BUILD_LOG"
1818
mkdir -p build/ | tee -a "$BUILD_LOG"
19-
# Generic Dart2wasm runner.
20-
cp wasm_gc_benchmarks/tools/run_wasm.js build/ | tee -a "$BUILD_LOG"
21-
# "Flute Complex" benchmark application.
22-
cp wasm_gc_benchmarks/benchmarks-out/flute.dart2wasm.{mjs,wasm} build/ | tee -a "$BUILD_LOG"
19+
# Two Flute benchmark applications: complex and todomvc
20+
cp wasm_gc_benchmarks/benchmarks-out/flute.complex.dart2wasm.{mjs,wasm} build/ | tee -a "$BUILD_LOG"
21+
cp wasm_gc_benchmarks/benchmarks-out/flute.todomvc.dart2wasm.{mjs,wasm} build/ | tee -a "$BUILD_LOG"
2322

2423
echo "Build success" | tee -a "$BUILD_LOG"
2524

0 commit comments

Comments
 (0)