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

Changeset 245349 in webkit


Ignore:
Timestamp:
May 15, 2019, 2:44:46 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r244314. rdar://problem/50753930

SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
https://bugs.webkit.org/show_bug.cgi?id=196945
<rdar://problem/49802750>

Reviewed by Filip Pizlo.

JSTests:

  • stress/get-by-offset-should-use-correct-child.js: Added. (foo.bar): (foo):

Source/JavaScriptCore:

  • dfg/DFGSafeToExecute.h: (JSC::DFG::safeToExecute):

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

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

Legend:

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

    r245348 r245349  
     12019-05-14  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r244314. rdar://problem/50753930
     4
     5    SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     6    https://bugs.webkit.org/show_bug.cgi?id=196945
     7    <rdar://problem/49802750>
     8   
     9    Reviewed by Filip Pizlo.
     10   
     11    JSTests:
     12   
     13    * stress/get-by-offset-should-use-correct-child.js: Added.
     14    (foo.bar):
     15    (foo):
     16   
     17    Source/JavaScriptCore:
     18   
     19    * dfg/DFGSafeToExecute.h:
     20    (JSC::DFG::safeToExecute):
     21   
     22   
     23    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     24
     25    2019-04-15  Saam barati  <sbarati@apple.com>
     26
     27            SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     28            https://bugs.webkit.org/show_bug.cgi?id=196945
     29            <rdar://problem/49802750>
     30
     31            Reviewed by Filip Pizlo.
     32
     33            * stress/get-by-offset-should-use-correct-child.js: Added.
     34            (foo.bar):
     35            (foo):
     36
    1372019-05-14  Kocsen Chung  <kocsen_chung@apple.com>
    238
  • branches/safari-607-branch/Source/JavaScriptCore/ChangeLog

    r245348 r245349  
     12019-05-14  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r244314. rdar://problem/50753930
     4
     5    SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     6    https://bugs.webkit.org/show_bug.cgi?id=196945
     7    <rdar://problem/49802750>
     8   
     9    Reviewed by Filip Pizlo.
     10   
     11    JSTests:
     12   
     13    * stress/get-by-offset-should-use-correct-child.js: Added.
     14    (foo.bar):
     15    (foo):
     16   
     17    Source/JavaScriptCore:
     18   
     19    * dfg/DFGSafeToExecute.h:
     20    (JSC::DFG::safeToExecute):
     21   
     22   
     23    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     24
     25    2019-04-15  Saam barati  <sbarati@apple.com>
     26
     27            SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     28            https://bugs.webkit.org/show_bug.cgi?id=196945
     29            <rdar://problem/49802750>
     30
     31            Reviewed by Filip Pizlo.
     32
     33            * dfg/DFGSafeToExecute.h:
     34            (JSC::DFG::safeToExecute):
     35
    1362019-05-14  Kocsen Chung  <kocsen_chung@apple.com>
    237
  • branches/safari-607-branch/Source/JavaScriptCore/dfg/DFGSafeToExecute.h

    r240426 r245349  
    544544        // structure that has a type proof, then the next case below will deal with it.
    545545        if (state.structureClobberState() == StructuresAreWatched) {
    546             if (JSObject* knownBase = node->child1()->dynamicCastConstant<JSObject*>(graph.m_vm)) {
     546            if (JSObject* knownBase = node->child2()->dynamicCastConstant<JSObject*>(graph.m_vm)) {
    547547                if (graph.isSafeToLoad(knownBase, offset))
    548548                    return true;
     
    550550        }
    551551       
    552         StructureAbstractValue& value = state.forNode(node->child1()).m_structure;
     552        StructureAbstractValue& value = state.forNode(node->child2()).m_structure;
    553553        if (value.isInfinite())
    554554            return false;
Note: See TracChangeset for help on using the changeset viewer.