Ignore:
Timestamp:
Dec 6, 2008, 2:31:14 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich,

Move CodeBlock constructor into the .cpp file.

Sunspider reports a .7% progression, but I can only assume this
is noise.

  • bytecode/CodeBlock.cpp: (JSC::CodeBlock::CodeBlock):
  • bytecode/CodeBlock.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.cpp

    r39071 r39072  
    955955#endif // !defined(NDEBUG) || ENABLE(OPCODE_SAMPLING)
    956956
     957CodeBlock::CodeBlock(ScopeNode* ownerNode, CodeType codeType, PassRefPtr<SourceProvider> sourceProvider, unsigned sourceOffset)
     958    : m_numCalleeRegisters(0)
     959    , m_numConstants(0)
     960    , m_numVars(0)
     961    , m_numParameters(0)
     962    , m_ownerNode(ownerNode)
     963    , m_globalData(0)
     964#if ENABLE(JIT)
     965    , m_jitCode(0)
     966#endif
     967    , m_needsFullScopeChain(ownerNode->needsActivation())
     968    , m_usesEval(ownerNode->usesEval())
     969    , m_codeType(codeType)
     970    , m_source(sourceProvider)
     971    , m_sourceOffset(sourceOffset)
     972{
     973    ASSERT(m_source);
     974}
     975
    957976CodeBlock::~CodeBlock()
    958977{
Note: See TracChangeset for help on using the changeset viewer.