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


Ignore:
Timestamp:
Nov 7, 2008, 12:41:47 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Geoff Garen.

Bug 22129: Move CTI::isConstant() to CodeBlock
<https://bugs.webkit.org/show_bug.cgi?id=22129>

  • 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::isConstant):
File:
1 edited

Legend:

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

    r38205 r38229  
    290290        }
    291291
     292        ALWAYS_INLINE bool isConstant(int index)
     293        {
     294            return index >= numVars && index < numVars + numConstants;
     295        }
     296
    292297#if !defined(NDEBUG) || ENABLE_OPCODE_SAMPLING
    293298        void dump(ExecState*) const;
Note: See TracChangeset for help on using the changeset viewer.