Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parallel
Browse files Browse the repository at this point in the history
kdy1 committed Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
1 parent cd6607b commit 5f086e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
Original file line number Diff line number Diff line change
@@ -616,31 +616,31 @@ impl Visit for Analyzer<'_> {
}

fn visit_opt_vec_expr_or_spreads(&mut self, n: &[Option<ExprOrSpread>]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_prop_or_spreads(&mut self, n: &[PropOrSpread]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_expr_or_spreads(&mut self, n: &[ExprOrSpread]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_exprs(&mut self, n: &[Box<Expr>]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_stmts(&mut self, n: &[Stmt]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_module_items(&mut self, n: &[ModuleItem]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}

fn visit_var_declarators(&mut self, n: &[VarDeclarator]) {
self.visit_par(cpu_count(), n);
self.visit_par(cpu_count() * 8, n);
}
}

0 comments on commit 5f086e2

Please sign in to comment.