f250180147
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 |
||
---|---|---|
.. | ||
Builtins.cpp | ||
CMakeLists.txt |