Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@chinmaygarde
Copy link
Member

For embedder code that is configured for both AOT and JIT mode Dart execution
based on the Flutter engine being linked to, this runtime check may be used to
appropriately configure the FlutterProjectArgs. In JIT mode execution, the
kernel snapshots must be present in the Flutter assets directory specified in
the FlutterProjectArgs. For AOT execution, the fields vm_snapshot_data,
vm_snapshot_instructions, isolate_snapshot_data and
isolate_snapshot_instructions (along with their size fields) must be specified
in FlutterProjectArgs.

For embedder code that is configured for both AOT and JIT mode Dart execution
based on the Flutter engine being linked to, this runtime check may be used to
appropriately configure the `FlutterProjectArgs`. In JIT mode execution, the
kernel snapshots must be present in the Flutter assets directory specified in
the `FlutterProjectArgs`. For AOT execution, the fields `vm_snapshot_data`,
`vm_snapshot_instructions`, `isolate_snapshot_data` and
`isolate_snapshot_instructions` (along with their size fields) must be specified
in `FlutterProjectArgs`.
@chinmaygarde
Copy link
Member Author

See flutter/flutter#43351 (comment) for a potential use case.

@jonahwilliams
Copy link
Contributor

I could actually use this to configure the linux and windows shells as well...

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chinmaygarde chinmaygarde merged commit 1663ac9 into flutter:master Oct 23, 2019
@chinmaygarde chinmaygarde deleted the FlutterEngineRunsAOTCompiledDartCode branch October 23, 2019 21:50
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Oct 24, 2019
git@github.com:flutter/engine.git/compare/195425e04480...400e3b0

git log 195425e..400e3b0 --no-merges --oneline
2019-10-23 fmil@google.com Wires the locale provided by Fuchsia. (flutter/engine#13045)
2019-10-23 chinmaygarde@google.com Add FlutterEngineRunsAOTCompiledDartCode to the embedder API. (flutter/engine#13319)
2019-10-23 50856934+nturgut@users.noreply.github.com [web] [test] Adding firefox install functionality to the test platform (flutter/engine#13272)
2019-10-23 skia-flutter-autoroll@skia.org Roll src/third_party/skia 32803ff74448..6863bb0930cf (7 commits) (flutter/engine#13318)
2019-10-23 bkonyi@google.com Roll src/third_party/dart 5fd6c8a3c1..b359ac0a1e (2 commits)
2019-10-23 iska.kaushik@gmail.com [recipe] Upload opt flutter_tester (flutter/engine#13311)
2019-10-23 jason-simmons@users.noreply.github.com Update the dependencies for the Fuchsia build of flutter_frontend_server (flutter/engine#13316)
2019-10-23 jmccandless@google.com NO_SUGGESTIONS keyboard flag in Android (flutter/engine#13099)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
git@github.com:flutter/engine.git/compare/195425e04480...400e3b0

git log 195425e..400e3b0 --no-merges --oneline
2019-10-23 fmil@google.com Wires the locale provided by Fuchsia. (flutter/engine#13045)
2019-10-23 chinmaygarde@google.com Add FlutterEngineRunsAOTCompiledDartCode to the embedder API. (flutter/engine#13319)
2019-10-23 50856934+nturgut@users.noreply.github.com [web] [test] Adding firefox install functionality to the test platform (flutter/engine#13272)
2019-10-23 skia-flutter-autoroll@skia.org Roll src/third_party/skia 32803ff74448..6863bb0930cf (7 commits) (flutter/engine#13318)
2019-10-23 bkonyi@google.com Roll src/third_party/dart 5fd6c8a3c1..b359ac0a1e (2 commits)
2019-10-23 iska.kaushik@gmail.com [recipe] Upload opt flutter_tester (flutter/engine#13311)
2019-10-23 jason-simmons@users.noreply.github.com Update the dependencies for the Fuchsia build of flutter_frontend_server (flutter/engine#13316)
2019-10-23 jmccandless@google.com NO_SUGGESTIONS keyboard flag in Android (flutter/engine#13099)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants