dart-sdk/tests/kernel/unsorted
Clement Skau b681bfd8d2 [VM] Fixes bad reuse/typing of temps in async transform invocations.
For a method invocation temps might get allocated for both the receiver
and argument(s) so that:
  A().foo(await null)
becomes:
  Future<void> tmp0
  ...
  tmp0 = A() // <- Type mismatch.
  yield ...
  tmp0 = tmp0.foo(:result) // <- Correct type.

This happens because the liveness analysis finds that the (previously
dynamic) temps can be reused.
Unfortunately 121988 added typing information to these temps, which
means they can't be simply reused in all cases.

This fix makes the temps dynamic again (by removing the type) but adds
unsafecasts to all VariableGets to propagate the know type.

Bug: https://github.com/flutter/flutter/issues/51828
Change-Id: I89c82763e0d4f8b102bb55dec3b694d017345517
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138500
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2020-03-06 12:20:45 +00:00
..
as_is_test.dart
block_scope_test.dart
breakable_statement_test.dart
closures_regression_test.dart
closures_test.dart
conditional_test.dart
constant_evaluator_regression_test.dart
constant_expressions_test.dart
factory_regression_test.dart
field_dispatcher_test.dart
finally_contexts_test.dart
for_in_loop_test.dart
generic_function_test.dart
getters_and_setters_test.dart
global_field_initializer_test.dart
global_function_test.dart
instance_getters_and_setters_test.dart
invocation_errors_test.dart Make strong mode the default under --preview-dart-2. 2018-02-27 22:16:07 +00:00
invocation_test.dart
klass_field_initializer_test.dart Require super initializer to be at the end of the initializer list. 2018-08-22 10:43:08 +00:00
klass_test.dart
let_test.dart
load_store_test.dart
local_function_test.dart
loop_test.dart [Tests] Update tests/kernel for Dart 2 fixed-size integers 2018-02-13 00:09:28 +00:00
mapliteral_test.dart
mixin_test.dart
nsm_dispatcher_test.dart Make strong mode the default under --preview-dart-2. 2018-02-27 22:16:07 +00:00
nullable_operator_test.dart
optimize_noncached_constant_test.dart
regression_flutter51828_test.dart [VM] Fixes bad reuse/typing of temps in async transform invocations. 2020-03-06 12:20:45 +00:00
rethrow_test.dart
return_test.dart
simple_literal_test.dart [Tests] Update tests/kernel for Dart 2 fixed-size integers 2018-02-13 00:09:28 +00:00
string_buffer_test.dart
string_concatenation_test.dart
super_mixin_test.dart Make strong mode the default under --preview-dart-2. 2018-02-27 22:16:07 +00:00
super_test.dart
superclass_test.dart
switch_case_test.dart
symbol_literal_test.dart
this_capture_test.dart
this_test.dart
throw_try_catch_test.dart
try_context_test.dart
try_finally_test.dart
type_args_regression_test.dart
types_test.dart Make strong mode the default under --preview-dart-2. 2018-02-27 22:16:07 +00:00