Skip to content

Commit

Permalink
Add JSI implementation for JSC
Browse files Browse the repository at this point in the history
Summary:
This diff is an implementation of jsi::Runtime which uses JSC as the virtual machine.  All of the JSC-specific details are encapsulated here.
@public

Reviewed By: RSNara

Differential Revision: D9328242

fbshipit-source-id: be3c7bed161916c1cb9a48182600b558f054eadc
  • Loading branch information
mhorowitz authored and facebook-github-bot committed Oct 18, 2018
1 parent e337bca commit a23fb1a
Show file tree
Hide file tree
Showing 3 changed files with 1,351 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ReactCommon/jsi/BUCK
Expand Up @@ -59,3 +59,38 @@ rn_xplat_cxx_library(
react_native_xplat_dep("jsi:jsi"),
],
)

rn_xplat_cxx_library(
name = "JSCRuntime",
srcs = [
"JSCRuntime.cpp",
],
header_namespace = "jsi",
exported_headers = [
"JSCRuntime.h",
],
cxx_deps = [
"xplat//jsc:jsc",
],
fbandroid_compiler_flags = [
"-fexceptions",
"-frtti",
"-O3",
],
fbandroid_deps = [
"xplat//jsc:jsc",
],
fbobjc_compiler_flags = [
"-Os",
],
fbobjc_frameworks = [
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
],
visibility = ["PUBLIC"],
xplat_mangled_args = {
"soname": "libjscjsi.$(ext)",
},
exported_deps = [
react_native_xplat_dep("jsi:jsi"),
],
)

0 comments on commit a23fb1a

Please sign in to comment.