MCPcopy
hub / github.com/rollup/rollup / deoptimizeCache

Function deoptimizeCache

src/ast/nodes/shared/CallExpressionBase.ts:57–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 deoptimizeCache(): void {
58 if (this.returnExpression?.[0] !== UNKNOWN_EXPRESSION) {
59 this.returnExpression = UNKNOWN_RETURN_EXPRESSION;
60 const { deoptimizableDependentExpressions, expressionsToBeDeoptimized } = this;
61 this.expressionsToBeDeoptimized = EMPTY_SET;
62 this.deoptimizableDependentExpressions = EMPTY_ARRAY as unknown as DeoptimizableEntity[];
63 for (const expression of deoptimizableDependentExpressions) {
64 expression.deoptimizeCache();
65 }
66 for (const expression of expressionsToBeDeoptimized) {
67 expression.deoptimizePath(UNKNOWN_PATH);
68 }
69 }
70 }
71
72 deoptimizePath(path: ObjectPath): void {
73 if (

Callers

nothing calls this directly

Calls 2

deoptimizeCacheMethod · 0.65
deoptimizePathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…