0136d96a96
This fixes DDC to work when CFE's constants flag is enabled. The fixes are primarily due to how CFE inlines constants, and how it handles "unevaluated constants" (these arise from modular compilation and outline kernel files). Specifically this CL addresses the following issues: - private names now work across modules (landed in this CL: https://dart-review.googlesource.com/c/sdk/+/98926) - correctly emit tearoffs regardless of how they're represeted (constant or StaticGet) - correctly recognize the internal SDK and JS interop annotations, regardless of how they're represented (constants or expressions) - change how DDC represents `undefined` in its internal SDK, so its detected regardless of constant inlining - emit numeric constants as integers in JS when possible Change-Id: I0fbda9d24578075f655ea945ed1b2ceed124af48 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99240 Reviewed-by: Mark Zhou <markzipan@google.com> Commit-Queue: Jenny Messerly <jmesserly@google.com>