-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[vm/ffi] Unbox Pointer
#50777
Comments
Code such as this is not optimal:
|
We should consider using
This way, like in C++, using a pointer as an integer requires explicit conversion and is obvious in the IL. |
We should explore unboxing
Pointer
.(I don't believe we had a tracking issue yet.)
We've stopped reifying the type argument of
Pointer
:So, essentially the
Pointer
is now just an object with an unboxed integer as field.Replacing it with a Dart
int
however does not exactly give the semantics that we want. We don't want to start boxing things in Mints again. So rather, it should be unboxed as an unboxed integer, and as an unboxed integer that has a different representation on 32 bit and 64 bit platforms.The text was updated successfully, but these errors were encountered: