Ignore:
Timestamp:
Jun 18, 2010, 1:14:23 PM (15 years ago)
Author:
[email protected]
Message:

2010-06-17 Oliver Hunt <[email protected]>

Reviewed by Sam Weinig.

Don't throw away exception information for functions that use exceptions
https://bugs.webkit.org/show_bug.cgi?id=40786

Simple patch to stop JSC from throwing away the exception information
of a function that uses "exceptiony" features like try and throw. This
is a speed up for catching expressions but it's difficult to quantify as
the old cost of reparsing is amortised over all exceptions caught in the
effected function.

  • bytecode/CodeBlock.cpp: (JSC::CodeBlock::reparseForExceptionInfoIfNecessary):
  • bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::generate): (JSC::BytecodeGenerator::emitCatch):
  • bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::emitThrow):
File:
1 edited

Legend:

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

    r60117 r61430  
    15251525        return;
    15261526
     1527    ASSERT(!m_rareData || !m_rareData->m_exceptionHandlers.size());
    15271528    ScopeChainNode* scopeChain = callFrame->scopeChain();
    15281529    if (m_needsFullScopeChain) {
Note: See TracChangeset for help on using the changeset viewer.