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

Changeset 235730 in webkit


Ignore:
Timestamp:
Sep 6, 2018, 1:11:57 AM (8 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r235715. rdar://problem/44169344

JSPropertyNameEnumerator::visitChildren() needs to visit its m_cachedStructureID.
​https://bugs.webkit.org/show_bug.cgi?id=189124
<rdar://problem/43863605>

Reviewed by Filip Pizlo.

JSTests:

  • stress/regress-189124.js: Added.

Source/JavaScriptCore:

It is assumed that the Structure for the m_cachedStructureID will remain alive
while the m_cachedStructureID is in use. This prevents the structureID from being
re-used for a different Structure.

  • runtime/JSPropertyNameEnumerator.cpp: (JSC::JSPropertyNameEnumerator::visitChildren):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@235715 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-606-branch
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-606-branch/JSTests/ChangeLog

    r235728 r235730  
     12018-09-06  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r235715. rdar://problem/44169344
     4
     5    JSPropertyNameEnumerator::visitChildren() needs to visit its m_cachedStructureID.
     6    https://bugs.webkit.org/show_bug.cgi?id=189124
     7    <rdar://problem/43863605>
     8   
     9    Reviewed by Filip Pizlo.
     10   
     11    JSTests:
     12   
     13    * stress/regress-189124.js: Added.
     14   
     15    Source/JavaScriptCore:
     16   
     17    It is assumed that the Structure for the m_cachedStructureID will remain alive
     18    while the m_cachedStructureID is in use.  This prevents the structureID from being
     19    re-used for a different Structure.
     20   
     21    * runtime/JSPropertyNameEnumerator.cpp:
     22    (JSC::JSPropertyNameEnumerator::visitChildren):
     23   
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2018-09-05  Mark Lam  <mark.lam@apple.com>
     29
     30            JSPropertyNameEnumerator::visitChildren() needs to visit its m_cachedStructureID.
     31            https://bugs.webkit.org/show_bug.cgi?id=189124
     32            <rdar://problem/43863605>
     33
     34            Reviewed by Filip Pizlo.
     35
     36            * stress/regress-189124.js: Added.
     37
    1382018-09-06  Babak Shafiei  <bshafiei@apple.com>
    239
  • branches/safari-606-branch/Source/JavaScriptCore/ChangeLog

    r235728 r235730  
     12018-09-06  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r235715. rdar://problem/44169344
     4
     5    JSPropertyNameEnumerator::visitChildren() needs to visit its m_cachedStructureID.
     6    https://bugs.webkit.org/show_bug.cgi?id=189124
     7    <rdar://problem/43863605>
     8   
     9    Reviewed by Filip Pizlo.
     10   
     11    JSTests:
     12   
     13    * stress/regress-189124.js: Added.
     14   
     15    Source/JavaScriptCore:
     16   
     17    It is assumed that the Structure for the m_cachedStructureID will remain alive
     18    while the m_cachedStructureID is in use.  This prevents the structureID from being
     19    re-used for a different Structure.
     20   
     21    * runtime/JSPropertyNameEnumerator.cpp:
     22    (JSC::JSPropertyNameEnumerator::visitChildren):
     23   
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2018-09-05  Mark Lam  <mark.lam@apple.com>
     29
     30            JSPropertyNameEnumerator::visitChildren() needs to visit its m_cachedStructureID.
     31            https://bugs.webkit.org/show_bug.cgi?id=189124
     32            <rdar://problem/43863605>
     33
     34            Reviewed by Filip Pizlo.
     35
     36            It is assumed that the Structure for the m_cachedStructureID will remain alive
     37            while the m_cachedStructureID is in use.  This prevents the structureID from being
     38            re-used for a different Structure.
     39
     40            * runtime/JSPropertyNameEnumerator.cpp:
     41            (JSC::JSPropertyNameEnumerator::visitChildren):
     42
    1432018-09-06  Babak Shafiei  <bshafiei@apple.com>
    244
  • branches/safari-606-branch/Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.cpp

    r227906 r235730  
    11/*
    2  * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
     2 * Copyright (C) 2014-2018 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
    … …  
    9494        visitor.append(propertyName);
    9595    visitor.append(thisObject->m_prototypeChain);
     96
     97    VM& vm = visitor.vm();
     98    visitor.appendUnbarriered(vm.getStructure(thisObject->cachedStructureID()));
    9699}
    97100
Note: See TracChangeset for help on using the changeset viewer.