Ignore:
Timestamp:
Feb 28, 2016, 5:44:26 PM (9 years ago)
Author:
[email protected]
Message:

REGRESSION(r197303): 4 jsc tests failing on bots.

Unreviewed follow-up fix.

  • bytecode/UnlinkedCodeBlock.cpp:

(JSC::UnlinkedCodeBlock::typeProfilerExpressionInfoForBytecodeOffset): This function
can still get called with !m_rareData, in case the type profiler is active but this
particular code block doesn't have type profiler data. Handle it gracefully.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp

    r197303 r197305  
    266266bool UnlinkedCodeBlock::typeProfilerExpressionInfoForBytecodeOffset(unsigned bytecodeOffset, unsigned& startDivot, unsigned& endDivot)
    267267{
    268     ASSERT(m_rareData);
    269268    static const bool verbose = false;
     269    if (!m_rareData) {
     270        if (verbose)
     271            dataLogF("Don't have assignment info for offset:%u\n", bytecodeOffset);
     272        startDivot = UINT_MAX;
     273        endDivot = UINT_MAX;
     274        return false;
     275    }
     276
    270277    auto iter = m_rareData->m_typeProfilerInfoMap.find(bytecodeOffset);
    271278    if (iter == m_rareData->m_typeProfilerInfoMap.end()) {
Note: See TracChangeset for help on using the changeset viewer.