Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
f9e29ca
Use CTAD for OptionSet<HitTestRequest::Type> in AccessibilityObject a…
jelee53 Oct 21, 2026
926bafc
[JSC] Fix `let`, `async of` and destructuring declarations in `for` h…
sosukesuzuki Oct 21, 2026
5596b3e
Web Inspector: isolate native debugger hooks from shared JIT code
dcrousso Oct 21, 2026
75b1a81
[Win] Garden http/tests/IndexedDB/transaction-commit-pending-requests…
csaavedra Oct 21, 2026
d7d7a23
Subgrid laid out while its outer grid computes intrinsic widths asser…
csaavedra Oct 21, 2026
19edf58
REGRESSION(324317@main): [GTK][WPE] Build broken with clang 19 and older
csaavedra Oct 21, 2026
c85316d
[GLib] Mark accessibility/accessible-name-recursion-no-crash.html as …
csaavedra Oct 21, 2026
699a477
[MSE] Removing a SourceBuffer leaves its cached content size stale
csaavedra Oct 21, 2026
6badfa0
Remove duplicate expectation for TestWebKitAPI.WKAttachmentTests.Chan…
csaavedra Oct 21, 2026
8743ced
IMDB.com caption font size menu doesn't change caption font size
jernoble Oct 21, 2026
2c08965
[TestWebKitAPI] TestWKWebView host windows are occluded by the host w…
Smackteo Oct 21, 2026
5893f47
composedPath() in a listener on a use element exposes its user agent …
karlcow Oct 21, 2026
25f7be7
Batch the remaining RemoteGraphicsContext draw messages in the GPU pr…
bnham Oct 21, 2026
7781d0f
REGRESSION(324177@main): PlayStation-Build-EWS is failing
colelao Oct 21, 2026
1829bce
REGRESSION(324303@main): [GTK][WPE] Build broken with clang 19 and older
csaavedra Oct 21, 2026
61a3179
[visionOS] Build failure on public SDK in WKSeparatedImageView
etiennesegonzac Oct 21, 2026
43cddb7
MobileSafari hangs for 4700ms to 10s+ in WebKit::WebExtensionContext:…
kiaraarose Oct 21, 2026
85a8ba9
ANGLE: Metal: Remove generateShareableShaders
kkinnunen-apple Oct 21, 2026
f177353
REGRESSION(324317@main): [GTK][WPE] Build broken with clang 19 and older
csaavedra Oct 21, 2026
d729939
[WPE] Cursors created from an image are broken when asserts are disabled
carlosgcampos Oct 21, 2026
0e7072d
[Quirks] add a PlayStation stub for shippedQuirkTableJSON
colelao Oct 21, 2026
2333666
Re-sync imported MutationObserver-characterData.html after wpt#63537 …
hjanuschka Oct 21, 2026
32b558b
Release CA rendering resources on critical memory pressure
rreno Oct 21, 2026
7698983
Clear Editor memory on document teardown or memory pressure
rreno Oct 21, 2026
f60ed9b
REGRESSION(324338@main): [PlayStation] TestWebCore build broken in Qu…
csaavedra Oct 21, 2026
b417fed
REGRESSION(322493@main): Animated SVG <img> scaled below its natural …
weinig Oct 21, 2026
81c32e2
[GTK] CSS SVG and image-set cursors rendered at twice their intended …
carlosgcampos Oct 21, 2026
2eb1451
WebGPU: Make the WebGPU C API the webgpu.h of Dawn
kkinnunen-apple Oct 21, 2026
44cdd64
WebGL: GPU reset causes all subsequent contexts to not work on Cocoa
kkinnunen-apple Oct 21, 2026
0703c6a
[Site Isolation] Web Inspector: Frames in other processes run between…
basuke Oct 21, 2026
465d7b2
[Cocoa] CoreAudioCaptureSource::startProducingData may restart with t…
eric-carlson Oct 21, 2026
c3c682b
[ews] Losen the matching builder/tester check
JonWBedard Oct 21, 2026
711cc17
[Cocoa] CoreGraphics draws uninitialized blurred areas for a blur style
anttijk Oct 21, 2026
733e2f6
Builds are failing with 'UNMutableNotificationSettings' is deprecated
JonWBedard Oct 21, 2026
60301ea
[Regression] 321601@main - webgpu:web_platform,copyToTexture,ImageBit…
mwyrzykowski Oct 21, 2026
943198b
[Gardening]: [ Sequoia ] TestWebKitAPI.PopupMenuTests.MenuTrackingCan…
Smackteo Oct 21, 2026
da78525
REGRESSION(324335@main): Broke the ASan build
JonWBedard Oct 21, 2026
85aa75b
New Test(322321@main): [ iOS ] TestWebKitAPI.SiteIsolation.SelectPosi…
rniwa Oct 21, 2026
e07a647
Blob's text() should decode its data as it arrives
annevk Oct 21, 2026
f062ddd
tabs.onUpdated should not report unchanged values and should report r…
xeenon Oct 21, 2026
935eb89
Unreviewed, relanding 324148@main with nit
Constellation Oct 21, 2026
6b57897
Web Inspector: report rendered font character ranges
dcrousso Oct 21, 2026
60ec359
REGRESSION(311090@main): word-break: keep-all allows many incorrect l…
fantasai Oct 21, 2026
38fd6ff
[Gardening]: [ Sequoia Release ] TestWebKitAPI.ExitFullscreenOnEnterP…
Smackteo Oct 21, 2026
9f731a7
gaze glow on map camera control is a rounded square instead of a circle
Oct 21, 2026
e3adc97
AX: need to propagate the title of an iframe to its enclosed web area…
minorninth Oct 21, 2026
3c5ef80
StreamClientConnection::send can hang when 0 to 15 bytes remain in th…
bnham Oct 21, 2026
cf08eff
[JSC] Limit the live number of threads $.agent can start when fuzzing
syg Oct 21, 2026
9960cb0
[JSC] Move immutableButterflyToStringCache from Heap to VM
dhecht Oct 21, 2026
ea219b1
[GLib] Remove expectations of media tests that pass since the switch …
csaavedra Oct 21, 2026
0da3f91
REGRESSION(291542@main): Layout stops updating inside nested scroll c…
alanbaradlay Oct 21, 2026
1da9da5
REGRESSION(324280@main): webkitcorepy mypy test fails on Linux becaus…
csaavedra Oct 21, 2026
ead5c17
[libpas] Generate per-flavor bootstrap free heaps and page providers …
Achierius Oct 21, 2026
d2db420
accessibility/AccessibilityScrollView.cpp is unexpectedly passing Unc…
rniwa Oct 21, 2026
18abb6d
[GARDENING][macOS x86_64] imported/w3c/web-platform-tests/css/css-ima…
JEspinal01 Oct 21, 2026
8c7db9b
Read non-inherited parent style from the parent instead of through a …
anttijk Oct 21, 2026
ac96093
Mark expectations for layout-tests and api-tests that have been filed
Smackteo Oct 21, 2026
3bc18e5
Unreviewed, reverting 324348@main (465d7b257fd6)
revert-bot Oct 21, 2026
e792f66
[ macOS ] Mark expectations for HUDScalesWithPinchZoom and Proofreadi…
Smackteo Oct 21, 2026
2a77cb4
[cleanup] Move the flex container's intrinsic width computation to La…
alanbaradlay Oct 21, 2026
70f4e7b
Simplify TextResourceDecoder::textFromUTF8()
annevk Oct 21, 2026
3ab3f38
Nested gaze glow on apple.com buy page option card
Oct 21, 2026
a4aef8f
Quote marks from open-quote and close-quote don't take the ::first-li…
alanbaradlay Oct 21, 2026
0f39a11
[ Gardening ] Add api tests that can be ran in parallel to the parall…
Smackteo Oct 21, 2026
dcd05bc
Resync WPT webvtt/ tests
jernoble Oct 21, 2026
ea5071b
Add ApplePayReferenceSession and ApplePayReferenceRequest
antoniotanzola Oct 21, 2026
7dddd7a
Unreviewed, reverting 324241@main (6eec4073ed42)
revert-bot Oct 21, 2026
4525d10
[Selection] getComposedRanges() over-rescopes when a passed shadow ro…
Ahmad-S792 Oct 21, 2026
0d24c8e
IdleDeadline::timeRemaining() recomputes the full idle deadline on ev…
Ahmad-S792 Oct 21, 2026
07d70c1
MediaSamplesBlock audio items should use CoreMedia's trimmed timing
jyavenard Oct 21, 2026
16ae568
[CMake] Enable phone number possession on the Cocoa port
atar13 Oct 21, 2026
9e42387
Don't send 8-bit gray and CMYK images to the GPU process as 16-bit im…
szewai Oct 21, 2026
8759de8
Fix SystemPreviewCanonicalWebPageURLIsPageURL swizzle block signatures
squelart Oct 21, 2026
f355f42
Don't use the mini mode scavenger in iOS app processes
bnham Oct 21, 2026
84363fa
[Debug] REGRESSION(322127@main): fast/dom/connected-subframe-counter-…
szewai Oct 21, 2026
b45f244
[JSC] DFG should not fold ResolvePromiseFirstResolving into a fulfill…
Constellation Oct 21, 2026
30c4eb2
[Cocoa] Turn on RemoteSnapshottingEnabled
shallawa Oct 21, 2026
4ca62a7
EventSource should not use a UTF-16 byte order mark
annevk Oct 21, 2026
c22ca36
REGRESSION (322754@main): Appending one cross-origin iframe from the …
AnujPanta1 Oct 21, 2026
dd24421
[JSC] DFG should not compile `op_has_private_name` as `InById`
sosukesuzuki Oct 21, 2026
e0dc929
[Flex] A stretched item in a column-reverse wrap flex container ignor…
alanbaradlay Oct 21, 2026
19de4c3
Web Inspector: Console: private methods should be visually distinguished
dcrousso Oct 21, 2026
c52f16f
[HTML-in-Canvas] Dispatch the canvas paint event after the Paint step
nullhook Oct 22, 2026
70f45cc
Rename ImagePaintingOptions to ImageDrawingOptions
nullhook Oct 22, 2026
c468c70
[webkitpy] run-api-tests --test-parallel-safety runs the allowlisted …
Smackteo Oct 22, 2026
a292a04
<link rel=modulepreload> lets a module script bypass strict-dynamic CSP
roberto-apple Oct 22, 2026
5decaf7
[Site Isolation][macOS] TestWebKitAPI.ProcessSwap.GoBackToSuspendedPa…
szewai Oct 22, 2026
b14e295
MediaRecorder loses its final data when stopped while a timeslice fet…
jyavenard Oct 22, 2026
1af9d48
[JSC] `ArrayMode::refine` should ignore `ExoticObjectMode` exit sites…
sosukesuzuki Oct 22, 2026
7b1cfc5
[JSC] Overwritten `length` of sloppy arguments objects should be conv…
sosukesuzuki Oct 22, 2026
a300b87
[JSC] `forEachOwnIndexedProperty` should read the butterfly directly
sosukesuzuki Oct 22, 2026
7de8296
[Site Isolation] A view transition captures a cross-site iframe as a …
mattwoodrow Oct 22, 2026
d142da3
[ iOS ] Fix expectations for media/media-playback-in-background-hando…
Smackteo Oct 22, 2026
3d77b9c
Color extensions should immediately finish fade animations if moved o…
lilyspiniolas Oct 22, 2026
0215e8d
[Image Redux] Decide whether to drag an image itself by its concrete …
weinig Oct 22, 2026
f75e355
Update <option> when descendants change
annevk Oct 22, 2026
202ef7b
Serializing a SharedArrayBuffer only requires a cross-origin isolated…
annevk Oct 22, 2026
84ac394
[cleanup] Compute the flex container's intrinsic widths in FlexFormat…
alanbaradlay Oct 22, 2026
7912651
[JSC] Do not copy |this| into a temporary when it is the base of an a…
Constellation Oct 22, 2026
efcd462
Decode most LEBs with a branchless fast path
kmiller68 Oct 22, 2026
e1597c8
[JSC] Map/Set/WeakMap/WeakSet should accept undefined/null as iterabl…
Constellation Oct 22, 2026
2615572
Location-object navigations check the wrong document to decide whethe…
annevk Oct 22, 2026
f78079c
[JSC] Add additional array creation fast path after getting "construc…
Constellation Oct 22, 2026
8f0b158
[JSC] Fixup Int32Use/Int52RepUse/DoubleRepUse for ToPropertyKey
Constellation Oct 22, 2026
b14e07b
New Test(324036@main): [ iOS ] platform/ios/media/video-fullscreen-ba…
aestes Oct 22, 2026
6a67801
[margin-trim] Block-start margin of a block nested in an inline box i…
csaavedra Oct 22, 2026
fbba9f5
getBoundingClientRect() returns wrong boxes for <option> and <optgrou…
yury-s Oct 22, 2026
9bcc95d
[GLib] mixed-content-cors.https.sub.html fails in Debug since the swi…
csaavedra Oct 22, 2026
fd4b309
Add console logging when COOP or COEP isolation is expected but not a…
brentfulgham Oct 22, 2026
51e7f3e
Factor tap highlight management out of WKContentViewInteraction
aprotyas Oct 22, 2026
1026dd0
[ Gardening ] Remove API tests that flake when run in parallel from t…
Smackteo Oct 22, 2026
8c8ab2d
[ews] Increase API-Tests-iOS-Simulator-EWS child processes from 3 to 5
Smackteo Oct 22, 2026
e40b378
[Site Isolation] The selection services button shows for a selection …
ruthvikkonda Oct 22, 2026
c8fe393
[Site Isolation] _requestTargetedElementInfo with search text doesn't…
jelee53 Oct 22, 2026
9afaa50
setInterval() should invalidate m_nextTimerFireTimeCache
francovs Oct 22, 2026
931907b
[LFC] Remove unused leftovers of the layout tree builder
anttijk Oct 22, 2026
aaab2ce
[Skia] Worker OffscreenCanvas: SIGSEGV in CoordinatedPlatformLayerBuf…
ehfd Oct 22, 2026
fc07f93
[WPE][GTK] Expose EME MediaKeys attachment as has-protected-media
philn Oct 22, 2026
668b6db
AAC AudioEncoder produces incorrect decoder config description
youennf Oct 22, 2026
8823355
[GStreamer][WebAudio] Add a jitter buffer to the MediaStream WebAudio…
philn Oct 22, 2026
1fe3c50
[GStreamer] Web process crashes on 32-bit when playing blob: media wi…
philn Oct 22, 2026
6f54107
[WPE][GTK] Add User-Agent quirk for OrangeTV
philn Oct 22, 2026
3c59f29
[GLib] Mark tests that pass after recent fixes as passing
csaavedra Oct 22, 2026
15a5c03
REGRESSION(324436@main): [WPE] Build broken in AudioUtilities.cpp: mi…
spenap Oct 22, 2026
5d30dc8
[ Gardening ] Remove more API tests that flake when run in parallel f…
Smackteo Oct 22, 2026
03a5f11
[CoordinatedGraphics] Introduce CoordinatedTileManager
carlosgcampos Oct 22, 2026
8da6562
[WebVTT] Two webvtt/parsing/file-parsing/tests failures: settings-lin…
jernoble Oct 22, 2026
a689b3f
[WebVTT] WPT test webvtt/rendering/cues-with-video/processing-model/b…
jernoble Oct 22, 2026
9b74ed5
[OpenSSL] Implement Ed25519 and X25519
csaavedra Oct 22, 2026
4fe22f1
[WebVTT] WPT tests webvtt/rendering/cues-with-video/processing-model/…
jernoble Oct 22, 2026
dd7147d
WebGPU: Remove WebGPUExt.h
kkinnunen-apple Oct 22, 2026
de90a27
Scroll-driven animation invalidates style on every animation update e…
jhf Oct 22, 2026
2b3eefd
[GTK] Skip perf test Canvas/drawImageSourceImageBitmapCanvasWebGL.html
clopez Oct 22, 2026
be6a540
[GTK][WPE] Gardening of tests - 2026-10-22
spenap Oct 22, 2026
0f30945
Parse Document-Isolation-Policy-Report-Only and report-to
annevk Oct 22, 2026
68ffc1e
[Image Redux] Rasterize an interaction region's icon through Style::I…
weinig Oct 22, 2026
b6f26e0
Avoid out-of-bounds read in isPlayReadySanitizedInitializationData
SABITHSAHEB Oct 22, 2026
68d603b
Remove unretained member suppressions for rdar://161063702
rniwa Oct 22, 2026
84b39b9
Build Swift toolchain step can fail due to stale files
rniwa Oct 22, 2026
1d8994a
[line-clamp] Absolutely positioned box inside content after the clamp…
Oct 22, 2026
91fb668
[JSC] HasOwnPropertyCache should record structure + "1"
Constellation Oct 22, 2026
97a4ff0
[webkitpy] Raise a simulator's teardown failure instead of "No active…
Smackteo Oct 22, 2026
6663a9e
[WTF] Teach zmij ECMAScript Number::toString formatting instead of wr…
Constellation Oct 22, 2026
f2c12b8
REGRESSION(323917@main): [ iOS ] 2x http/tests history and navigation…
Smackteo Oct 22, 2026
0902c89
[macOS] Add portal-transform & portal-action support to Spatial Portals
etiennesegonzac Oct 22, 2026
cfc39eb
[Site Isolation] [iOS] imported/w3c/web-platform-tests/html/user-acti…
Smackteo Oct 22, 2026
7266b35
[webkitpy] Start the longest shards first, using the previous run's t…
Smackteo Oct 22, 2026
8cff520
Update <select> when descendants of its <button> change
annevk Oct 22, 2026
7d66cb6
[LBSE] SVG gradients filtered via -apple-color-filter may draw incorr…
lilyspiniolas Oct 22, 2026
babf0e8
[webkitcorepy] Add run_all to start several commands and wait on them…
Smackteo Oct 22, 2026
691ea04
[Site Isolation] TestWebKitAPI.GraphicsContextGLCocoaTest/AnyContextA…
szewai Oct 22, 2026
4a40d5e
Size container query against a renderer not yet in the render tree as…
csaavedra Oct 22, 2026
e922a2d
[Apple Pay] Expose the "estimated" line item type to web content
lais-v-apple Oct 22, 2026
bbb0cc3
REGRESSION(324164@main): [WPEPlatform] Keep building WPE with GLib 2.70
csaavedra Oct 22, 2026
2a18fbe
[Xcode] Use unversioned SDK symlinks in OS 27 additions
emw-apple Oct 22, 2026
e694e76
[Cocoa] Queue capture permission requests to the UI delegate
eric-carlson Oct 22, 2026
a5ec4c1
[GARDENING]NEW TEST(323881@main): 3x media/modern-media-controls/spat…
JEspinal01 Oct 22, 2026
e1a28d3
[JSC] Fix leftover marks after the marking version wraps, and test th…
dhecht Oct 22, 2026
67cd519
Revert [324431@main] _requestTargetedElementInfo broken in site isola…
jelee53 Oct 22, 2026
eaf0efa
[JSC] Stop a heap's local Collector threads when the heap shuts down
dhecht Oct 22, 2026
26e8794
Pass tap highlight corner radii as CornerRadii instead of four IntSizes
aprotyas Oct 22, 2026
eab6c29
[WebVTT] 3 WPT tests in webvtt/rendering/cues-with-video/processing-m…
jernoble Oct 22, 2026
2e98963
[Quirks] Remove the compiled quirk table
colelao Oct 22, 2026
5622760
[GARDENING][macOS x86_64]REGRESSION(319900@main): imported/w3c/web-pl…
JEspinal01 Oct 22, 2026
d5fa5db
[webkitpy] ESLintCheckerTest.test_missing_eslint_is_skipped is flaky
csaavedra Oct 22, 2026
95de66c
XMLHttpRequest JSON responses should always be decoded as UTF-8
annevk Oct 22, 2026
0a40306
AX: add SPI to enable iOS Smart Invert to query if the page is dark a…
minorninth Oct 22, 2026
bd2c66d
[Site Isolation] Validate frame in DidDestroyFrame, FrameNameChanged …
roberto-apple Oct 22, 2026
0b1d672
NodeHTMLConverter reads every intent kind by tag or role
taruday Oct 22, 2026
0419dbd
Upstream WritingTools code
othermaciej Oct 22, 2026
0f380c8
AX: [iOS] VoiceOver presses dispatch two pointerdown events on pages …
minorninth Oct 22, 2026
2a832fc
[Site Isolation] Web Inspector: Add a test for audits on a page with …
zakariaridouh Oct 22, 2026
5886192
DisplayRefreshMonitorManager::scheduleAnimation marks client schedule…
Ahmad-S792 Oct 22, 2026
b6c9842
SamplingProfiler::StackTrace's move constructor drops stopwatchTimestamp
the-chenergy Oct 22, 2026
c593699
[Site Isolation] Web Inspector: Download Web Archive drops cross-orig…
zakariaridouh Oct 22, 2026
1ec6d2c
[CMake] PhoneNumberPossessionCredential.cpp fails to compile in iOS b…
Oct 22, 2026
8af75cf
[Swift in WebKit] Make it easier to create an `std::expected` from Swift
rr-codes Oct 22, 2026
d2a655b
[JSC] Start all of a heap's versions near the wrap in tests, not just…
dhecht Oct 22, 2026
15d89cb
[Swift in WebKit] Adopt `-clang-header-expose-decls=has-expose-attr-o…
rr-codes Oct 22, 2026
90af172
New Test(323973@main): [ iOS ] http/wpt/service-workers/service-worke…
aestes Oct 22, 2026
5cd7fde
Private Click Measurement API tests share website data directories ac…
Smackteo Oct 22, 2026
4ca516c
Update <option> when the alt attribute of a descendant <img> changes
annevk Oct 22, 2026
6232d76
Update <optgroup> when its <legend> changes
annevk Oct 22, 2026
e4d994c
[ Gardening ] Remove download and unpartitioned storage API tests tha…
Smackteo Oct 22, 2026
04c42bf
Move specializedChineseLocale caching from FontDescription to WTF/Lan…
weinig Oct 22, 2026
80b83e7
Add Shu-yu Guo to reviewers in contributors.json
syg Oct 23, 2026
4990218
Stopwatch::reset() doesn't clear the stopwatch's past run intervals
the-chenergy Oct 23, 2026
057d7e0
Queue Document-Isolation-Policy CORP violation reports for network loads
annevk Oct 23, 2026
e50f025
[JSC] Avoid creating fresh Source for each JSBoundFunction
Constellation Oct 23, 2026
acfd528
REGRESSION(324486@main): [ iOS ] Debug builds fail with property '_ax…
robert-jenner Oct 23, 2026
e7c482a
[GTK][WPE] Gardening of tests - 2026-10-23
fujii Oct 23, 2026
f785096
Web Inspector: Extension Scripts are missing from the Sources tab.
xeenon Oct 23, 2026
f59345e
[JSC] Remove BIGINT32
Constellation Oct 23, 2026
e026fb7
Merge upstream WebKit f59345e04a8d into bun/upgrade-to-f59345e04a8d
dylan-conway Oct 23, 2026
4a6dc55
Merge remote-tracking branch 'origin/main' into bun/upgrade-to-f59345…
dylan-conway Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let o = { "50": "a", "100": "a", "200": "a", "300": "a", "400": "a", "500": "a", "600": "a", "700": "a", "800": "a", "900": "a", "950": "a", };
for (let i = 0; i < 1e4; i++) {
Object.assign({}, o);
Object.assign({ "0": -1 }, o);
}
5 changes: 5 additions & 0 deletions JSTests/microbenchmarks/object-assign-holey-double-source.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let o = { "50": 10.12, "100": 20.12, "200": 30.12, "300": 40.12, "400": 50.12, "500": 60.12, "600": 70.12, "700": 80.12, "800": 90.12, "900": 100.12, "950": 110.12, };
for (let i = 0; i < 1e4; i++) {
Object.assign({}, o);
Object.assign({ "0": -1 }, o);
}
3 changes: 3 additions & 0 deletions JSTests/microbenchmarks/object-values-holey-contiguous.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let o = { "50": "a", "100": "a", "200": "a", "300": "a", "400": "a", "500": "a", "600": "a", "700": "a", "800": "a", "900": "a", "950": "a", };
for (let i = 0; i < 1e4; i++)
Object.values(o);
39 changes: 39 additions & 0 deletions JSTests/stress/arith-add-truncated-constant-under-int52-add.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//@ skip if not $jitTests
//@ $skipModes << :lockdown
//@ requireOptions("--forceUnlinkedDFG=0")
//@ defaultNoEagerRun

function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual + ' expected: ' + expected);
}

// The constants do not fit in int32, so the adds only stay in int32 by truncating them. The outer add
// can overflow int32 and is computed as Int52, which must not keep the inner add from being truncated.
function hash(seed) {
seed = ((seed + 0xd3a2646c) ^ (seed << 9)) & 0xffffffff;
seed = ((seed + 0x80000001) + (seed << 3)) & 0xffffffff;
return seed;
}
noInline(hash);

function referenceHash(seed) {
seed = Number(BigInt.asIntN(32, BigInt(seed) + 0xd3a2646cn)) ^ (seed << 9);
seed = Number(BigInt.asIntN(32, BigInt(seed) + 0x80000001n + BigInt(seed << 3)));
return seed;
}

var seeds = [];
var expected = [];
var seed = 49734321;
for (var i = 0; i < 1024; ++i) {
seeds.push(seed);
expected.push(referenceHash(seed));
seed = (Math.imul(seed, 1103515245) + 12345) | 0;
}

for (var i = 0; i < testLoopCount; ++i)
shouldBe(hash(seeds[i & 1023]), expected[i & 1023]);

if (numberOfDFGCompiles(hash) > 1)
throw new Error('hash should not keep exiting, but was compiled ' + numberOfDFGCompiles(hash) + ' times');
63 changes: 63 additions & 0 deletions JSTests/stress/arith-mul-narrow-typed-array-load-truncation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual + ' expected: ' + expected);
}

function hash(array, scale) {
var sum = 0;
for (var i = 0; i < array.length; i++)
sum ^= (i * scale * array[i]) | 0;
return sum;
}
noInline(hash);

function referenceHash(array, scale) {
var sum = 0;
for (var i = 0; i < array.length; i++)
sum ^= Number(BigInt.asIntN(32, BigInt(i * scale) * BigInt(array[i])));
return sum;
}

function mulByLoad(array, index, value) {
return (value * array[index]) | 0;
}
noInline(mulByLoad);

var uint8 = new Uint8Array(64);
var int16 = new Int16Array(64);
for (var i = 0; i < 64; ++i) {
uint8[i] = (i * 37) & 0xff;
int16[i] = (i * 7919) & 0xffff;
}

var expectedProducts = [];
for (var i = 0; i < 64; ++i)
expectedProducts.push(Number(BigInt.asIntN(32, 0x7fffffffn * BigInt(uint8[i]))));
var indexStrings = [];
for (var i = 0; i < 64; ++i)
indexStrings.push(String(i));
var expectedUint8Hash = referenceHash(uint8, 3);
var expectedInt16Hash = referenceHash(int16, 30000001);
for (var i = 0; i < testLoopCount; ++i) {
shouldBe(hash(uint8, 3), expectedUint8Hash);
shouldBe(hash(int16, 30000001), expectedInt16Hash);
shouldBe(mulByLoad(uint8, i & 63, 0x7fffffff), expectedProducts[i & 63]);
}

// A non-int32 index refines the load into a generic access even though only a Uint8Array was
// profiled. The product must then stay exact for arbitrary int32 elements.
function mulByLoadWithAnyIndex(array, index, value) {
return (value * array[index]) | 0;
}
noInline(mulByLoadWithAnyIndex);

for (var i = 0; i < testLoopCount; ++i) {
shouldBe(mulByLoadWithAnyIndex(uint8, i & 63, 3), (3 * uint8[i & 63]) | 0);
shouldBe(mulByLoadWithAnyIndex(uint8, indexStrings[i & 63], 3), (3 * uint8[i & 63]) | 0);
}

var wide = [0x7fffffff, -0x80000000, 0x12345678];
for (var i = 0; i < testLoopCount; ++i) {
var index = i % 3;
shouldBe(mulByLoadWithAnyIndex(wide, index, 0x7fffffff), (0x7fffffff * wide[index]) | 0);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error(`expected ${expected} but got ${actual}`);
}

const spreadable = { length: 1, 0: 4, [Symbol.isConcatSpreadable]: true };

function testConcat(call) {
shouldBe(call([1, 2, 3], "concat", spreadable).join(), "1,2,3,4");
}

function testMutator(call, name, expected) {
const array = [1, 2, 3];
shouldBe(call(array, name, 4), 4);
shouldBe(array.join(), expected);
}

function concatThenPush(array, name, value) {
return array[name](value);
}
noInline(concatThenPush);

function concatThenUnshift(array, name, value) {
return array[name](value);
}
noInline(concatThenUnshift);

function concatOrPush(array, name, value) {
return array[name](value);
}
noInline(concatOrPush);

function concatOrUnshift(array, name, value) {
return array[name](value);
}
noInline(concatOrUnshift);

for (let i = 0; i < testLoopCount; ++i) {
testConcat(concatThenPush);
testConcat(concatThenUnshift);
}

for (let i = 0; i < testLoopCount; ++i) {
testMutator(concatThenPush, "push", "1,2,3,4");
testMutator(concatThenUnshift, "unshift", "4,1,2,3");
}

for (let i = 0; i < testLoopCount; ++i) {
testConcat(concatOrPush);
testMutator(concatOrPush, "push", "1,2,3,4");
testConcat(concatOrUnshift);
testMutator(concatOrUnshift, "unshift", "4,1,2,3");
}
45 changes: 45 additions & 0 deletions JSTests/stress/array-species-create-proxy-array-constructor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual + ' expected: ' + expected);
}

function test(array) {
var filtered = array.filter((x) => x > 1);
var mapped = array.map((x) => x * 2);
var sliced = array.slice(1);
return [filtered, mapped, sliced];
}
noInline(test);

var constructorReads = 0;
var proxy = new Proxy([1, 2, 3], {
get(target, key, receiver) {
if (key === 'constructor')
++constructorReads;
return Reflect.get(target, key, receiver);
}
});

for (var i = 0; i < testLoopCount; ++i) {
var [filtered, mapped, sliced] = test(proxy);
shouldBe(Array.isArray(filtered), true);
shouldBe(Object.getPrototypeOf(filtered), Array.prototype);
shouldBe(filtered.join(), '2,3');
shouldBe(mapped.join(), '2,4,6');
shouldBe(sliced.join(), '2,3');
}
shouldBe(constructorReads, testLoopCount * 3);

class MyArray extends Array { }
var speciesCalls = 0;
Object.defineProperty(Array, Symbol.species, {
get() {
++speciesCalls;
return MyArray;
}
});
var [filtered, mapped, sliced] = test(proxy);
shouldBe(filtered instanceof MyArray, true);
shouldBe(mapped instanceof MyArray, true);
shouldBe(sliced instanceof MyArray, true);
shouldBe(speciesCalls, 3);
30 changes: 0 additions & 30 deletions JSTests/stress/big-int-32-parsing-should-be-precise.js

This file was deleted.

2 changes: 1 addition & 1 deletion JSTests/stress/bigint-inc-dec-in-place.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ shouldBe(dec(1n), 0n);
shouldBe(inc(-2n), -1n);
shouldBe(dec(-1n), -2n);

// BigInt32 boundaries (under USE(BIGINT32) these transition to/from heap BigInt).
// Signed 32-bit boundaries.
shouldBe(inc(2147483647n), 2147483648n);
shouldBe(dec(2147483648n), 2147483647n);
shouldBe(inc(-2147483649n), -2147483648n);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//@ memoryHog!
//@ runDefault("--useFuzzerMode=1")
// In fuzzer mode, $.agent.start throws once 64 agents are alive, and succeeds again after they exit.

const maxLiveAgents = 64;
for (let i = 0; i < maxLiveAgents; i++)
$.agent.start(`$.agent.receiveBroadcast(() => { });`);

let error;
try {
$.agent.start(``);
} catch (e) {
error = e;
}
if (!(error instanceof Error) || error.message !== "Too many live agents")
throw new Error(`Expected "Too many live agents" error, got: ${error}`);

$.agent.broadcast(new SharedArrayBuffer(4), 0);

for (let attempt = 0; ; attempt++) {
try {
$.agent.start(``);
break;
} catch (e) {
if (attempt === 1000)
throw e;
$.agent.sleep(10);
}
}
92 changes: 92 additions & 0 deletions JSTests/stress/for-await-of-head-async-identifier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error(`expected ${expected} but got ${actual}`);
}

function shouldBeSyntaxError(source) {
var error;
try {
new Function(source);
} catch (e) {
error = e;
}
if (!(error instanceof SyntaxError))
throw new Error(`expected SyntaxError for ${source}`);
}

var async;

async function test() {
for await (async of [1, 2]) ;
shouldBe(async, 2);

for await (async
of [3]) ;
shouldBe(async, 3);

var of = [4];
for await (async of of) ;
shouldBe(async, 4);

for await (async of async = [5]) ;
shouldBe(async, 5);

async = { };
for await (async.x of [6]) ;
shouldBe(async.x, 6);

for await ((async) of [7]) ;
shouldBe(async, 7);

for await (\u0061sync of [8]) ;
shouldBe(async, 8);
}

async function testLocal() {
var async;
var functions = [];
for await (async of [1, 2])
functions.push(() => async);
shouldBe(functions[0](), 2);
return async;
}

async function testStrict() {
"use strict";
let async;
for await (async of [9]) ;
return async;
}

var finished = false;
var error;
(async function () {
await test();
shouldBe(await testLocal(), 2);
shouldBe(await testStrict(), 9);
finished = true;
})().catch(e => { error = e; });
drainMicrotasks();
if (error)
throw error;
shouldBe(finished, true);

for (async of => { }; ;)
break;

for ((async) of [10]) ;
shouldBe(async, 10);

for (\u0061sync of [11]) ;
shouldBe(async, 11);

shouldBeSyntaxError(`for (async of []) ;`);
shouldBeSyntaxError(`for (async\nof []) ;`);
shouldBeSyntaxError(`for (async of => { } of []) ;`);
shouldBeSyntaxError(`async function f() { for (async of []) ; }`);
shouldBeSyntaxError(`async function f() { for (async\nof []) ; }`);
shouldBeSyntaxError(`async function f() { for await (async of => { } of []) ; }`);
shouldBeSyntaxError(`async function f() { for await (async of => { }; ;) break; }`);
shouldBeSyntaxError(`async function f() { for await (async x of []) ; }`);
shouldBeSyntaxError(`async function f() { for await (async of) ; }`);
shouldBeSyntaxError(`async function f() { for await (async of [], []) ; }`);
2 changes: 1 addition & 1 deletion JSTests/stress/for-let-comma.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function foo() {
var array = [];
for (let x = 0, []; x < 10; ++x) { array.push(x); }
for (let x = 0, [] = []; x < 10; ++x) { array.push(x); }
return array;
}

Expand Down
Loading
Loading