Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 10b3c7332780d0ebdd37868da4858fee93593cc4
https://github.com/WebKit/WebKit/commit/10b3c7332780d0ebdd37868da4858fee93593cc4
Author: Yusuke Suzuki <[email protected]>
Date: 2026-07-20 (Mon, 20 Jul 2026)
Changed paths:
A
JSTests/stress/object-define-property-fields-merged-non-object-descriptor.js
M Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
Log Message:
-----------
[JSC] DFG Object.defineProperty descriptor cell confusion (JIT code invalid
cell dereference)
https://bugs.webkit.org/show_bug.cgi?id=318139
rdar://180958800
Reviewed by Yijia Huang.
When constant-folding ObjectDefineProperty, we should emit checks
attached in the edges to ensure that these filters work. In this case,
descriptor's ObjectUse edge filter is missing.
Test:
JSTests/stress/object-define-property-fields-merged-non-object-descriptor.js
* JSTests/stress/object-define-property-fields-merged-non-object-descriptor.js:
Added.
(shouldBe):
(shouldThrow):
(defineWithMaybeDescriptor):
(pressure):
(reviver):
* Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):
Canonical link: https://commits.webkit.org/317601@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications