-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 263909@main (52fe95e). https://bugs.webkit.org/show_bug.c…
…gi?id=256567 EnumeratorNextUpdateIndexAndMode and HasIndexedProperty should have different heap location kinds https://bugs.webkit.org/show_bug.cgi?id=256567 rdar://109089013 Reviewed by Yusuke Suzuki. EnumeratorNextUpdateIndexAndMode and HasIndexedProperty are different DFG nodes. However, they might introduce the same heap location kind in DFGClobberize.h which might lead to hash collision. We should introduce a new locationn kind for EnumeratorNextUpdateIndexAndMode. * JSTests/stress/heap-location-collision-dfg-clobberize.js: Added. (foo): * Source/JavaScriptCore/dfg/DFGClobberize.h: (JSC::DFG::clobberize): * Source/JavaScriptCore/dfg/DFGHeapLocation.cpp: (WTF::printInternal): * Source/JavaScriptCore/dfg/DFGHeapLocation.h: Canonical link: https://commits.webkit.org/263909@main Canonical link: https://commits.webkit.org/260527.376@webkitglib/2.40
- Loading branch information
1 parent
a941dd0
commit ebefb9e
Showing
4 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ runDefault("--watchdog=300", "--watchdog-exception-ok") | ||
const arr = [0]; | ||
|
||
function foo() { | ||
for (let _ in arr) { | ||
0 in arr; | ||
while(1); | ||
} | ||
} | ||
|
||
|
||
foo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters