Bug 138298

Summary: [GTK] FTL JIT is not working (does not build and does not run)
Product: WebKit Reporter: Akos Kiss <akiss>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, commit-queue, gyuyoung.kim, llango.u-szeged, pnormand, rakuco, ryuan.choi, sergio
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch. none

Description Akos Kiss 2014-11-02 17:59:56 PST
When trying to enable FTL JIT for GTK (by building with: Tools/Scripts/update-webkitgtk-libs && Tools/Scripts/update-webkitgtk-libs llvm && Tools/Scripts/build-jsc --gtk --ftl-jit), there are several failures.

First, when building, CMake complains about LIBCXXABI:

CMake Error at Source/cmake/OptionsGTK.cmake:317 (find_package):
  By not providing "FindLIBCXXABI.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "LIBCXXABI", but CMake did not find one.

If we overcome that, then LLVM bails out with some runtime errors, e.g.:
  
sunspider-1.0/string-validate-input.js.ftl-eager: jsc: RuntimeDyldELF.cpp:283: void llvm::RuntimeDyldELF::resolveX86_64Relocation(const llvm::SectionEntry &, uint64_t, uint64_t, uint32_t, int64_t, uint64_t): Assertion `RealOffset <= (2147483647) && RealOffset >= (-2147483647-1)' failed.
sunspider-1.0/string-validate-input.js.ftl-eager: Aborted (core dumped)
sunspider-1.0/string-validate-input.js.ftl-eager: ERROR: Unexpected exit code: 134
Comment 1 Akos Kiss 2014-11-02 18:05:05 PST
Created attachment 240825 [details]
Proposed patch.

No regressions with run-javascriptcore-tests on x86_64/Linux/GTK.
Comment 2 Carlos Garcia Campos 2014-11-02 23:15:43 PST
Comment on attachment 240825 [details]
Proposed patch.

Thanks!
Comment 3 WebKit Commit Bot 2014-11-02 23:53:12 PST
Comment on attachment 240825 [details]
Proposed patch.

Clearing flags on attachment: 240825

Committed r175465: <http://trac.webkit.org/changeset/175465>
Comment 4 WebKit Commit Bot 2014-11-02 23:53:17 PST
All reviewed patches have been landed.  Closing bug.