<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>132139</bug_id>
          
          <creation_ts>2014-04-24 12:43:30 -0700</creation_ts>
          <short_desc>Gtk build of FTL JIT on linux</short_desc>
          <delta_ts>2015-11-23 04:36:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vahag">vaag</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>ossy</cc>
    
    <cc>sanxiyn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1003737</commentid>
    <comment_count>0</comment_count>
    <who name="Vahag">vaag</who>
    <bug_when>2014-04-24 12:43:30 -0700</bug_when>
    <thetext>Hi, I&apos;ve been trying to enable FTL JIT for gtk build on Linux. 
I&apos;ve managed to build JSC with FTL JIT enabled, however jsc fails run time at phase FTLCompile during the call of &quot;llvm-&gt;GetPointerToGlobal&quot; function.
Assertion fail happens in LLVM.
File: ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
Assertion: assert(RealOffset &lt;= INT32_MAX &amp;&amp; RealOffset &gt;= INT32_MIN)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007107</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-05-06 15:28:19 -0700</bug_when>
    <thetext>Check the bug https://bugs.webkit.org/show_bug.cgi?id=120270 for more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044448</commentid>
    <comment_count>2</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-10-28 05:25:54 -0700</bug_when>
    <thetext>FYI, look at https://bugs.webkit.org/show_bug.cgi?id=133571 which points to https://github.com/pille5/llvm/commits/FTL_fixes_for_EFL for LLVM changes.

Vahag, &quot;FDECFIEncoding = dwarf::DW_EH_PE_pcrel&quot; bit in the patch will fix your assert problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044734</commentid>
    <comment_count>3</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-10-29 03:27:05 -0700</bug_when>
    <thetext>There are two LLVM changes at https://github.com/pille5/llvm/commits/FTL_fixes_for_EFL

I found that the change related to stack map is upstream: http://llvm.org/viewvc/llvm-project?view=revision&amp;revision=214538

The change related to exception frame encoding is not. I am not sure what is the best way to fix the problem, so I commented at http://llvm.org/bugs/show_bug.cgi?id=15356</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1046078</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-11-04 08:18:57 -0800</bug_when>
    <thetext>I think this has been fixed on https://bugs.webkit.org/show_bug.cgi?id=138298</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053111</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-12-07 03:43:21 -0800</bug_when>
    <thetext>Patches in pille5 github repository already landed in LLVM, but not in latest
release. https://trac.webkit.org/changeset/176546 switched jhbuild LLVM module
to use 3.5 release and apply the 2 necessary patch.

If you build llvm with jhbuild (Tools/Scripts/update-webkitgtk-libs llvm),
and then build-webkit --ftl-jit, FTL-JIT works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144164</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-11-23 04:36:24 -0800</bug_when>
    <thetext>FTL JIT is built by default on GTK since https://trac.webkit.org/changeset/192469</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>