Changeset 48938 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 30, 2009, 11:26:28 AM (16 years ago)
Author:
[email protected]
Message:

Buildfix for platforms using JSVALUE32.
https://bugs.webkit.org/show_bug.cgi?id=29915

Patch by Csaba Osztrogonac <[email protected]> on 2009-09-30
Reviewed by Geoffrey Garen.

After http://trac.webkit.org/changeset/48905 the build broke in JSVALUE32 case.
Also removed unreachable code.

  • jit/JITArithmetic.cpp:

(JSC::JIT::emit_op_add):

  • Declaration of "OperandTypes types" moved before first use.
  • Typos fixed: dst modified to result, regT2 added.
  • Unreachable code removed.

(JSC::JIT::emitSlow_op_add):

  • Missing declaration of "OperandTypes types" added.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r48928 r48938  
     12009-09-30  Csaba Osztrogonac  <[email protected]>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Buildfix for platforms using JSVALUE32.
     6        https://bugs.webkit.org/show_bug.cgi?id=29915
     7
     8        After http://trac.webkit.org/changeset/48905 the build broke in JSVALUE32 case.
     9        Also removed unreachable code.
     10
     11        * jit/JITArithmetic.cpp:
     12        (JSC::JIT::emit_op_add):
     13         - Declaration of "OperandTypes types" moved before first use.
     14         - Typos fixed: dst modified to result, regT2 added.
     15         - Unreachable code removed.
     16        (JSC::JIT::emitSlow_op_add):
     17         - Missing declaration of "OperandTypes types" added.
     18
    1192009-09-30  Janne Koskinen  <[email protected]>
    220
  • trunk/JavaScriptCore/jit/JITArithmetic.cpp

    r48920 r48938  
    24132413    unsigned op1 = currentInstruction[2].u.operand;
    24142414    unsigned op2 = currentInstruction[3].u.operand;
     2415    OperandTypes types = OperandTypes::fromInt(currentInstruction[4].u.operand);
    24152416
    24162417    if (!types.first().mightBeNumber() || !types.second().mightBeNumber()) {
    24172418        JITStubCall stubCall(this, cti_op_add);
    2418         stubCall.addArgument(op1);
    2419         stubCall.addArgument(op2);
    2420         stubCall.call(dst);
     2419        stubCall.addArgument(op1, regT2);
     2420        stubCall.addArgument(op2, regT2);
     2421        stubCall.call(result);
    24212422        return;
    24222423    }
     
    24352436        emitPutVirtualRegister(result);
    24362437    } else {
    2437         OperandTypes types = OperandTypes::fromInt(currentInstruction[4].u.operand);
    2438         if (types.first().mightBeNumber() && types.second().mightBeNumber())
    2439             compileBinaryArithOp(op_add, result, op1, op2, OperandTypes::fromInt(currentInstruction[4].u.operand));
    2440         else {
    2441             JITStubCall stubCall(this, cti_op_add);
    2442             stubCall.addArgument(op1, regT2);
    2443             stubCall.addArgument(op2, regT2);
    2444             stubCall.call(result);
    2445         }
     2438        compileBinaryArithOp(op_add, result, op1, op2, OperandTypes::fromInt(currentInstruction[4].u.operand));
    24462439    }
    24472440}
     
    24532446    unsigned op2 = currentInstruction[3].u.operand;
    24542447
     2448    OperandTypes types = OperandTypes::fromInt(currentInstruction[4].u.operand);
    24552449    if (!types.first().mightBeNumber() || !types.second().mightBeNumber())
    24562450        return;
Note: See TracChangeset for help on using the changeset viewer.