-
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.
[vm/ffi] Rewrite
Pointer.elementAt
calls in CFE
This rewrites `elementAt` calls in the CFE to skip the runtime entry for `sizeOf` when the type argument is constant. The runtime entry is still used when the type argument is generic. Forcing the type argument to be constant and removing the runtime entry will be done in follow up CLs. Bug: #44621 Bug: #38721 TEST=tests/ffi/data_test.dart Change-Id: I480db43e7c115c24bd45f0ddab0cfea7eb8cfa58 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182263 Reviewed-by: Clement Skau <[email protected]>
- Loading branch information
1 parent
64bf734
commit 1fff52a
Showing
2 changed files
with
18 additions
and
11 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