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/runtime/CommonSlowPaths.cpp

    r251090 r251106  
    488488static void updateArithProfileForUnaryArithOp(OpNegate::Metadata& metadata, JSValue result, JSValue operand)
    489489{
    490     UnaryArithProfile& profile = metadata.m_arithProfile;
    491     profile.observeArg(operand);
     490    ArithProfile& profile = metadata.m_arithProfile;
     491    profile.observeLHS(operand);
    492492    ASSERT(result.isNumber() || result.isBigInt());
    493493    if (result.isNumber()) {
     
    547547{
    548548    CodeBlock* codeBlock = exec->codeBlock();
    549     BinaryArithProfile& profile = *codeBlock->binaryArithProfileForPC(pc);
     549    ArithProfile& profile = *codeBlock->arithProfileForPC(pc);
    550550
    551551    if (result.isNumber()) {
     
    608608    JSValue v2 = GET_C(bytecode.m_rhs).jsValue();
    609609
    610     BinaryArithProfile& arithProfile = *exec->codeBlock()->binaryArithProfileForPC(pc);
     610    ArithProfile& arithProfile = *exec->codeBlock()->arithProfileForPC(pc);
    611611    arithProfile.observeLHSAndRHS(v1, v2);
    612612
Note: See TracChangeset for help on using the changeset viewer.