Skip to content
Escargot is a memory optimized JavaScript engine for mid-range devices such as mobile phone, tablet and TV.
C++ Python JavaScript Other
Branch: master
Clone or download
ksh8281 and clover2123 Refactor ObjectStructure
* Divide ObjectStructure into 3 types
* Add transition look up hash map into ObjectStructureWithTransition
* Use faster version of log2 on Vector

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
Latest commit 82c99fc Nov 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Oct 14, 2019
build Fix errors (#467) Oct 17, 2019
docs
packaging Change default license to LGPL license (#60) Mar 7, 2018
src Refactor ObjectStructure Nov 12, 2019
test Clear up redundant submodules and script files Nov 7, 2019
third_party Clear up redundant submodules and script files Nov 7, 2019
tools Clear up redundant submodules and script files Nov 7, 2019
.clang-format Apply clang-formatting Dec 8, 2016
.gitignore Include TC driver files (#314) Jul 15, 2019
.gitlab-ci.yml Move tools/vendortest to js_vendor_tc (#74) May 15, 2018
.gitmodules Clear up redundant submodules and script files Nov 7, 2019
.travis.yml Move escargot internal tests to Samsung/js_vendor_tc repo (#395) Aug 29, 2019
CMakeLists.txt Implement Direct {Import, Export} (#448) Oct 7, 2019
Jenkinsfile Clear up redundant submodules and script files Nov 7, 2019
LICENSE.Apache-2.0 Change default license to LGPL license (#60) Mar 7, 2018
LICENSE.BSD-2-Clause Change default license to LGPL license (#60) Mar 7, 2018
LICENSE.BSD-3-Clause Change default license to LGPL license (#60) Mar 7, 2018
LICENSE.LGPL-2.1+ Change default license to LGPL license (#60) Mar 7, 2018
LICENSE.MIT Change default license to LGPL license (#60) Mar 7, 2018
LICENSE.MPL-2.0 Change default license to LGPL license (#60) Mar 7, 2018
README.md Fix several modules of Parser (#461) Oct 14, 2019
sonar-project.properties Update submodule addresses (#292) Jun 19, 2019

README.md

Escargot

Build status

Prerequisites

On Ubuntu Linux

General build prerequisites:

sudo apt-get install autoconf automake cmake 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=shell -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=[ shared_lib | static_lib | shell | shell_test ]
    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

Test run for each benchmark (Sunspider, Octane, V8, Chakracore, test262, SpiderMonkey, etc.):

tools/run-tests.py --arch=x86_64 spidermonkey test262 v8
You can’t perform that action at this time.