Ignore:
Timestamp:
Oct 14, 2019, 3:52:11 PM (6 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r251090.
https://bugs.webkit.org/show_bug.cgi?id=202959

"broke tests" (Requested by RMorisset on #webkit).

Reverted changeset:

"Split ArithProfile into a Unary and a Binary version"
https://bugs.webkit.org/show_bug.cgi?id=202832
https://trac.webkit.org/changeset/251090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/MethodOfGettingAValueProfile.h

    r251090 r251106  
    3636namespace JSC {
    3737
    38 class UnaryArithProfile;
    39 class BinaryArithProfile;
    4038class CCallHelpers;
    4139class CodeBlock;
    4240class LazyOperandValueProfileKey;
     41struct ArithProfile;
    4342struct ValueProfile;
    4443
     
    5857            m_kind = None;
    5958    }
    60 
    61     MethodOfGettingAValueProfile(UnaryArithProfile* profile)
     59   
     60    MethodOfGettingAValueProfile(ArithProfile* profile)
    6261    {
    6362        if (profile) {
    64             m_kind = UnaryArithProfileReady;
    65             u.unaryArithProfile = profile;
    66         } else
    67             m_kind = None;
    68     }
    69 
    70     MethodOfGettingAValueProfile(BinaryArithProfile* profile)
    71     {
    72         if (profile) {
    73             m_kind = BinaryArithProfileReady;
    74             u.binaryArithProfile = profile;
     63            m_kind = ArithProfileReady;
     64            u.arithProfile = profile;
    7565        } else
    7666            m_kind = None;
     
    8979        None,
    9080        Ready,
    91         UnaryArithProfileReady,
    92         BinaryArithProfileReady,
     81        ArithProfileReady,
    9382        LazyOperand
    9483    };
     
    9786    union {
    9887        ValueProfile* profile;
    99         UnaryArithProfile* unaryArithProfile;
    100         BinaryArithProfile* binaryArithProfile;
     88        ArithProfile* arithProfile;
    10189        struct {
    10290            CodeBlock* codeBlock;
Note: See TracChangeset for help on using the changeset viewer.