mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[compiler][ez] Remove unused param (#31376)
This commit is contained in:
parent
aded0ef831
commit
02c0e824e4
|
|
@ -8,7 +8,6 @@
|
||||||
import {isValidIdentifier} from '@babel/types';
|
import {isValidIdentifier} from '@babel/types';
|
||||||
import {CompilerError} from '../CompilerError';
|
import {CompilerError} from '../CompilerError';
|
||||||
import {
|
import {
|
||||||
Environment,
|
|
||||||
GotoVariant,
|
GotoVariant,
|
||||||
HIRFunction,
|
HIRFunction,
|
||||||
IdentifierId,
|
IdentifierId,
|
||||||
|
|
@ -130,7 +129,7 @@ function applyConstantPropagation(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const instr = block.instructions[i]!;
|
const instr = block.instructions[i]!;
|
||||||
const value = evaluateInstruction(fn.env, constants, instr);
|
const value = evaluateInstruction(constants, instr);
|
||||||
if (value !== null) {
|
if (value !== null) {
|
||||||
constants.set(instr.lvalue.identifier.id, value);
|
constants.set(instr.lvalue.identifier.id, value);
|
||||||
}
|
}
|
||||||
|
|
@ -223,7 +222,6 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null {
|
||||||
}
|
}
|
||||||
|
|
||||||
function evaluateInstruction(
|
function evaluateInstruction(
|
||||||
env: Environment,
|
|
||||||
constants: Constants,
|
constants: Constants,
|
||||||
instr: Instruction,
|
instr: Instruction,
|
||||||
): Constant | null {
|
): Constant | null {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user