Skip to content

Move debugJavaScript to IHermes, remove unused dumpBasicBlockProfileTrace#53473

Closed
lavenzg wants to merge 3 commits into
react:mainfrom
lavenzg:export-D81075460
Closed

Move debugJavaScript to IHermes, remove unused dumpBasicBlockProfileTrace#53473
lavenzg wants to merge 3 commits into
react:mainfrom
lavenzg:export-D81075460

Conversation

@lavenzg

@lavenzg lavenzg commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

Differential Revision: D81075460

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 26, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@react-native-bot

react-native-bot commented Aug 26, 2025

Copy link
Copy Markdown
Collaborator
Fails
🚫

❔ This pull request needs a description.

Generated by 🚫 dangerJS against 7058fa9

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:


Expose these methods so that we can access from RN code. To minimize
the change, a few methods that depend on other headers or preprocessor
flags are wrapped into IHermesExtra in hermes/API/hermes.h.

Reviewed By: tsaichien

Differential Revision: D80740969
Summary:

By default, this function returns nullptr. User can pass a preprocessor
definition "-DHERMES_SH_UNIT_FN=sh_export_<unit_name>" (where 
<unit_name> is the name passed to shermesc when compiling the JS
input), so that this function returns the function pointer, which can
be passed to `evaluateSHUnit` for evaluation.

Reviewed By: avp

Differential Revision: D80747463
Summary:

This is a cleanup of IHermesExtra:
1. Move dumpSampledTraceToProfile() and debugJavasScript() to IHermes.
I'm still keeping the empty DebugFlags, since changing that requires
more changes. It's also possible that we may need it in the future.
2. Remove `dumpBasicBlockProfileTrace`. Use 
writeBasicBlockProfileTraceToFile` if users need to dump the profile.

Reviewed By: tsaichien

Differential Revision: D81075460
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Sep 4, 2025
Summary:
X-link: react/react-native#53473

This is a cleanup of IHermesExtra:
1. Move dumpSampledTraceToProfile() and debugJavasScript() to IHermes.
I'm still keeping the empty DebugFlags, since changing that requires
more changes. It's also possible that we may need it in the future.
2. Remove `dumpBasicBlockProfileTrace`. Use
writeBasicBlockProfileTraceToFile` if users need to dump the profile.

Changelog: [Internal]

Reviewed By: tsaichien

Differential Revision: D81075460

fbshipit-source-id: b81005e531809cfd870fd9bdb5c0e17864ed92fb
facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Sep 4, 2025
Summary:
X-link: react/react-native#53473

This is a cleanup of IHermesExtra:
1. Move dumpSampledTraceToProfile() and debugJavasScript() to IHermes.
I'm still keeping the empty DebugFlags, since changing that requires
more changes. It's also possible that we may need it in the future.
2. Remove `dumpBasicBlockProfileTrace`. Use
writeBasicBlockProfileTraceToFile` if users need to dump the profile.

Changelog: [Internal]

Reviewed By: tsaichien

Differential Revision: D81075460

fbshipit-source-id: b81005e531809cfd870fd9bdb5c0e17864ed92fb
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 4, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 8c9f366.

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.

3 participants