Files
sdk/sdk
Martin Kustermann bc76743c0f [dart2wasm] Move canonicalization of symbols to one place
Only in `Function.apply` we have the problem of determining
the order of named parameters for calling the closure. In all
other cases, the compiler can ensure the caller and callee
agree on the order.

There's one place where we determine this order. That place
can also be used to swap out user-provided `new Symbol()`s that
were passed to `Function.apply` with the canonicalized
`const Symbol()` instances the compiler uses for the
closure functions.

Doing so allows us to use `identical()` for symbol comparisons
everywhere else in the system.

Change-Id: Ib9833e708ba197c8b9ef18ef4bf9e7a64bdf9a40
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419201
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2025-04-01 04:28:30 -07:00
..
2022-02-14 14:06:34 +00:00