Re: Change in dart/sdk[master]: Call _asyncStarMoveNextHelper in kernel

Skip to first unread message

Vyacheslav Egorov

Jul 9, 2018, 1:15:56 PM7/9/18
to, Jens Johansen,, Dart Reviews,, Kevin Millikin, Commit Bot, Alexander Markov, Karl Klose, Ryan Macnak
I think that is the cleanest solution - but I fear it is much larger refactoring. 

Right now we do pass environment defines down to compileToKernel (and Flutter even takes care of setting dart.vm.product for release builds) - but this is not passed further in FE which actually runs the async transformation.

// Vyacheslav Egorov

On Mon, Jul 9, 2018 at 7:14 PM Alexander Markov (Gerrit) <> wrote:

Patch Set 5:

I suggested to actually emit

  if (...) _asyncStartHelper(...) 

The code as it is written right now would not actually work - because front-end is running on non-product VM in Flutter.

You're right, CFE should take defines as options instead of relying on the host VM configuration. Environment defines (such as 'dart.vm.product') are used in constants transformation and Flutter should be passing them to front-end already. Does it make sense to pass environment defines through CompilerOptions or Target and use in async transformation as well?

View Change

    To view, visit change 63624. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: sdk
    Gerrit-Branch: master
    Gerrit-Change-Id: I4969ca48f798bd51f9d2d5bc26dd224fa7eff627
    Gerrit-Change-Number: 63624
    Gerrit-PatchSet: 5
    Gerrit-Owner: Jens Johansen <>
    Gerrit-Reviewer: Jens Johansen <>
    Gerrit-Reviewer: Kevin Millikin <>
    Gerrit-Reviewer: Vyacheslav Egorov <>
    Gerrit-CC: Alexander Markov <>
    Gerrit-CC: Karl Klose <>
    Gerrit-CC: Ryan Macnak <>
    Gerrit-Comment-Date: Mon, 09 Jul 2018 17:14:02 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment
    Reply all
    Reply to author
    0 new messages