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

Method deoptimizeCache

src/ast/nodes/MemberExpression.ts:205–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 deoptimizeCache(): void {
206 if (this.propertyKey === this.dynamicPropertyKey) return;
207 const { expressionsToBeDeoptimized, object } = this;
208 this.expressionsToBeDeoptimized = EMPTY_ARRAY as unknown as DeoptimizableEntity[];
209 this.dynamicPropertyKey = this.propertyKey;
210 object.deoptimizePath(UNKNOWN_PATH);
211 if (this.included) {
212 object.includePath(UNKNOWN_PATH, createInclusionContext());
213 }
214 for (const expression of expressionsToBeDeoptimized) {
215 expression.deoptimizeCache();
216 }
217 }
218
219 deoptimizePath(path: ObjectPath): void {
220 if (path.length === 0) this.disallowNamespaceReassignment();

Callers

nothing calls this directly

Calls 4

createInclusionContextFunction · 0.90
deoptimizePathMethod · 0.65
includePathMethod · 0.65
deoptimizeCacheMethod · 0.65

Tested by

no test coverage detected