Ignore:
Timestamp:
Jun 21, 2012, 6:33:30 PM (13 years ago)
Author:
[email protected]
Message:

op_resolve_global should not prevent DFG inlining
https://bugs.webkit.org/show_bug.cgi?id=89726

Reviewed by Gavin Barraclough.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::CodeBlock):
(JSC::CodeBlock::shrinkToFit):

  • bytecode/GlobalResolveInfo.h:

(JSC::GlobalResolveInfo::GlobalResolveInfo):
(GlobalResolveInfo):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):

  • dfg/DFGCapabilities.h:

(JSC::DFG::canInlineOpcode):

  • dfg/DFGOperations.cpp:
  • dfg/DFGOperations.h:
  • dfg/DFGSpeculativeJIT.h:

(JSC::DFG::SpeculativeJIT::callOperation):

  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

File:
1 edited

Legend:

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

    r120897 r120989  
    15841584    , m_sourceOffset(other.m_sourceOffset)
    15851585#if ENABLE(JIT)
    1586     , m_globalResolveInfos(other.m_globalResolveInfos)
     1586    , m_globalResolveInfos(other.m_globalResolveInfos.size())
    15871587#endif
    15881588#if ENABLE(VALUE_PROFILER)
     
    16091609    optimizeAfterWarmUp();
    16101610    jitAfterWarmUp();
     1611
     1612#if ENABLE(JIT)
     1613    for (unsigned i = m_globalResolveInfos.size(); i--;)
     1614        m_globalResolveInfos[i] = GlobalResolveInfo(other.m_globalResolveInfos[i].bytecodeOffset);
     1615#endif
    16111616
    16121617    if (other.m_rareData) {
     
    22742279#if ENABLE(JIT)
    22752280    m_structureStubInfos.shrinkToFit();
    2276     m_globalResolveInfos.shrinkToFit();
     2281    if (shrinkMode == EarlyShrink)
     2282        m_globalResolveInfos.shrinkToFit();
    22772283    m_callLinkInfos.shrinkToFit();
    22782284    m_methodCallLinkInfos.shrinkToFit();
Note: See TracChangeset for help on using the changeset viewer.