Hermes is a small and lightweight JavaScript engine optimized for running React Native apps..
Перейти к файлу
John Porto f6bb69c6a0 Minor fixes when accesing CallInst operands
Summary: Fix minor issues found while adding support for emitting textual function names when calling non-callables.

Reviewed By: tmikov, avp

Differential Revision: D40617534

fbshipit-source-id: 02b8782159d4f30f10fc875f47a947fd822e9f57
2022-10-24 22:16:30 -07:00
.circleci Export wasm CLI artifact (#801) 2022-08-27 10:14:48 -07:00
.github Extend the Tagging Github Action to accept a targetSha (#750) 2022-05-18 08:32:05 -07:00
API fix crash when converting symbol or BigInt to dynamic 2022-10-24 20:16:57 -07:00
android Use Locale.US 2022-10-17 10:34:13 -07:00
cmake/modules Use FindPython (#749) 2022-05-11 08:21:36 -07:00
doc Update Features.md 2022-09-27 15:48:31 -07:00
external Code refactoring to favor clang-16. 2022-09-15 18:13:53 -07:00
include Minor fixes when accesing CallInst operands 2022-10-24 22:16:30 -07:00
lib Minor fixes when accesing CallInst operands 2022-10-24 22:16:30 -07:00
lldb Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
npm Bump version to 0.12.0 2022-08-16 11:18:07 -07:00
public Selectively enable the 64-to-32 bit truncation diagnostic (#802) 2022-08-29 21:14:48 -07:00
test Support at methods for Array, TypedArray, and String 2022-10-24 13:58:04 -07:00
tools Move all nodelib .js sources into the nodelib/wrappers/ subdirectory 2022-10-04 12:17:53 -07:00
unittests Add explicit environments to CreateFunction (and children) 2022-10-17 08:22:03 -07:00
unsupported Remove unsupported/static_h 2022-08-19 21:41:53 -07:00
utils Support at methods for Array, TypedArray, and String 2022-10-24 13:58:04 -07:00
website Re-applies docs style fixes. 2022-08-25 17:24:32 -07:00
.clang-format Initial commit 2019-07-10 09:43:55 -07:00
.clang-tidy EASY: disable facebook-hte-MissingBraces 2020-12-10 19:39:32 -08:00
.gitignore Fix typos in comments and some names (#670) 2022-02-03 11:17:16 -08:00
CMakeLists.txt Add the update-lit build target (#836) 2022-10-12 18:42:21 -07:00
CODE_OF_CONDUCT.md Update Code of Conduct 2019-09-05 16:59:11 -07:00
CONTRIBUTING.md Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
LICENSE Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
README.md Migrate documentation to directly invoke CMake 2022-04-04 15:47:29 -07:00
git-revision Initial commit 2019-07-10 09:43:55 -07:00
hermes-engine.podspec Bump version to 0.12.0 2022-08-16 11:18:07 -07:00

README.md

Hermes JS Engine

MIT license npm version PRs Welcome Hermes logo - large H with wings

Hermes is a JavaScript engine optimized for fast start-up of React Native apps. It features ahead-of-time static optimization and compact bytecode.

If you're only interested in using pre-built Hermes in a new or existing React Native app, you do not need to follow this guide or have direct access to the Hermes source. Instead, just follow these instructions to enable Hermes.

Noted that each Hermes release is aimed at a specific RN version. The rule of thumb is to always follow Hermes releases strictly. Version mismatch can result in instant crash of your apps in the worst case scenario.

If you want to know how to build and hack on Hermes directly, and/or integrate Hermes built from source into a React Native app then read on.

The instructions here very briefly cover steps to build the Hermes CLI. They assume you have typical native development tools setup for your OS, and support for cmake and Ninja. For more details of required dependencies, building Hermes with different options, etc. follow these links instead:

To build a local debug version of the Hermes CLI tools the following steps should get you started on macOS/Linux:

mkdir hermes_workingdir
cd hermes_workingdir
git clone https://github.com/facebook/hermes.git
cmake -S hermes -B build -G Ninja
cmake --build ./build

Or if you're using Windows, the following should get you going in a Git Bash shell:

mkdir hermes_workingdir
cd hermes_workingdir
git -c core.autocrlf=false clone https://github.com/facebook/hermes.git
cmake -S hermes -B build -G 'Visual Studio 16 2019' -A x64
cmake --build ./build

You will now be in a directory with the output of building Hermes into CLI tools. From here you can run a piece of JavaScript as follows:

echo "'use strict'; function hello() { print('Hello World'); } hello();" | ./bin/hermes

Contributing

The main purpose of this repository is to continue to evolve Hermes, making it faster and more efficient. We are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Hermes.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Hermes.

License

Hermes is MIT licensed.