Ignore:
Timestamp:
Nov 4, 2019, 3:47:07 PM (6 years ago)
Author:
Truitt Savell
Message:

Unreviewed, rolling out r252015.

Broke the Windows build

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

File:
1 edited

Legend:

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

    r252015 r252021  
    477477static void updateArithProfileForUnaryArithOp(OpNegate::Metadata& metadata, JSValue result, JSValue operand)
    478478{
    479     UnaryArithProfile& profile = metadata.m_arithProfile;
    480     profile.observeArg(operand);
     479    ArithProfile& profile = metadata.m_arithProfile;
     480    profile.observeLHS(operand);
    481481    ASSERT(result.isNumber() || result.isBigInt());
    482482    if (result.isNumber()) {
     
    535535static void updateArithProfileForBinaryArithOp(JSGlobalObject*, CodeBlock* codeBlock, const Instruction* pc, JSValue result, JSValue left, JSValue right)
    536536{
    537     BinaryArithProfile& profile = *codeBlock->binaryArithProfileForPC(pc);
     537    ArithProfile& profile = *codeBlock->arithProfileForPC(pc);
    538538
    539539    if (result.isNumber()) {
     
    596596    JSValue v2 = GET_C(bytecode.m_rhs).jsValue();
    597597
    598     BinaryArithProfile& arithProfile = *codeBlock->binaryArithProfileForPC(pc);
     598    ArithProfile& arithProfile = *codeBlock->arithProfileForPC(pc);
    599599    arithProfile.observeLHSAndRHS(v1, v2);
    600600
Note: See TracChangeset for help on using the changeset viewer.