hermes-windows/lib/FrontEndDefs
Xuan Huang f250180147 Extend Builtins with JSFunction and register
Summary:
This diff extend the builtins with JSFunction. In summary,

1. `builtins_` in `Runtime` need to be generalized to a vector of
  `Callable *` so it can potentially take a `JSFunction`.

2. Defined JSBuiltin the same way as the other 2.

3. Have a `initJSBuiltins` to register JSFunctions returned from
   internal bytecode. `spawnAsync` is the first of them.

4. Made clear in the `Builtins.def` comments the 3 different types of
   builtins: (Public Native) Builtins, Private (Native) Builtins, and
   the newly added (Private) JS Builtins. Updated some of the
   occurences of such names to reduce confusion.

We'll use the functionality of JSBuiltin in later diffs.

Reviewed By: tmikov

Differential Revision: D23801672

fbshipit-source-id: e0b827c43f3fbacd75f81bf353c949f595e7d548
2021-01-25 15:21:44 -08:00
..
Builtins.cpp Extend Builtins with JSFunction and register 2021-01-25 15:21:44 -08:00
CMakeLists.txt Use internal fork of LLVM 2020-02-06 00:34:00 -08:00