Skip to content

Make some MemFlags functions const#7903

Merged
elliottt merged 3 commits intobytecodealliance:mainfrom
elliottt:trevor/const-memflags
Feb 9, 2024
Merged

Make some MemFlags functions const#7903
elliottt merged 3 commits intobytecodealliance:mainfrom
elliottt:trevor/const-memflags

Conversation

@elliottt
Copy link
Member

@elliottt elliottt commented Feb 9, 2024

Switch the setter operations on MemFlags to use const functions internally, allowing the with interface to become const. This allows for MemFlags values to be defined as constant, and removes the need to cache trusted and untrusted values in the winch x64 macro assembler.

@elliottt elliottt requested a review from a team as a code owner February 9, 2024 16:49
@elliottt elliottt requested review from abrown and removed request for a team February 9, 2024 16:49
@elliottt elliottt requested a review from saulecabrera February 9, 2024 16:51
@elliottt elliottt force-pushed the trevor/const-memflags branch from 8e6edee to 8e95773 Compare February 9, 2024 16:53
@elliottt elliottt force-pushed the trevor/const-memflags branch from 8e95773 to c6e42e1 Compare February 9, 2024 17:02
@fitzgen fitzgen enabled auto-merge February 9, 2024 17:06
Copy link
Member

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

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

Left one minor suggestion. Thanks for adding this!

@fitzgen fitzgen added this pull request to the merge queue Feb 9, 2024
@elliottt elliottt removed this pull request from the merge queue due to a manual request Feb 9, 2024
@elliottt elliottt added this pull request to the merge queue Feb 9, 2024
Merged via the queue into bytecodealliance:main with commit 45d2f23 Feb 9, 2024
@elliottt elliottt deleted the trevor/const-memflags branch February 9, 2024 18:35
elliottt added a commit to elliottt/wasmtime that referenced this pull request Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants