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

Changeset 245443 in webkit


Ignore:
Timestamp:
May 17, 2019, 3:14:58 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r244314 - 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):

Location:
releases/WebKitGTK/webkit-2.24
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/JSTests/ChangeLog

    r245436 r245443  
     12019-04-15  Saam barati  <sbarati@apple.com>
     2
     3        SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     4        https://bugs.webkit.org/show_bug.cgi?id=196945
     5        <rdar://problem/49802750>
     6
     7        Reviewed by Filip Pizlo.
     8
     9        * stress/get-by-offset-should-use-correct-child.js: Added.
     10        (foo.bar):
     11        (foo):
     12
    1132019-03-12  Michael Saboff  <msaboff@apple.com>
    214
  • releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/ChangeLog

    r245440 r245443  
     12019-04-15  Saam barati  <sbarati@apple.com>
     2
     3        SafeToExecute for GetByOffset/GetGetterByOffset/PutByOffset is using the wrong child for the base
     4        https://bugs.webkit.org/show_bug.cgi?id=196945
     5        <rdar://problem/49802750>
     6
     7        Reviewed by Filip Pizlo.
     8
     9        * dfg/DFGSafeToExecute.h:
     10        (JSC::DFG::safeToExecute):
     11
    1122019-04-03  Myles C. Maxfield  <mmaxfield@apple.com>
    213
  • releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/dfg/DFGSafeToExecute.h

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