Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit dfde969

Browse files
committed
Cleanup
1 parent 9d5c7f1 commit dfde969

File tree

10 files changed

+9
-35
lines changed

10 files changed

+9
-35
lines changed

src/jit/importer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19906,9 +19906,7 @@ void Compiler::impDevirtualizeCall(GenTreeCall* call,
1990619906

1990719907
// Look up the new call info.
1990819908
CORINFO_CALL_INFO derivedCallInfo;
19909-
eeGetCallInfo(&derivedResolvedToken, nullptr,
19910-
addVerifyFlag(CORINFO_CALLINFO_ALLOWINSTPARAM),
19911-
&derivedCallInfo);
19909+
eeGetCallInfo(&derivedResolvedToken, nullptr, addVerifyFlag(CORINFO_CALLINFO_ALLOWINSTPARAM), &derivedCallInfo);
1991219910

1991319911
// Update the call.
1991419912
call->gtCallMoreFlags &= ~GTF_CALL_M_VIRTSTUB_REL_INDIRECT;

src/tools/crossgen/crossgen.cpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum ReturnValues
3434
#define NumItems(s) (sizeof(s) / sizeof(s[0]))
3535

3636
STDAPI CreatePDBWorker(LPCWSTR pwzAssemblyPath, LPCWSTR pwzPlatformAssembliesPaths, LPCWSTR pwzTrustedPlatformAssemblies, LPCWSTR pwzPlatformResourceRoots, LPCWSTR pwzAppPaths, LPCWSTR pwzAppNiPaths, LPCWSTR pwzPdbPath, BOOL fGeneratePDBLinesInfo, LPCWSTR pwzManagedPdbSearchPath, LPCWSTR pwzPlatformWinmdPaths, LPCWSTR pwzDiasymreaderPath);
37-
STDAPI NGenWorker(LPCWSTR pwzFilename, DWORD dwFlags, LPCWSTR pwzPlatformAssembliesPaths, LPCWSTR pwzTrustedPlatformAssemblies, LPCWSTR pwzPlatformResourceRoots, LPCWSTR pwzAppPaths, LPCWSTR pwzOutputFilename=NULL, LPCWSTR pwzPlatformWinmdPaths=NULL, LPCWSTR pwzVersionBubbleAssemblyPaths=NULL, ICorSvcLogger *pLogger = NULL, LPCWSTR pwszCLRJITPath = nullptr);
37+
STDAPI NGenWorker(LPCWSTR pwzFilename, DWORD dwFlags, LPCWSTR pwzPlatformAssembliesPaths, LPCWSTR pwzTrustedPlatformAssemblies, LPCWSTR pwzPlatformResourceRoots, LPCWSTR pwzAppPaths, LPCWSTR pwzOutputFilename=NULL, LPCWSTR pwzPlatformWinmdPaths=NULL, ICorSvcLogger *pLogger = NULL, LPCWSTR pwszCLRJITPath = nullptr);
3838
void SetSvcLogger(ICorSvcLogger *pCorSvcLogger);
3939
void SetMscorlibPath(LPCWSTR wzSystemDirectory);
4040

@@ -422,8 +422,6 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
422422
LPCWSTR pwzAppNiPaths = nullptr;
423423
LPCWSTR pwzPlatformAssembliesPaths = nullptr;
424424
LPCWSTR pwzPlatformWinmdPaths = nullptr;
425-
// TODO Add Variable Num of cli arguments
426-
LPCWSTR pwzVersionBubbleAssemblyPaths = nullptr;
427425
StackSString wzDirectoryToStorePDB;
428426
bool fCreatePDB = false;
429427
bool fGeneratePDBLinesInfo = false;
@@ -474,7 +472,6 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
474472

475473
// By default, Crossgen will generate readytorun images unless /FragileNonVersionable switch is specified
476474
dwFlags |= NGENWORKER_FLAGS_READYTORUN;
477-
478475
while (argc > 0)
479476
{
480477
// Command-line parsing
@@ -533,6 +530,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
533530
else if (MatchParameter(*argv, W("LargeVersionBubble")))
534531
{
535532
dwFlags |= NGENWORKER_FLAGS_LARGEVERSIONBUBBLE;
533+
fLargeVersionBubbleSwitch = true;
536534
}
537535
#endif
538536
else if (MatchParameter(*argv, W("NoMetaData")))
@@ -599,14 +597,6 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
599597
{
600598
pwzPlatformAssembliesPaths = argv[1];
601599

602-
// skip path list
603-
argv++;
604-
argc--;
605-
}
606-
else if (MatchParameter(*argv, W("Version_Bubble_Assembly_Paths")) && (argc > 1))
607-
{
608-
pwzVersionBubbleAssemblyPaths = argv[1];
609-
610600
// skip path list
611601
argv++;
612602
argc--;
@@ -933,8 +923,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
933923
pwzPlatformResourceRoots,
934924
pwzAppPaths,
935925
pwzOutputFilename,
936-
pwzPlatformWinmdPaths,
937-
pwzVersionBubbleAssemblyPaths
926+
pwzPlatformWinmdPaths
938927
#if !defined(FEATURE_MERGE_JIT_AND_ENGINE)
939928
,
940929
NULL, // ICorSvcLogger

src/vm/ceeload.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,6 @@ class Module
23932393
CrstHolder ch(this->GetLookupTableCrst());
23942394
m_pMemberRefToDescHashTable->Insert(token, value);
23952395
}
2396-
// This call
23972396
void StoreMemberRef(mdMemberRef token, MethodDesc *value)
23982397
{
23992398
WRAPPER_NO_CONTRACT;

src/vm/readytoruninfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ PTR_ReadyToRunInfo ReadyToRunInfo::Initialize(Module * pModule, AllocMemTracker
455455
STANDARD_VM_CONTRACT;
456456

457457
PEFile * pFile = pModule->GetFile();
458-
// ?
459458
if (!IsReadyToRunEnabled())
460459
{
461460
// Log message is ignored in this case.

src/vm/readytoruninfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class ReadyToRunInfo
4343
NativeFormat::NativeArray m_methodDefEntryPoints;
4444
NativeFormat::NativeHashtable m_instMethodEntryPoints;
4545
NativeFormat::NativeHashtable m_availableTypesHashtable;
46-
// TODO Should this be a hash table?
4746
NativeFormat::NativeHashtable m_pMetaDataHashtable;
4847

4948
Crst m_Crst;

src/vm/zapsig.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,9 @@ Module *ZapSig::DecodeModuleFromIndexIfLoaded(Module *fromModule,
781781

782782

783783
TypeHandle ZapSig::DecodeType(Module *pEncodeModuleContext,
784-
Module *pInfoModule,
785-
PCCOR_SIGNATURE pBuffer,
786-
ClassLoadLevel level)
784+
Module *pInfoModule,
785+
PCCOR_SIGNATURE pBuffer,
786+
ClassLoadLevel level)
787787
{
788788
CONTRACTL
789789
{
@@ -879,6 +879,7 @@ MethodDesc *ZapSig::DecodeMethod(Module *pReferencingModule,
879879
//
880880
RID rid;
881881
IfFailThrow(sig.GetData(&rid));
882+
882883
if (methodFlags & ENCODE_METHOD_SIG_MemberRefToken)
883884
{
884885
if (thOwner.IsNull())
@@ -1201,7 +1202,6 @@ BOOL ZapSig::EncodeMethod(
12011202
// GetSvcLogger()->Printf(W("ReadyToRun: Method reference outside of current version bubble cannot be encoded\n"));
12021203
ThrowHR(E_FAIL);
12031204
}
1204-
//_ASSERTE(pReferencingModule == GetAppDomain()->ToCompilationDomain()->GetTargetModule());
12051205

12061206
methodToken = pResolvedToken->token;
12071207

src/zap/zapimage.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,6 @@ void ZapImage::Compile()
18331833
OutputInliningTableForReadyToRun();
18341834
OutputProfileDataForReadyToRun();
18351835
OutputManifestMetadataForReadyToRun();
1836-
18371836
}
18381837
else
18391838
#endif

src/zap/zapimport.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ ZapImport * ZapImportTable::GetExistingMethodHandleImport(CORINFO_METHOD_HANDLE
941941

942942
CORINFO_MODULE_HANDLE ZapImportTable::TryEncodeModule(CORCOMPILE_FIXUP_BLOB_KIND kind, CORINFO_MODULE_HANDLE module, SigBuilder * pSigBuilder)
943943
{
944-
// Use def tokens and module references?
945944
if (!GetCompileInfo()->IsInCurrentVersionBubble(module))
946945
module = GetImage()->GetModuleHandle();
947946

@@ -990,7 +989,6 @@ void ZapImportTable::EncodeMethod(CORCOMPILE_FIXUP_BLOB_KIND kind, CORINFO_METHO
990989
CORINFO_CLASS_HANDLE clsHandle = GetJitInfo()->getMethodClass(handle);
991990
CORINFO_MODULE_HANDLE referencingModule = GetJitInfo()->getClassModule(clsHandle);
992991
referencingModule = TryEncodeModule(kind, referencingModule, pSigBuilder);
993-
994992
GetCompileInfo()->EncodeMethod(referencingModule, handle, pSigBuilder, this, EncodeModuleHelper,
995993
pResolvedToken, pConstrainedResolvedToken, fEncodeUsingResolvedTokenSpecStreams);
996994
}
@@ -1847,7 +1845,6 @@ ZapImport * ZapImportTable::GetDynamicHelperCell(CORCOMPILE_FIXUP_BLOB_KIND kind
18471845
sigBuilder.AppendData(kind & ~CORINFO_HELP_READYTORUN_ATYPICAL_CALLSITE);
18481846

18491847
GetCompileInfo()->EncodeClass(m_pImage->GetModuleHandle(), handle, &sigBuilder, this, EncodeModuleHelper);
1850-
// CHANGE IT HERE
18511848
pImport->SetBlob(GetBlob(&sigBuilder));
18521849
}
18531850

src/zap/zapinfo.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,12 +1425,6 @@ CORINFO_MODULE_HANDLE ZapInfo::embedModuleHandle(CORINFO_MODULE_HANDLE handle,
14251425
{
14261426
_ASSERTE(ppIndirection != NULL);
14271427

1428-
//if (IsReadyToRunCompilation())
1429-
//{
1430-
// _ASSERTE(!"embedModuleHandle");
1431-
// ThrowHR(E_NOTIMPL);
1432-
//}
1433-
14341428
BOOL fHardbound = m_pImage->m_pPreloader->CanEmbedModuleHandle(handle);
14351429
if (fHardbound)
14361430
{

src/zap/zapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static bool s_fNGenNoMetaData;
3333
// Zapper Object instead of creating one on your own.
3434

3535

36-
STDAPI NGenWorker(LPCWSTR pwzFilename, DWORD dwFlags, LPCWSTR pwzPlatformAssembliesPaths, LPCWSTR pwzTrustedPlatformAssemblies, LPCWSTR pwzPlatformResourceRoots, LPCWSTR pwzAppPaths, LPCWSTR pwzOutputFilename=NULL, LPCWSTR pwzPlatformWinmdPaths=NULL, LPCWSTR pwzVersionBubbleAssemblyPaths=NULL, ICorSvcLogger *pLogger = NULL, LPCWSTR pwszCLRJITPath = nullptr)
36+
STDAPI NGenWorker(LPCWSTR pwzFilename, DWORD dwFlags, LPCWSTR pwzPlatformAssembliesPaths, LPCWSTR pwzTrustedPlatformAssemblies, LPCWSTR pwzPlatformResourceRoots, LPCWSTR pwzAppPaths, LPCWSTR pwzOutputFilename=NULL, LPCWSTR pwzPlatformWinmdPaths=NULL, ICorSvcLogger *pLogger = NULL, LPCWSTR pwszCLRJITPath = nullptr)
3737
{
3838
HRESULT hr = S_OK;
3939

0 commit comments

Comments
 (0)