DeadCodeElimination — react Architecture
Pruning blocks that are logically impossible to reach
Entity Profile
Dependency Diagram
graph TD subdomain_OptimizationPasses_DeadCodeElimination["DeadCodeElimination"] f508a9e8_4a54_a1b9_4e6e_91ef70e24c1e["PruneHoistedContexts.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> f508a9e8_4a54_a1b9_4e6e_91ef70e24c1e 09009a0e_b03b_15af_d21f_ebd837e3e0f7["AssertWellFormedBreakTargets.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 09009a0e_b03b_15af_d21f_ebd837e3e0f7 54a1e8c9_c819_914c_cd39_5c445c46e639["DeadCodeElimination.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 54a1e8c9_c819_914c_cd39_5c445c46e639 ccdefd56_943b_4a93_dbef_8990d03b145e["AlignObjectMethodScopes.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> ccdefd56_943b_4a93_dbef_8990d03b145e d625ad1a_bef9_abdc_5a5b_206000a43505["CodegenReactiveFunction.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> d625ad1a_bef9_abdc_5a5b_206000a43505 9deec7b5_c4fb_24c9_f7fb_2d8a554df1d5["NameAnonymousFunctions.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 9deec7b5_c4fb_24c9_f7fb_2d8a554df1d5 bd7ced4f_6adc_82b7_2fba_e09a960a312b["CollectReactiveIdentifiers.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> bd7ced4f_6adc_82b7_2fba_e09a960a312b aac8f5c4_3035_6882_3cce_29dcc1f50bdf["InstructionReordering.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> aac8f5c4_3035_6882_3cce_29dcc1f50bdf 1c1d2870_5d9c_dd31_b440_eea25bdb1993["OutlineFunctions.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 1c1d2870_5d9c_dd31_b440_eea25bdb1993 758e31d1_4a18_4410_af0e_725a41a44a1c["PropagateEarlyReturns.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 758e31d1_4a18_4410_af0e_725a41a44a1c a8aaee06_93f0_62a2_d690_ae72c88792ed["LowerContextAccess.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> a8aaee06_93f0_62a2_d690_ae72c88792ed a562462f_3d4f_4cc7_635e_915a838082fe["PruneMaybeThrows.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> a562462f_3d4f_4cc7_635e_915a838082fe 9b347dd1_9aab_754c_f852_b5e786bd16df["OptimizeForSSR.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 9b347dd1_9aab_754c_f852_b5e786bd16df 8440bae5_4f74_17a0_f8cb_77d6c85a8483["PromoteUsedTemporaries.ts"] subdomain_OptimizationPasses_DeadCodeElimination --> 8440bae5_4f74_17a0_f8cb_77d6c85a8483 style subdomain_OptimizationPasses_DeadCodeElimination fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- _printNode()
- addLoadGlobalInstrId()
- addLoadLocalInstr()
- append()
- areEqualDependencies()
- assertWellFormedBreakTargets()
- codegenArrayPattern()
- codegenBlock()
- codegenDependency()
- codegenFunction()
- codegenInstructionNullable()
- codegenInstructionValue()
- codegenInstructionValueToExpression()
- codegenJsxElement()
- codegenLabel()
- codegenPlace()
- codegenPlaceToExpression()
- codegenValue()
- collectProps()
- computeMemoizedIdentifiers()
- constructor()
- constructor()
- constructor()
- constructor()
- constructor()
- constructor()
- convertMemberExpressionToJsx()
- convertParameter()
- convertValueToExpression()
- count()
- createHookGuard()
- createOldToNewPropsMapping()
- createPropsProperties()
- createSymbolProperty()
- deadCodeElimination()
- deleteInstructions()
- emit()
- emitOutlinedFn()
- emitSelectorFn()
- emitUpdatedJsx()
- ensureNoMoreFireUses()
- enter()
- findBlocksWithBackEdges()
- findScopesToMerge()
- getArrayExpression()
- getContextKeys()
- getContinueTarget()
- handlelValue()
- hasBackEdge()
- hasDeclared()
- inRange()
- inUseEffectLambda()
- indented()
- instructionMayThrow()
- instructionReordering()
- isCreateOnlyHook()
- isIdOrNameUsed()
- isKnownEventHandler()
- isScheduled()
- isStableRefType()
- lowerContextAccess()
- makeCallUseFireInstruction()
- mapTerminalBlocks()
- mergeLocation()
- nameAnonymousFunctions()
- nextCacheIndex()
- optimizeForSSR()
- outlineFunctions()
- outlineJsxImpl()
- populateMacroTags()
- print()
- printDependency()
- printDependencyComment()
- promoteUsedTemporaries()
- propagateEarlyReturns()
- pruneHoistedContexts()
- pruneMaybeThrows()
- pushError()
- renameVariablesImpl()
- reorderBlock()
- replaceFireFunctions()
- rewriteInstruction()
- schedule()
- scheduleCatchHandler()
- transformInstruction()
- transformInstruction()
- transformInstruction()
- transformInstruction()
- transformTerminal()
- traverseBlock()
- traverseBlock()
- traverseValue()
- traverseValue()
- unschedule()
- valueBlockResultToSequence()
- visitBlock()
- visitBreak()
- visitInstruction()
- visitInstruction()
- visitInstruction()
- visitLValue()
- visitLValue()
- visitLValue()
- visitOperands()
- visitPlace()
- visitPlace()
- visitPlace()
- visitTerminal()
- visitTerminal()
- visitTerminal()
- visitValue()
- visitValue()
- visitValue()
- visitValueBlock()
- visitValueBlockTerminal()
- visitValueForMemoization()
- wrapCacheDep()
- write()
Source Files
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AlignObjectMethodScopes.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertWellFormedBreakTargets.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/DeadCodeElimination.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/InstructionReordering.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/LowerContextAccess.ts
- compiler/packages/babel-plugin-react-compiler/src/Transform/NameAnonymousFunctions.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/OptimizeForSSR.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/OutlineFunctions.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/PruneMaybeThrows.ts
Source
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AlignObjectMethodScopes.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertWellFormedBreakTargets.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/DeadCodeElimination.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/InstructionReordering.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/LowerContextAccess.ts
- compiler/packages/babel-plugin-react-compiler/src/Transform/NameAnonymousFunctions.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/OptimizeForSSR.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/OutlineFunctions.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts
- compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts
- compiler/packages/babel-plugin-react-compiler/src/Optimization/PruneMaybeThrows.ts
Frequently Asked Questions
What is the DeadCodeElimination subdomain?
DeadCodeElimination is a subdomain in the react codebase, part of the OptimizationPasses domain. Pruning blocks that are logically impossible to reach It contains 14 source files.
Which domain does DeadCodeElimination belong to?
DeadCodeElimination belongs to the OptimizationPasses domain.
What functions are in DeadCodeElimination?
The DeadCodeElimination subdomain contains 118 function(s): _printNode, addLoadGlobalInstrId, addLoadLocalInstr, append, areEqualDependencies, assertWellFormedBreakTargets, codegenArrayPattern, codegenBlock, and 110 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free