Ignore:
Timestamp:
Jul 25, 2011, 2:33:43 PM (14 years ago)
Author:
[email protected]
Message:

Assertion called in ExecutableBase::generatedJITCodeForCall() when JIT is not available
https://bugs.webkit.org/show_bug.cgi?id=65132
<rdar://problem/9836297>

Reviewed by Oliver Hunt.

Make sure the JIT is available to use before running the following calls:

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::unlinkCalls): Added check, return early if JIT is not available.

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::addMethodCallLinkInfos): Added assertion.

File:
1 edited

Legend:

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

    r90875 r91706  
    379379        CallLinkInfo& callLinkInfo(int index) { return m_callLinkInfos[index]; }
    380380
    381         void addMethodCallLinkInfos(unsigned n) { m_methodCallLinkInfos.grow(n); }
     381        void addMethodCallLinkInfos(unsigned n) { ASSERT(m_globalData->canUseJIT()); m_methodCallLinkInfos.grow(n); }
    382382        MethodCallLinkInfo& methodCallLinkInfo(int index) { return m_methodCallLinkInfos[index]; }
    383383#endif
Note: See TracChangeset for help on using the changeset viewer.