dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.28k stars 1.58k forks source link

[ddc] Handle deoptimized code patterns in compiler_new.dart after generational diffing is implemented #57049

Open Markzipan opened 2 weeks ago

Markzipan commented 2 weeks ago

We've been emitting less optimal code to maintain compilation output consistency between hot reloaded and non-hot-reloaded code. However, certain core language features (constants, etc.) may require us to perform custom cross-generation diffing. In the advent of a diffing mechanism, we should un-deoptimize certain code patterns in compiler_new.dart: