Repository navigation
Replace asm!() with __jcvt() on AArch64 for f64 → i32 conversion - #5577
Merged
Merged
Conversation
Test262 conformance changes
Tested main commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5577 +/- ##
===========================================
+ Coverage 47.24% 63.14% +15.90%
===========================================
Files 476 536 +60
Lines 46892 60315 +13423
===========================================
+ Hits 22154 38086 +15932
+ Misses 24738 22229 -2509 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
I originally added this intrinsic for Ruffle[1][2], it is now available since Rust 1.95.0[3], and should be easier to read and use. I’m not sure if the check for NaN is still useful or not, Ruffle doesn’t need it, but maybe they configure the FPU differently. [1] ruffle-rs/ruffle#22138 [2] ruffle-rs/ruffle#23937 [3] rust-lang/stdarch#1993
jedel1043
approved these changes
Oct 11, 2026
jedel1043
left a comment
Member
There was a problem hiding this comment.
Oh, nice cleanup. Thank you!
Merged
zhuzhu81998
pushed a commit
to zhuzhu81998/boa
that referenced
this pull request
Oct 16, 2026
Closes boa-dev#5571. `/^(?:\D\b)$/iv.test("\u212a")` currently returns false. The conversion to `regress::Flags` enables Unicode-aware matching only for `u`, leaving `v` word boundaries in non-Unicode mode. Enable the backend's `unicode` flag for either JavaScript Unicode flag, while preserving the separate `unicode_sets` flag and the public `.unicode` / `.unicodeSets` getters. The regression covers Kelvin sign and long s with `iv`, `iu`, plain `v`, and plain `i`, plus `\w`, `\W`, and the exposed flag getters. This follows [HasEitherUnicodeFlag and WordCharacters](https://tc39.es/ecma262/multipage/text-processing.html#sec-wordcharacters). Validation: - The new regression fails on the original implementation at the issue's Kelvin-sign example. - `cargo test -p boa_engine -p boa_parser --lib -j 2`: 1,452 passed, 1 ignored. - All ten regression assertions also pass in Node.js. - `cargo fmt --all --check` and `git diff --check` pass. - Clippy passes for the affected packages with all targets, and for the entire workspace with all features/all targets and with no default features. Each run uses `-D warnings -A clippy::incompatible_msrv`: strict Clippy on this ARM Mac reports an existing MSRV diagnostic at `core/engine/src/builtins/number/conversions.rs:85` (`__jcvt`, introduced by boa-dev#5577, outside this change). Toolchain: Rust 1.98.0. AI disclosure: Codex implemented and tested this change autonomously with the account owner's authorization. No human review is claimed.
Basharkhan7776
pushed a commit
to Basharkhan7776/rust-js-parser
that referenced
this pull request
Oct 18, 2026
We forgot to bump the version on boa-dev#5577
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I originally added this intrinsic for Ruffle[1][2], it is now available since Rust 1.95.0[3], and should be easier to read and use.
I’m not sure if the check for NaN is still useful or not, Ruffle doesn’t need it, but maybe they configure the FPU differently.
[1] ruffle-rs/ruffle#22138
[2] ruffle-rs/ruffle#23937
[3] rust-lang/stdarch#1993
This Pull Request doesn’t fix any issue.
It changes the following:
__jcvt()intrinsic instead of a rawasm!()block.