Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation for targets without AtomicU64 #3399

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Conversation

jedel1043
Copy link
Member

Closes #2599
Also addresses the clippy lint that we had disabled temporarily.

@jedel1043 jedel1043 added bug Something isn't working Internal Category for changelog labels Oct 19, 2023
@jedel1043 jedel1043 added this to the v0.18.0 milestone Oct 19, 2023
@jedel1043 jedel1043 requested a review from a team October 19, 2023 10:28
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 95,609 95,609 0
Passed 75,690 75,690 0
Ignored 19,160 19,160 0
Failed 759 759 0
Panics 0 0 0
Conformance 79.17% 79.17% 0.00%

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (96f3543) 45.71% compared to head (bff44bb) 45.72%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3399    +/-   ##
========================================
  Coverage   45.71%   45.72%            
========================================
  Files         482      483     +1     
  Lines       49182    49412   +230     
========================================
+ Hits        22485    22594   +109     
- Misses      26697    26818   +121     
Files Coverage Δ
boa_engine/src/lib.rs 73.33% <ø> (ø)
boa_engine/src/symbol.rs 67.36% <100.00%> (ø)
boa_gc/src/trace.rs 91.66% <ø> (ø)

... and 34 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

boa_engine/src/symbol.rs Outdated Show resolved Hide resolved
@jedel1043 jedel1043 requested review from a team and Razican October 19, 2023 16:08
Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

)]

#[cfg(not(target_has_atomic = "ptr"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we might want to create a symbol feature, that requires this, so that users in platforms without this option can have most of JS working :)

@jedel1043 jedel1043 requested a review from a team October 19, 2023 16:50
boa_engine/src/symbol.rs Outdated Show resolved Hide resolved
boa_engine/src/symbol.rs Outdated Show resolved Hide resolved
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the comment below, this looks good to me! :)

boa_engine/src/lib.rs Show resolved Hide resolved
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect to me! :)

@HalidOdat HalidOdat added this pull request to the merge queue Oct 20, 2023
Merged via the queue into main with commit f71039d Oct 20, 2023
14 checks passed
@HalidOdat HalidOdat deleted the usize-symbol-hash branch October 20, 2023 04:56
sam-finch-tezos pushed a commit to trilitech/boa that referenced this pull request Nov 29, 2023
* Fix compilation for targets without `AtomicU64`

* Throw compilation error if `AtomicUsize` is not available

* Apply review pt. 1

* Apply review pt. 2

* fix comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Internal Category for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MIPS 32-bit target without Atomic{I,U}64
4 participants