1 write to _cache
ILCompiler.ReadyToRun (1)
TypeSystem\Mutable\MutableModule.cs (1)
358
_cache
= new Cache(this, assemblyName, assemblyFlags, publicKeyArray, version, hashAlgorithm, moduleToIndex);
22 references to _cache
ILCompiler.ReadyToRun (22)
TypeSystem\Mutable\MutableModule.cs (22)
315
lock (_mutableModule.
_cache
)
320
if (_mutableModule.
_cache
.ExistingEntities.TryGetValue(value, out result))
325
if (_mutableModule.
_cache
._reader != null)
327
_mutableModule.
_cache
.ResetEmitter();
333
var handle = HandleGenerationFunction(_mutableModule.
_cache
._currentBinaryEmitter, value);
334
_mutableModule.
_cache
.ExistingEntities.Add(value, handle);
335
_mutableModule.
_cache
.Entities.Add(handle, value);
336
_mutableModule.
_cache
._values.Add((_cacheIndex, value));
359
TryGetHandle =
_cache
.CreateCacheFunc<TypeSystemEntity>(GetHandleForTypeSystemEntity);
360
TryGetStringHandle =
_cache
.CreateCacheFunc<string>(GetUserStringHandle);
361
TryGetAssemblyRefHandle =
_cache
.CreateCacheFunc<AssemblyNameInfo>(GetAssemblyRefHandle);
399
lock (
_cache
)
401
if (
_cache
.ExistingEntities.TryGetValue(tse, out var handle))
403
var blob =
_cache
.MetadataBlob;
404
if (
_cache
.ExistingEntities.TryGetValue(tse, out handle))
413
public MetadataReader MetadataReader =>
_cache
.Reader;
414
public byte[] MetadataBlob =>
_cache
.MetadataBlob;
438
lock(
_cache
)
440
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))
447
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out result))
458
lock(
_cache
)
460
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))