⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 293316 in webkit


Ignore:
Timestamp:
Apr 24, 2022, 11:54:42 PM (4 years ago)
Author:
zan@falconsigh.net
Message:

[RISCV64] Enable Baseline JIT
https://bugs.webkit.org/show_bug.cgi?id=239708

Reviewed by Yusuke Suzuki.

.:

Turn on the CMake defaults for ENABLE(JIT) and ENABLE(FTL_JIT) options
for RISCV64. These are enabled together to avoid having to worry about
a 64-bit platform that would want to allow compiling with Baseline JIT
enabled and FTL JIT disabled at the same time. But because FTL JIT
support for RISCV64 isn't complete yet, it's still disabled at runtime.

  • Source/cmake/WebKitFeatures.cmake:

Source/JavaScriptCore:

  • runtime/Options.cpp:

(JSC::Options::recomputeDependentOptions):
Disable FTL JIT at runtime under CPU(RISCV64) since the support is still
incomplete. This is necessary due to Baseline JIT and FTL JIT still
being enabled at build-time on this platform for pure convenience.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r293253 r293316  
     12022-04-24  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [RISCV64] Enable Baseline JIT
     4        https://bugs.webkit.org/show_bug.cgi?id=239708
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Turn on the CMake defaults for ENABLE(JIT) and ENABLE(FTL_JIT) options
     9        for RISCV64. These are enabled together to avoid having to worry about
     10        a 64-bit platform that would want to allow compiling with Baseline JIT
     11        enabled and FTL JIT disabled at the same time. But because FTL JIT
     12        support for RISCV64 isn't complete yet, it's still disabled at runtime.
     13
     14        * Source/cmake/WebKitFeatures.cmake:
     15
    1162022-04-22  Alex Christensen  <achristensen@webkit.org>
    217
  • trunk/Source/JavaScriptCore/ChangeLog

    r293315 r293316  
     12022-04-24  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [RISCV64] Enable Baseline JIT
     4        https://bugs.webkit.org/show_bug.cgi?id=239708
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * runtime/Options.cpp:
     9        (JSC::Options::recomputeDependentOptions):
     10        Disable FTL JIT at runtime under CPU(RISCV64) since the support is still
     11        incomplete. This is necessary due to Baseline JIT and FTL JIT still
     12        being enabled at build-time on this platform for pure convenience.
     13
    1142022-04-24  Diego Pino Garcia  <dpino@igalia.com>
    215
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r292487 r293316  
    427427#endif
    428428#if !ENABLE(FTL_JIT)
     429    Options::useFTLJIT() = false;
     430#endif
     431
     432#if CPU(RISCV64)
     433    // On RISCV64, JIT levels are enabled at build-time to simplify building JSC, avoiding
     434    // otherwise rare combinations of build-time configuration. FTL on RISCV64 is disabled
     435    // at runtime for now, until it gets int a proper working state.
     436    // https://webkit.org/b/239707
    429437    Options::useFTLJIT() = false;
    430438#endif
  • trunk/Source/cmake/WebKitFeatures.cmake

    r292870 r293316  
    8282        set(ENABLE_SAMPLING_PROFILER_DEFAULT OFF)
    8383    elseif (WTF_CPU_RISCV64)
    84         set(ENABLE_JIT_DEFAULT OFF)
    85         set(ENABLE_FTL_DEFAULT OFF)
     84        set(ENABLE_JIT_DEFAULT ON)
     85        set(ENABLE_FTL_DEFAULT ON)
    8686        set(USE_SYSTEM_MALLOC_DEFAULT OFF)
    8787        set(ENABLE_C_LOOP_DEFAULT OFF)
Note: See TracChangeset for help on using the changeset viewer.