@johnni...@google.com I don't quite understand how this `GetVariable` gets to occur - are there more such edge cases we should think of?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@johnni...@google.com I don't quite understand how this `GetVariable` gets to occur - are there more such edge cases we should think of?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Johnni Winther@johnni...@google.com I don't quite understand how this `GetVariable` gets to occur - are there more such edge cases we should think of?
What source code triggers this?
`pkg/vm/testcases/transformations/record_use/named_with_function_arg.dart`, see `pkg/vm/testcases/transformations/record_use/named_with_function_arg.dart.aot.expect`. This test case fails without the change made in `pkg/vm/lib/transformations/record_use/record_call.dart`
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Johnni Winther@johnni...@google.com I don't quite understand how this `GetVariable` gets to occur - are there more such edge cases we should think of?
What source code triggers this?
This is because of the `named-arguments-anywhere` feature. Because the calling convention puts positional arguments before named arguments we need to hoist the named arguments to preserve the evaluation order. This is done by wrapping the call in a `Let` expression that performs the evaluation of the named argument before the evaluation of the position argument.
pkg/vm/testcases/transformations/record_use/named_with_function_arg.dart
TEST= ....
import 'package:meta/meta.dart' show RecordUse;
Should this have a copyright header?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
pkg/vm/testcases/transformations/record_use/named_with_function_arg.dart
Moritz SümmermannTEST= ....
I think both is fine as per the docs. "Dart VM changes must include a 'Tested: <description of how this change was tested>' footer. See also: https://github.com/dart-lang/sdk/wiki/Gerrit-Submit-Requirements#commit-message-has-test"
Why is the order changing?
As before, all the arguments were stored as positional.
Should this have a copyright header?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |