Skip to content

Move TurboModuleManager to use RuntimeExecutor instead of jsContext#30416

Closed
ejanzer wants to merge 1 commit into
facebook:masterfrom
ejanzer:export-D21338930
Closed

Move TurboModuleManager to use RuntimeExecutor instead of jsContext#30416
ejanzer wants to merge 1 commit into
facebook:masterfrom
ejanzer:export-D21338930

Conversation

@ejanzer
Copy link
Copy Markdown

@ejanzer ejanzer commented Nov 17, 2020

Summary:
This diff changes the constructor param for TurboModuleManager from jsContext (a long representing the jsi::Runtime pointer) to a RuntimeExecutor. It also updates callsites to use the new RuntimeExecutor created by CatalystInstance. This is only used for installing the TurboModule JSI binding; it's not currently used for JS invocation in TurboModules, which is handled separately by JSCallInvoker. Ultimately we may be able to implement JSCallInvoker with the provided RuntimeExecutor, but there's some additional logic in JSCallInvoker that we don't have here yet.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D21338930

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Nov 17, 2020
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D21338930

@pull-bot
Copy link
Copy Markdown

pull-bot commented Nov 17, 2020

Messages
📖

📋 Missing Changelog - Can you add a Changelog? To do so, add a "## Changelog" section to your PR description. A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

DetailsCATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

📖 📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.
📖 📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.

Generated by 🚫 dangerJS against 8cbc89a

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Nov 17, 2020

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 00e623d

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D21338930

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D21338930

…acebook#30416)

Summary:
Pull Request resolved: facebook#30416

This diff changes the constructor param for TurboModuleManager from jsContext (a long representing the `jsi::Runtime` pointer) to a RuntimeExecutor. It also updates callsites to use the new RuntimeExecutor created by CatalystInstance. This is only used for installing the TurboModule JSI binding; it's not currently used for JS invocation in TurboModules, which is handled separately by JSCallInvoker. Ultimately we may be able to implement JSCallInvoker *with* the provided RuntimeExecutor, but there's some additional logic in JSCallInvoker that we don't have here yet.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D21338930

fbshipit-source-id: 76074326a55d85fcf0f79125b2e7043203231dfd
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D21338930

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,521,050 +1,556
android hermes armeabi-v7a 7,105,914 +1,176
android hermes x86 7,961,335 +1,384
android hermes x86_64 7,872,832 +1,579
android jsc arm64-v8a 8,991,223 +1,555
android jsc armeabi-v7a 8,559,202 +1,187
android jsc x86 8,993,007 +1,371
android jsc x86_64 9,544,762 +1,576

Base commit: 00e623d

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @ejanzer in c0a2998.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants