WebKit is a cross-platform web browser engine. On iOS and macOS, it powers Safari, Mail, iBooks, and many other applications.
sudo apt install libicu-dev python ruby bison flex cmake build-essential ninja-build git gperf
sudo apt-get install python3-gi-cairo
git clone https://github.com/JavaScriptBench/WebKit.git
cd WebKit
git checkout safari-612.1.26-branch
#cmake -DPORT=WPE -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
rm CMakeCache.txt
#Tools/Scripts/build-webkit --jsc-only
Tools/Scripts/build-webkit --jsc-only --cmakeargs="-DENABLE_STATIC_JSC=ON -DUSE_THIN_ARCHIVES=OFF"
./WebKitBuild/Release/bin/jsc test.js
./WebKitBuild/Release/bin/jsc --useJIT=false test.js
Ref:
https://constellation.slowstart.org/blog/2016/05/02/how-to-build-javascriptcore-on-your-machine/