-
Notifications
You must be signed in to change notification settings - Fork 36
[WIP] Attempt to update the testsuite subrepo #859
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?
Conversation
36a7dc1 to
9eca53f
Compare
|
@hra687261, please tell me when I should have a look at this one (I'm waiting as long as it is marked as draft, just telling so that we don't enter a deadlock where I wait for you to mark it as ready and where you wait my review before marking as ready :-)) |
|
When it's no longer a marked as a draft, I'll let you know :) |
ba6a245 to
709ed97
Compare
cd567a3 to
9b4bd00
Compare
| let has_def_value = | ||
| match ty with Text.Ref_type (No_null, _) -> false | _ -> true | ||
| in | ||
| if (not init) && not has_def_value then Error (`Uninitialized_local id) |
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.
Maybe do this in validate_binary instead so that it is checked for binary modules too
| begin match known_globals with | ||
| | Some n when idx >= n -> Error (`Unknown_global (Text.Raw idx)) | ||
| | _ -> Ok (Binary.Global_get idx) | ||
| end |
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.
it should be checked by find_global or in typechecking phase already
| let* stack = Stack.pop_ref stack in | ||
| Stack.push [ i32 ] stack | ||
| | Ref_as_non_null -> | ||
| let* stack = Stack.pop_ref stack in |
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.
let* rt, stack = Stack.pop_ref stack in
Stack.push rt stack
The purpose of this PR is to update the test suite and track/fix the various errors that happen after this update.
This was done while I was working on #851