1 write to _cache
ILCompiler.ReadyToRun (1)
TypeSystem\Mutable\MutableModule.cs (1)
311
_cache
= new Cache(this, assemblyName, assemblyFlags, publicKeyArray, version, hashAlgorithm, moduleToIndex);
22 references to _cache
ILCompiler.ReadyToRun (22)
TypeSystem\Mutable\MutableModule.cs (22)
268
lock (_mutableModule.
_cache
)
273
if (_mutableModule.
_cache
.ExistingEntities.TryGetValue(value, out result))
278
if (_mutableModule.
_cache
._reader != null)
280
_mutableModule.
_cache
.ResetEmitter();
286
var handle = HandleGenerationFunction(_mutableModule.
_cache
._currentBinaryEmitter, value);
287
_mutableModule.
_cache
.ExistingEntities.Add(value, handle);
288
_mutableModule.
_cache
.Entities.Add(handle, value);
289
_mutableModule.
_cache
._values.Add((_cacheIndex, value));
312
TryGetHandle =
_cache
.CreateCacheFunc<TypeSystemEntity>(GetHandleForTypeSystemEntity);
313
TryGetStringHandle =
_cache
.CreateCacheFunc<string>(GetUserStringHandle);
314
TryGetAssemblyRefHandle =
_cache
.CreateCacheFunc<AssemblyNameInfo>(GetAssemblyRefHandle);
352
lock (
_cache
)
354
if (
_cache
.ExistingEntities.TryGetValue(tse, out var handle))
356
var blob =
_cache
.MetadataBlob;
357
if (
_cache
.ExistingEntities.TryGetValue(tse, out handle))
366
public MetadataReader MetadataReader =>
_cache
.Reader;
367
public byte[] MetadataBlob =>
_cache
.MetadataBlob;
391
lock(
_cache
)
393
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))
400
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out result))
411
lock(
_cache
)
413
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))