[vm] Add _nativeEffect
top-level function
#45607
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
We should add a
_nativeEffect
top-level function which can be used to describe the effects of native calls in Dart code as one of its arguments. This enables us to describe arbitrary side-effects as long as they are expressible in Dart code, rather than for every new type of side effect introducing a new pragma.This
_nativeEffect
should then be compiled to nothing in the backends, or be removed as the last step of the CFE.Currently, we do without
_nativeEffect
, this does not express intent well. For example:With
_nativeEffect
the intent is explicit:Background internal doc: go/dart-ffi-struct-treeshaking
The text was updated successfully, but these errors were encountered: