034b90af5d
The experimental `dart:ffi` support predates deferred loading implementation. Any use of FFI features would lazily import `ffi.memory` into the (fixed coded) main module. This CL now lazily imports the `ffi.memory` module into all modules that operate on the memory. => This will now allow a flutter app that is compiled with dart2wasm in deferred loading mode to possibly defer parts of flutter engine code that uses FFI into deferred modules. Issue https://github.com/dart-lang/sdk/issues/56952 Change-Id: Idf821ce2dd92c36ac1be9dae24307516a1ae86d9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510760 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>