⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286070 in webkit


Ignore:
Timestamp:
Nov 19, 2021, 11:36:35 AM (5 years ago)
Author:
sbarati@apple.com
Message:

Fix assertion added in r285592
https://bugs.webkit.org/show_bug.cgi?id=233373
JSTests:

Reviewed by Keith Miller.

  • stress/validate-assert-uid-is-not-index-or-it-is-symbol.js: Added.

(main.v11):
(main.v29):
(main):

Source/JavaScriptCore:

rdar://85451012

Reviewed by Keith Miller.

The assertion added in r285592 should not apply to Symbols. This patch
fixes that error. We don't care if a Symbol can be parsed as an index
since the string value in a Symbol is just its description, not the
actual property.

  • dfg/DFGValidate.cpp:
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r286069 r286070  
     12021-11-19  Saam Barati  <sbarati@apple.com>
     2
     3        Fix assertion added in r285592
     4        https://bugs.webkit.org/show_bug.cgi?id=233373
     5
     6        Reviewed by Keith Miller.
     7
     8        * stress/validate-assert-uid-is-not-index-or-it-is-symbol.js: Added.
     9        (main.v11):
     10        (main.v29):
     11        (main):
     12
    1132021-11-19  Joseph Griego  <jgriego@igalia.com>
    214
  • trunk/Source/JavaScriptCore/ChangeLog

    r286069 r286070  
     12021-11-19  Saam Barati  <sbarati@apple.com>
     2
     3        Fix assertion added in r285592
     4        https://bugs.webkit.org/show_bug.cgi?id=233373
     5        rdar://85451012
     6
     7        Reviewed by Keith Miller.
     8
     9        The assertion added in r285592 should not apply to Symbols. This patch
     10        fixes that error. We don't care if a Symbol can be parsed as an index
     11        since the string value in a Symbol is just its description, not the
     12        actual property.
     13
     14        * dfg/DFGValidate.cpp:
     15
    1162021-11-19  Joseph Griego  <jgriego@igalia.com>
    217
  • trunk/Source/JavaScriptCore/dfg/DFGValidate.cpp

    r285592 r286070  
    239239                if (node->hasCacheableIdentifier()) {
    240240                    auto* uid = node->cacheableIdentifier().uid();
    241                     VALIDATE((node), !parseIndex(*uid));
     241                    VALIDATE((node), uid->isSymbol() || !parseIndex(*uid));
    242242                }
    243243                 
Note: See TracChangeset for help on using the changeset viewer.