4b9c7c05d4
FunctionTearOff node represents a tear-off of the 'call' method of a Function, so it is basically a no-op: FunctionTearOff(receiver) == receiver So we can remove this node early, during lowering transformation on kernel AST and clean up handling of FunctionTearOff nodes from the VM and dart2wasm compilation pipelines. TEST=ci Change-Id: Ia1500a066a0261076162e018ff0ab502258f606f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325924 Reviewed-by: Ömer Ağacan <omersa@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>