Changeset 38291 in webkit for trunk/JavaScriptCore/VM/CodeBlock.h


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

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

Reviewed by Maciej Stachowiak.

Make CTI::getConstant() a member function of CodeBlock instead.

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

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeBlock.h

    r38290 r38291  
    296296        }
    297297
     298        ALWAYS_INLINE JSValue* getConstant(int index)
     299        {
     300            return constantRegisters[index - numVars].getJSValue();
     301        }
     302
    298303#if !defined(NDEBUG) || ENABLE_OPCODE_SAMPLING
    299304        void dump(ExecState*) const;
Note: See TracChangeset for help on using the changeset viewer.