Changeset 164057 in webkit


Ignore:
Timestamp:
Feb 13, 2014, 2:34:18 PM (12 years ago)
Author:
fpizlo@apple.com
Message:

FTL should be OK with compact_unwind in a data section
https://bugs.webkit.org/show_bug.cgi?id=128756

Reviewed by Mark Hahnenberg.

  • ftl/FTLCompile.cpp:

(JSC::FTL::mmAllocateCodeSection):
(JSC::FTL::mmAllocateDataSection):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r164039 r164057  
     12014-02-13  Filip Pizlo  <fpizlo@apple.com>
     2
     3        FTL should be OK with __compact_unwind in a data section
     4        https://bugs.webkit.org/show_bug.cgi?id=128756
     5
     6        Reviewed by Mark Hahnenberg.
     7
     8        * ftl/FTLCompile.cpp:
     9        (JSC::FTL::mmAllocateCodeSection):
     10        (JSC::FTL::mmAllocateDataSection):
     11
    1122014-02-13  Michael Saboff  <msaboff@apple.com>
    213
  • trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp

    r163929 r164057  
    6060            state.graph.m_vm, size, state.graph.m_codeBlock, JITCompilationMustSucceed);
    6161   
     62    // LLVM used to put __compact_unwind in a code section. We keep this here defensively,
     63    // for clients that use older LLVMs.
    6264    if (!strcmp(sectionName, "__compact_unwind")) {
    6365        state.compactUnwind = result->start();
     
    9092        state.jitCode->addDataSection(section);
    9193        state.dataSectionNames.append(sectionName);
     94        if (!strcmp(sectionName, "__compact_unwind")) {
     95            state.compactUnwind = section.data();
     96            state.compactUnwindSize = size;
     97        }
    9298    }
    9399   
Note: See TracChangeset for help on using the changeset viewer.