Ignore:
Timestamp:
Aug 17, 2011, 1:54:32 PM (14 years ago)
Author:
[email protected]
Message:

JSC verbose debugging output sometimes doesn't work as expected.
https://bugs.webkit.org/show_bug.cgi?id=66107

Reviewed by Gavin Barraclough.

Hardened the CodeBlock::dump() code so that it no longer crashes. Improved
the DFG verbose code so that it prints slightly more useful information.

  • assembler/LinkBuffer.h:

(JSC::LinkBuffer::debugSize):

  • bytecode/CodeBlock.cpp:

(JSC::valueToSourceString):
(JSC::CodeBlock::dump):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::numberOfRegExps):

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::link):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.h

    r91706 r93238  
    472472            return size;
    473473        }
     474        unsigned numberOfRegExps() const
     475        {
     476            if (!m_rareData)
     477                return 0;
     478            return m_rareData->m_regexps.size();
     479        }
    474480        RegExp* regexp(int index) const { ASSERT(m_rareData); return m_rareData->m_regexps[index].get(); }
    475481
Note: See TracChangeset for help on using the changeset viewer.