mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Escargot is a lightweight JavaScript engine designed specifically for resource-constrained environments.
- C++ 91.5%
- Python 4.1%
- JavaScript 2%
- Java 1.7%
- CMake 0.5%
- Other 0.2%
* Implement lazy string literal parsing * Fix bug in Vector Signed-off-by: seonghyun kim <sh8281.kim@samsung.com> |
||
|---|---|---|
| build | ||
| docs | ||
| include | ||
| packaging | ||
| src | ||
| test | ||
| third_party | ||
| tools | ||
| .babelrc | ||
| .clang-format | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| build_android.sh | ||
| build_third_party.sh | ||
| build_third_party_android.sh | ||
| build_third_party_android_nothread.sh | ||
| CMakeLists.txt | ||
| excludelist.orig.xml | ||
| LICENSE.Apache-2.0 | ||
| LICENSE.BSD-2-Clause | ||
| LICENSE.BSD-3-Clause | ||
| LICENSE.LGPL-2.1+ | ||
| LICENSE.MIT | ||
| LICENSE.MPL-2.0 | ||
| Makefile | ||
| MakefileClang | ||
| package.json | ||
| README.md | ||
Escargot
Prerequisites
apt-get install autoconf automake libtool libc++-dev libicu-dev gcc-multilib g++-multilib
Build Escargot
git clone git@github.sec.samsung.net:lws/escargot.git
cd escargot
git submodule update --init third_party
cmake CMakeLists.txt -DESCARGOT_HOST=linux -DESCARGOT_ARCH=x64 -DESCARGOT_MODE=release -DESCARGOT_OUTPUT=bin
make -j
Build options
The following build options are supported when generating Makefile using cmake.
- -DESCARGOT_HOST=[ linux | tizen_obs ]
Compile Escargot for either Linux or Tizen platform - -DESCARGOT_ARCH=[ x64 | x86 | arm | i686 | aarch64 ]
Compile Escargot for each architecture - -DESCARGOT_MODE=[ debug | release ]
Compile Escargot for either release or debug mode - -DESCARGOT_OUTPUT=[ bin | shared_lib | static_lib ]
Define target output type
Testing
First, get benchmarks and tests
git submodule update --init
Benchmarks
make run-sunspider-js # Sunspider
make run-octane # Octane
make run-v8-x64 # V8 for x64
make run-chakracore-x64 # Chakracore for x64
make run-test262 # test262