-
Notifications
You must be signed in to change notification settings - Fork 796
Require specific array types for string ops #7810
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
base: main
Are you sure you want to change the base?
Changes from all commits
a2f894e
376b38d
5f4e969
9ee9393
c0b31cd
5cb5ff7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -591,6 +591,11 @@ constexpr HeapType nofunc = HeapType::nofunc; | |
constexpr HeapType nocont = HeapType::nocont; | ||
constexpr HeapType noexn = HeapType::noexn; | ||
|
||
// Certain heap types are used by standard operations. Provide central accessors | ||
// for them to avoid having to build them everywhere they are used. | ||
HeapType getMutI8Array(); | ||
HeapType getMutI16Array(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this be in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will eventually get more types, not all of which are arrays. In particular I'm thinking of |
||
|
||
} // namespace HeapTypes | ||
|
||
// A recursion group consisting of one or more HeapTypes. HeapTypes with single | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because now it's no longer possible for any array operation to take a reference to an array type other than the one this code is introducing. Basically we're requiring that this replacement would be a no-op by construction.