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%
There is no need to keep the template literal of TemplateOperation since it always set to NULL. Currently, a LoadLiteral opcode is created for the template literals. Signed-off-by: Roland Takacs <rtakacs.uszeged@partner.samsung.com> |
||
|---|---|---|
| build | ||
| docs | ||
| packaging | ||
| src | ||
| test | ||
| third_party | ||
| tools | ||
| .babelrc | ||
| .clang-format | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| .travis.yml | ||
| CMakeLists.txt | ||
| LICENSE.Apache-2.0 | ||
| LICENSE.BSD-2-Clause | ||
| LICENSE.BSD-3-Clause | ||
| LICENSE.LGPL-2.1+ | ||
| LICENSE.MIT | ||
| LICENSE.MPL-2.0 | ||
| package.json | ||
| README.md | ||
| sonar-project.properties | ||
Escargot
Prerequisites
On Ubuntu Linux
General build prerequisites:
sudo apt-get install autoconf automake libtool libicu-dev ninja-build
Prerequisites for x86-64-to-x86 compilation:
sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install libicu-dev:i386
On macOS
brew install autoconf automake cmake icu4c libtool ninja pkg-config
Note: For later build steps (cmake, pkg-config) to find ICU libraries, you may
need to set the PKG_CONFIG_PATH environment variable, as instructed by brew.
E.g.:
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
Build Escargot
git clone https://github.com/Samsung/escargot.git
cd escargot
git submodule update --init third_party
cmake -DESCARGOT_HOST=linux -DESCARGOT_ARCH=x64 -DESCARGOT_MODE=release -DESCARGOT_OUTPUT=bin -GNinja
ninja
Build options
The following build options are supported when generating ninja rules using cmake.
- -DESCARGOT_HOST=[ linux | tizen_obs | darwin ]
Compile Escargot for Linux, Tizen, or macOS 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 - -DESCARGOT_LIBICU_SUPPORT=[ ON | OFF ]
Enable libicu library if set ON. (Optional, default = ON)
Testing
First, get benchmarks and tests:
git submodule update --init
Benchmarks
Prerequisite for SpiderMonkey:
sudo apt-get install npm
npm install
Test run for each benchmark (Sunspider, Octane, V8, Chakracore, test262, SpiderMonkey, etc.):
tools/run-tests.py