Skip to content

[vm/ffi] variance of functions in load/store #37385

Closed
@dcharkes

Description

@dcharkes

Why are all the arguments (and result) of the function type invariant?

/cc @sjindel-google

Currently we enforce that the arguments and return type of functions are invariant on trampolines.

3cce6fc changed the semantics of Pointer.store and Pointer.load to be consistent with the Dart language semantics (notably implicit downcasts).

We should investigate the use of Pointer<NativeType> as argument or return value, document it's semantics, and write tests for it.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffipart-of:pointer-api

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions