Changeset 38290 in webkit for trunk/JavaScriptCore/VM/CTI.cpp


Ignore:
Timestamp:
Nov 10, 2008, 9:45:14 PM (17 years ago)
Author:
[email protected]
Message:

2008-11-10 Cameron Zwarich <[email protected]>

Reviewed by Sam Weinig.

Rename CodeBlock::isConstant() to isConstantRegisterIndex().

  • VM/CTI.cpp: (JSC::CTI::emitGetArg): (JSC::CTI::emitGetPutArg): (JSC::CTI::getConstantImmediateNumericArg): (JSC::CTI::printOpcodeOperandTypes): (JSC::CTI::privateCompileMainPass):
  • VM/CodeBlock.h: (JSC::CodeBlock::isConstantRegisterIndex):
  • bytecompiler/CodeGenerator.cpp: (JSC::CodeGenerator::emitEqualityOp):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CTI.cpp

    r38286 r38290  
    183183{
    184184    // TODO: we want to reuse values that are already in registers if we can - add a register allocator!
    185     if (m_codeBlock->isConstant(src)) {
     185    if (m_codeBlock->isConstantRegisterIndex(src)) {
    186186        JSValue* js = getConstant(src);
    187187        m_jit.movl_i32r(asInteger(js), dst);
     
    193193ALWAYS_INLINE void CTI::emitGetPutArg(unsigned src, unsigned offset, X86Assembler::RegisterID scratch)
    194194{
    195     if (m_codeBlock->isConstant(src)) {
     195    if (m_codeBlock->isConstantRegisterIndex(src)) {
    196196        JSValue* js = getConstant(src);
    197197        m_jit.movl_i32m(asInteger(js), offset + sizeof(void*), X86::esp);
     
    215215ALWAYS_INLINE JSValue* CTI::getConstantImmediateNumericArg(unsigned src)
    216216{
    217     if (m_codeBlock->isConstant(src)) {
     217    if (m_codeBlock->isConstantRegisterIndex(src)) {
    218218        JSValue* js = getConstant(src);
    219219        return JSImmediate::isNumber(js) ? js : noValue();
     
    274274{
    275275    char which1 = '*';
    276     if (m_codeBlock->isConstant(src1)) {
     276    if (m_codeBlock->isConstantRegisterIndex(src1)) {
    277277        JSValue* js = getConstant(src1);
    278278        which1 =
     
    288288    }
    289289    char which2 = '*';
    290     if (m_codeBlock->isConstant(src2)) {
     290    if (m_codeBlock->isConstantRegisterIndex(src2)) {
    291291        JSValue* js = getConstant(src2);
    292292        which2 =
     
    10051005        case op_mov: {
    10061006            unsigned src = instruction[i + 2].u.operand;
    1007             if (m_codeBlock->isConstant(src))
     1007            if (m_codeBlock->isConstantRegisterIndex(src))
    10081008                m_jit.movl_i32r(asInteger(getConstant(src)), X86::eax);
    10091009            else
Note: See TracChangeset for help on using the changeset viewer.