4// LICENSE file in the root directory of this source tree.
5
6▶//! Port of OutlineFunctions from TypeScript (`Optimization/OutlineFunctions.ts`).
7//!
8//! Extracts anonymous function expressions that do not close over any local
· · ·
8▶//! Extracts anonymous function expressions that do not close over any local
9//! variables into top-level outlined functions. The original instruction is
10//! replaced with a `LoadGlobal` referencing the outlined function's generated name.
· · ·
9▶//! variables into top-level outlined functions. The original instruction is
10//! replaced with a `LoadGlobal` referencing the outlined function's generated name.
11//!
· · ·
10▶//! replaced with a `LoadGlobal` referencing the outlined function's generated name.
11//!
12//! Conditional on `env.config.enable_function_outlining`.
· · ·
12▶//! Conditional on `env.config.enable_function_outlining`.
13
14use rustc_hash::FxHashSet;
+ 47 more matches in this file