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

Changeset 284810 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 12:10:06 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r284623. rdar://problem/84375007

Add missing overflow check to DFGIntegerRangeOptimizationPhase::filterConstant()
https://bugs.webkit.org/show_bug.cgi?id=232058

Reviewed by Robin Morisset.

Added overflow check.

  • dfg/DFGIntegerRangeOptimizationPhase.cpp:

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

Location:
branches/safari-612-branch/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612-branch/Source/JavaScriptCore/ChangeLog

    r284809 r284810  
     12021-10-25  Null  <null@apple.com>
     2
     3        Cherry-pick r284623. rdar://problem/84375007
     4
     5    Add missing overflow check to DFGIntegerRangeOptimizationPhase::filterConstant()
     6    https://bugs.webkit.org/show_bug.cgi?id=232058
     7   
     8    Reviewed by Robin Morisset.
     9   
     10    Added overflow check.
     11   
     12    * dfg/DFGIntegerRangeOptimizationPhase.cpp:
     13   
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2021-10-21  Michael Saboff  <msaboff@apple.com>
     18
     19            Add missing overflow check to DFGIntegerRangeOptimizationPhase::filterConstant()
     20            https://bugs.webkit.org/show_bug.cgi?id=232058
     21
     22            Reviewed by Robin Morisset.
     23
     24            Added overflow check.
     25
     26            * dfg/DFGIntegerRangeOptimizationPhase.cpp:
     27
    1282021-10-25  Null  <null@apple.com>
    229
  • branches/safari-612-branch/Source/JavaScriptCore/dfg/DFGIntegerRangeOptimizationPhase.cpp

    r284809 r284810  
    569569        switch (other.m_kind) {
    570570        case Equal:
     571            if (differenceOverflows<int>(otherEffectiveRight, thisRight))
     572                return *this;
     573
    571574            // Return a version of *this that is Equal to other's constant.
    572575            return Relationship(m_left, m_right, Equal, otherEffectiveRight - thisRight);
Note: See TracChangeset for help on using the changeset viewer.