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%
Find a file
yichoi dc2b328ffa
Resolving Static Analysis Defect of SVACE (#162)
Signed-off-by: Youngil Choi <duddlf.choi@samsung.com>
2019-03-25 15:55:22 +09:00
build Add profiler options for CMake. (#122) 2019-03-18 17:26:31 +09:00
docs Update missing builtin functions of TypedArray (#49) 2019-01-09 17:19:37 +09:00
packaging Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
src Resolving Static Analysis Defect of SVACE (#162) 2019-03-25 15:55:22 +09:00
test Update the rest of TypedArray builtin functions Part 4. (#159) 2019-03-25 15:54:30 +09:00
third_party Initialize Pando project 2018-12-13 10:55:14 +09:00
tools Add internal es2015 test for the symbol type (#127) 2019-03-06 12:41:49 +09:00
.babelrc Add ecma_6 into spidermonkey vendortest 2017-01-25 13:08:19 +09:00
.clang-format Apply clang-formatting 2016-12-08 14:53:01 +09:00
.gitignore Add regression tests (#41) 2019-01-21 10:23:07 +09:00
.gitlab-ci.yml Move tools/vendortest to js_vendor_tc (#74) 2018-05-15 09:09:57 +09:00
.gitmodules Add Travis CI configuration (#3) 2018-12-13 10:55:14 +09:00
.travis.yml Enable Proxy and Reflect with internal TC (#88) 2019-02-14 11:28:08 +09:00
build_android.sh Initialize Pando project 2018-12-13 10:55:14 +09:00
build_third_party.sh Initialize Pando project 2018-12-13 10:55:14 +09:00
build_third_party_android.sh Optimize AST tree & Script parser Scanner functions (#69) 2018-05-03 07:29:55 +09:00
build_third_party_android_nothread.sh Optimize AST tree & Script parser Scanner functions (#69) 2018-05-03 07:29:55 +09:00
CMakeLists.txt Clean up cmake build (#98) 2019-02-21 16:47:33 +09:00
LICENSE.Apache-2.0 Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
LICENSE.BSD-2-Clause Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
LICENSE.BSD-3-Clause Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
LICENSE.LGPL-2.1+ Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
LICENSE.MIT Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
LICENSE.MPL-2.0 Change default license to LGPL license (#60) 2018-03-07 18:38:28 +09:00
Makefile Drop build/TestJS.mk and build/test.cmake (#20) 2018-12-21 13:40:04 +09:00
MakefileClang Drop build/TestJS.mk and build/test.cmake (#20) 2018-12-21 13:40:04 +09:00
package.json Add ecma_6 into spidermonkey vendortest 2017-01-25 13:08:19 +09:00
README.md Updating the prerequisites (#68) 2019-01-28 14:18:56 +09:00
sonar-project.properties Don't hardcode version into Sonar properties (#23) 2019-01-02 17:47:18 +09:00

Escargot

Travis CI Build Status SonarCloud Status

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/pando-project/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

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