Changeset 61588 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jun 21, 2010, 4:17:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.cpp
r61430 r61588 1520 1520 } 1521 1521 1522 voidCodeBlock::reparseForExceptionInfoIfNecessary(CallFrame* callFrame)1522 bool CodeBlock::reparseForExceptionInfoIfNecessary(CallFrame* callFrame) 1523 1523 { 1524 1524 if (m_exceptionInfo) 1525 return ;1525 return true; 1526 1526 1527 1527 ASSERT(!m_rareData || !m_rareData->m_exceptionHandlers.size()); … … 1540 1540 1541 1541 m_exceptionInfo.set(m_ownerExecutable->reparseExceptionInfo(m_globalData, scopeChain, this)); 1542 return m_exceptionInfo; 1542 1543 } 1543 1544 … … 1564 1565 ASSERT(bytecodeOffset < m_instructionCount); 1565 1566 1566 reparseForExceptionInfoIfNecessary(callFrame); 1567 ASSERT(m_exceptionInfo); 1568 1569 if (!m_exceptionInfo->m_lineInfo.size()) 1570 return m_ownerExecutable->source().firstLine(); // Empty function 1567 if (!reparseForExceptionInfoIfNecessary(callFrame) || !m_exceptionInfo->m_lineInfo.size()) 1568 return m_ownerExecutable->source().firstLine(); // Empty function or unable to reparse 1571 1569 1572 1570 int low = 0; … … 1589 1587 ASSERT(bytecodeOffset < m_instructionCount); 1590 1588 1591 reparseForExceptionInfoIfNecessary(callFrame); 1592 ASSERT(m_exceptionInfo); 1593 1594 if (!m_exceptionInfo->m_expressionInfo.size()) { 1589 if (!reparseForExceptionInfoIfNecessary(callFrame) || !m_exceptionInfo->m_expressionInfo.size()) { 1595 1590 // We didn't think anything could throw. Apparently we were wrong. 1591 // Alternatively something went wrong when trying to reparse 1596 1592 startOffset = 0; 1597 1593 endOffset = 0; … … 1628 1624 ASSERT(bytecodeOffset < m_instructionCount); 1629 1625 1630 reparseForExceptionInfoIfNecessary(callFrame); 1631 ASSERT(m_exceptionInfo); 1632 1633 if (!m_exceptionInfo->m_getByIdExceptionInfo.size()) 1626 if (!reparseForExceptionInfoIfNecessary(callFrame) || !m_exceptionInfo->m_getByIdExceptionInfo.size()) 1634 1627 return false; 1635 1628
Note:
See TracChangeset
for help on using the changeset viewer.