-
Notifications
You must be signed in to change notification settings - Fork 745
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
[Parser] Parse string types and operations #6161
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
@@ -59,7 +59,7 @@ struct ParseInput { | |||
std::optional<uint8_t> takeU8(); | |||
std::optional<double> takeF64(); | |||
std::optional<float> takeF32(); | |||
std::optional<std::string_view> takeString(); | |||
std::optional<std::string> takeString(); |
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.
Why did this change?
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.
The string view this method returned was dangling whenever the string contained an escape sequence, so I had to change it to return an owned string to avoid ownership problems.
;; CHECK-NEXT: ) | ||
(func $string-new (param i32 i32) (result stringref) | ||
local.get 0 | ||
local.get 1 |
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.
Why do I see local.get 1
in the input but not in the output?
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.
This was a bug! Fixed now.
Parse `array.new_elem`, `array.init_data`, and `array.init_elem`. Accidentally also includes: * [Parser] Parse string types and operations (#6161)
Parse `array.new_elem`, `array.init_data`, and `array.init_elem`. Accidentally also includes: * [Parser] Parse string types and operations (WebAssembly#6161)
No description provided.