-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cfe/ffi] Support missing
Abi
s in NativeTypeCfe
When ABI-specific integers are introduced, their mappings can be partial. We need to account for this in the transformation and the code we generate. In the transformation, all sizes and offsets become nullable. In the generated code we add `null` constants and a call to check whether the value is not-null at runtime. Note that with only this CL we can not generate nulls yet, because all size and offset mappings are still complete. TEST=pkg/front_end/testcases/nnbd/ffi* TEST=tests/ffi* Bug: #42563 Change-Id: I80d45f3f52001670bc0679a033f7daa22198d55e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221631 Reviewed-by: Ryan Macnak <[email protected]>
- Loading branch information
Showing
4 changed files
with
174 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.