Ignore:
Timestamp:
Nov 8, 2019, 4:11:28 PM (6 years ago)
Author:
Matt Lewis
Message:

Unreviewed, rolling out r252229.

This caused internal failures.

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/252229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp

    r252229 r252273  
    478478static void updateArithProfileForUnaryArithOp(OpNegate::Metadata& metadata, JSValue result, JSValue operand)
    479479{
    480     UnaryArithProfile& profile = metadata.m_arithProfile;
    481     profile.observeArg(operand);
     480    ArithProfile& profile = metadata.m_arithProfile;
     481    profile.observeLHS(operand);
    482482    ASSERT(result.isNumber() || result.isBigInt());
    483483    if (result.isNumber()) {
     
    536536static void updateArithProfileForBinaryArithOp(JSGlobalObject*, CodeBlock* codeBlock, const Instruction* pc, JSValue result, JSValue left, JSValue right)
    537537{
    538     BinaryArithProfile& profile = *codeBlock->binaryArithProfileForPC(pc);
     538    ArithProfile& profile = *codeBlock->arithProfileForPC(pc);
    539539
    540540    if (result.isNumber()) {
     
    597597    JSValue v2 = GET_C(bytecode.m_rhs).jsValue();
    598598
    599     BinaryArithProfile& arithProfile = *codeBlock->binaryArithProfileForPC(pc);
     599    ArithProfile& arithProfile = *codeBlock->arithProfileForPC(pc);
    600600    arithProfile.observeLHSAndRHS(v1, v2);
    601601
Note: See TracChangeset for help on using the changeset viewer.