Skip to content

Tags: j-bahr/hermes

Tags

hermes-2024-01-25-RNv0.73.3-57e3665290d5e97eaea63d27cb370ce7862a10a6

Toggle hermes-2024-01-25-RNv0.73.3-57e3665290d5e97eaea63d27cb370ce7862a10a6's commit message
Avoid repeated branches while iterating StringView

Summary:
`quoteStringForJSON` was operating via indexed access on `StringView`,
performing an `isASCII()` check every iteration and leading to slow
quoting during `JSON.stringify`.

Modify the function to take `UTF16Ref` or `ASCIIRef` directly,
so that it knows the type.

This increases code size slightly while resulting in significant
speedups in `JSON.stringify`.

Reviewed By: neildhar

Differential Revision: D46117526

fbshipit-source-id: e6b849fc8b4e2e748e05d277e36462b8d97ae095

hermes-2023-11-17-RNv0.73.0-21043a3fc062be445e56a2c10ecd8be028dd9cc5

Toggle hermes-2023-11-17-RNv0.73.0-21043a3fc062be445e56a2c10ecd8be028dd9cc5's commit message
Fix Intl to clear needDefault flag correctly (facebook#1014)

Summary:
Similar to year, month, and day, specifying "weekday" as an option to
`toLocaleString` should result in only the weekday being printed. To
force this, use the `kDateRequired` bit as we do for the other fields.

Pull Request resolved: facebook#1014

Test Plan: Added a test in the next diff.

Reviewed By: tmikov

Differential Revision: D49856174

Pulled By: neildhar

fbshipit-source-id: ed52f425e4240f672931d236bc53cc58724b6747

hermes-2023-09-26-RNv0.73.0-ee2922a50fb719bdb378025d95dbd32ad93cd679

Toggle hermes-2023-09-26-RNv0.73.0-ee2922a50fb719bdb378025d95dbd32ad93cd679's commit message
Unsubscribe heap callbacks on destruction

Summary: Disable heap object stack tracing upon destruction.

Reviewed By: dannysu

Differential Revision: D49477452

fbshipit-source-id: d7984c8293351727df1cf734bcb634647a1c578c

hermes-2023-08-07-RNv0.72.4-813b2def12bc9df02654b3e3653ae4a68d0572e0

Toggle hermes-2023-08-07-RNv0.72.4-813b2def12bc9df02654b3e3653ae4a68d0572e0's commit message
Avoid repeated branches while iterating StringView

Summary:
`quoteStringForJSON` was operating via indexed access on `StringView`,
performing an `isASCII()` check every iteration and leading to slow
quoting during `JSON.stringify`.

Modify the function to take `UTF16Ref` or `ASCIIRef` directly,
so that it knows the type.

This increases code size slightly while resulting in significant
speedups in `JSON.stringify`.

Reviewed By: neildhar

Differential Revision: D46117526

fbshipit-source-id: e6b849fc8b4e2e748e05d277e36462b8d97ae095

hermes-2023-04-13-RNv0.70.8-c9b539bf3d7bfa4143ff1a5751886c7b2dd728a2

Toggle hermes-2023-04-13-RNv0.70.8-c9b539bf3d7bfa4143ff1a5751886c7b2dd728a2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Remove register stack size override in hermes.cpp (facebook#969)

Co-authored-by: Neil Dhar <[email protected]>
Co-authored-by: Mike Duminy <[email protected]>
resolved: facebook#923

hermes-2023-03-20-RNv0.72.0-49794cfc7c81fb8f69fd60c3bbf85a7480cc5a77

Toggle hermes-2023-03-20-RNv0.72.0-49794cfc7c81fb8f69fd60c3bbf85a7480cc5a77's commit message
Deploy 0.202.0 to xplat

Summary: Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D44155581

fbshipit-source-id: 358df8c40395812216afef1c99f93c576a425b11

hermes-2023-03-07-RNv0.71.4-ee25883ea34374f687883a641c8101ac0d292fc6

Toggle hermes-2023-03-07-RNv0.71.4-ee25883ea34374f687883a641c8101ac0d292fc6's commit message
Increase default max stack size (facebook#923)

Summary:
As discussed in facebook#135, the default stack size doesn't work for all use cases. In particular, when very large and complex bundles are loaded in dev mode.

This PR bumps the default stack size from `64*1024` (512kB) to `128*1024` (1MB). As suggested by tmikov in this comment - facebook#135 (comment).

Pull Request resolved: facebook#923

Reviewed By: tmikov

Differential Revision: D43630032

Pulled By: neildhar

fbshipit-source-id: 5f8cff91a5f01b6507870c61efa1ce507de67940

hermes-2023-03-07-RNv0.71.4-31fdcf738940875c9bacf251e149006cf515d763

Toggle hermes-2023-03-07-RNv0.71.4-31fdcf738940875c9bacf251e149006cf515d763's commit message
Refactor HBC test helper

Summary:
Provide a new API in the test helper, `bytecodeModuleForSource`. This
will return the module rather than the bytecode itself. With this new
API, refactor `bytecodeForSource` to internally call into it. We will be
using `bytecodeModuleForSource` in the next diff for testing purposes.

Reviewed By: tmikov

Differential Revision: D41670281

fbshipit-source-id: 2a6d7fb909a171a279aabcc69333ee09845d9ddd

hermes-2022-11-30-RNv0.71.0-1eb8f7ea3059a338205c302cea0f5a3057f93049

Toggle hermes-2022-11-30-RNv0.71.0-1eb8f7ea3059a338205c302cea0f5a3057f93049's commit message
Re-sync with internal repository (facebook#856)

Co-authored-by: Facebook Community Bot <[email protected]>

hermes-2022-11-03-RNv0.71.0-85613e1f9d1216f2cce7e54604be46057092939d

Toggle hermes-2022-11-03-RNv0.71.0-85613e1f9d1216f2cce7e54604be46057092939d's commit message
type updates and transform node updates

Summary:
This diff:
1) fixes some bugs in the AST types
2) splits some ambiguous node types into more specific types (eg `ObjectTypeProperty` into `ObjectTypePropertySignature` and `ObjectTypeMethodSignature`)
3) refactors node transforms into separate files for cleanliness
4) adds new node creator functions for the aforementioned new node types
5) updates code to use the new functions

Reviewed By: pieterv

Differential Revision: D40921197

fbshipit-source-id: 42330f80814cd002a6cc70fc91915f9f8cfa654b