Files
sdk/pkg/dart2wasm
Martin Kustermann 28f200b97d [dart2wasm] Calculate element stride for class id table and target table separately
It reduces e main module by around -0.3% compressed/uncompressed.

The dynamic calls use 2 tables. One of them stores class ids and one
stores targets. We can compute the table initialization for these two
tables independently.

The targets table may contain different targets but the class ids may
still be consecutive and therefore allow a larger stride which may move
initialization from element section to a loop in the #start function.

Change-Id: Ief5415f035ce1b854aecaa635a5e916938217b8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/501420
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2026-05-08 00:46:52 -07:00
..
2026-03-19 01:25:57 -07:00