Changeset 43441 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 9, 2009, 3:05:34 PM (16 years ago)
Author:
[email protected]
Message:

2009-05-09 Geoffrey Garen <[email protected]>

Reviewed by Cameron Zwarich.


Removed the last non-call-related manually managed JIT stub call.

  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArithSlow_op_rshift): Fully use the JITStubCall abstraction, instead of emitPutJITStubArg.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r43440 r43441  
     12009-05-09  Geoffrey Garen  <[email protected]>
     2
     3        Reviewed by Cameron Zwarich.
     4       
     5        Removed the last non-call-related manually managed JIT stub call.
     6
     7        * jit/JITArithmetic.cpp:
     8        (JSC::JIT::compileFastArithSlow_op_rshift): Fully use the JITStubCall
     9        abstraction, instead of emitPutJITStubArg.
     10
    1112009-05-09  Sebastian Andrzej Siewior  <[email protected]>
    212
  • trunk/JavaScriptCore/jit/JITArithmetic.cpp

    r43439 r43441  
    189189    emitPutVirtualRegister(result);
    190190}
     191
    191192void JIT::compileFastArithSlow_op_rshift(unsigned result, unsigned op1, unsigned op2, Vector<SlowCaseEntry>::iterator& iter)
    192193{
    193194    linkSlowCase(iter);
    194     if (isOperandConstantImmediateInt(op2))
    195         emitPutJITStubArgFromVirtualRegister(op2, 2, regT2);
    196     else {
     195    JITStubCall stubCall(this, JITStubs::cti_op_rshift);
     196
     197    if (isOperandConstantImmediateInt(op2)) {
     198        stubCall.addArgument(regT0);
     199        stubCall.addArgument(op2, regT2);
     200    } else {
    197201        if (isSSE2Present()) {
    198202#if USE(ALTERNATE_JSIMMEDIATE)
     
    207211            // we have not munged the operand.  It may have already been shifted
    208212            // correctly, but it still will not have been tagged.
    209             emitGetVirtualRegister(op1, regT0);
     213            stubCall.addArgument(op1, regT0);
     214            stubCall.addArgument(regT2);
    210215        } else {
    211216            linkSlowCase(iter);
    212217            linkSlowCase(iter);
    213         }
    214         emitPutJITStubArg(regT2, 2);
    215     }
    216 
    217     JITStubCall stubCall(this, JITStubs::cti_op_rshift);
    218     stubCall.addArgument(regT0);
     218            stubCall.addArgument(regT0);
     219            stubCall.addArgument(regT2);
     220        }
     221    }
     222
    219223    stubCall.call(result);
    220224}
Note: See TracChangeset for help on using the changeset viewer.