}
else
{
- // Caller should have gauranteed that the LS is loaded.
+ // Caller should have guaranteed that the LS is loaded.
// If we're detaching, then don't throw because we don't care.
ThrowHR(CORDBG_E_NOTREADY);
}
}
else if (fAttached)
{
- // Caller should have gauranteed that the LS is loaded.
+ // Caller should have guaranteed that the LS is loaded.
// If we're detaching, then don't throw because we don't care.
ThrowHR(CORDBG_E_NOTREADY);
}
// NULL on failure, and sets unrecoverable error.
//
// Assumptions:
-// Caller gaurantees assembly is not already added.
+// Caller guarantees assembly is not already added.
// Called under the stop-go lock.
//
// Notes:
{
// The address for a regular static field isn't available yet
// How can this happen? Statics appear to get allocated during domain load.
- // There may be some lazieness or a race-condition involved.
+ // There may be some laziness or a race-condition involved.
fGotUnallocatedStatic = TRUE;
}
++count;
}
else
{
- // Caller gaurantees that we're not a class. And the check above guarantees we're not a value-type.
+ // Caller guarantees that we're not a class. And the check above guarantees we're not a value-type.
// So we're some sort of primitive, and thus we can determine size from the signature.
//
// @dbgtodo inspection - We didn't have this assert in Whidbey, and it's firing in vararg
}
}
- dprintf (3, ("enquing P #%Id(%Ix): %Ix. oldest: %Id, LO: %Ix, pre: %d",
+ dprintf (3, ("enqueuing P #%Id(%Ix): %Ix. oldest: %Id, LO: %Ix, pre: %d",
mark_stack_tos, &mark_stack_array[mark_stack_tos], plug, mark_stack_bos, last_object_in_last_plug, (save_pre_plug_info_p ? 1 : 0)));
mark& m = mark_stack_array[mark_stack_tos];
m.first = plug;
}
break;
- // Modifiers or depedant types
+ // Modifiers or dependent types
case ELEMENT_TYPE_PINNED :
case ELEMENT_TYPE_PTR :
case ELEMENT_TYPE_BYREF :
tlsDir->AddressOfIndex = VALPTR(tlsIndexOffset);
if(FAILED(hr=m_pCeeFileGen->AddSectionReloc(tlsDirSec, tlsDirOffset + offsetofAddressOfIndex, m_pGlobalDataSection, srRelocHighLow))) return(hr);
- // Set addres of callbacks chain
+ // Set address of callbacks chain
tlsDir->AddressOfCallBacks = VALPTR((DWORD)(DWORD_PTR)(PIMAGE_TLS_CALLBACK*)(size_t)(tlsDirOffset + sizeofdir));
if(FAILED(hr=m_pCeeFileGen->AddSectionReloc(tlsDirSec, tlsDirOffset + offsetofAddressOfCallBacks, tlsDirSec, srRelocHighLow))) return(hr);
case GT_NEG:
// We need to ensure that -x is evaluated before x or else
// we get burned while adjusting genFPstkLevel in x*-x where
- // the rhs x is the last use of the enregsitered x.
+ // the rhs x is the last use of the enregistered x.
//
// Even in the integer case we want to prefer to
// evaluate the side without the GT_NEG node, all other things
AcquireLock(&Lock);
/*
- The following set of operations is gauranteed to be atomic by virtue of the fact
- that InterLockedCompareExchange was able to gaurantee that the compare
+ The following set of operations is guaranteed to be atomic by virtue of the fact
+ that InterLockedCompareExchange was able to guarantee that the compare
and exchange operation on pLock was thread safe. If the same set of code was
executed without using InterlockedCompareExchange the code would fail most of
time.
BEGIN_DYNAMIC_HELPER_EMIT(16);
- // ldr x0, <lable>
+ // ldr x0, <label>
*(DWORD*)p = 0x58000040;
p += 4;
// byMDInternalRO::FindParamOfMethod and we will bail out.
//
// If it does not exist (return value CLDB_E_RECORD_NOTFOUND) or if it is found (S_OK),
- // we do not bother as the values would have come upon ensurin a valid parameter record
+ // we do not bother as the values would have come upon ensuring a valid parameter record
// list.
mdParamDef pdParam;
HRESULT hrValidParamList = pModule->GetMDImport()->FindParamOfMethod(mdEntry, 0, &pdParam);
// Write the 21 bits pc-relative page address into location.
INT64 targetPage = (INT64)target & 0xFFFFFFFFFFFFF000LL;
- INT64 lcoationPage = (INT64)location & 0xFFFFFFFFFFFFF000LL;
- INT64 relPage = (INT64)(targetPage - lcoationPage);
+ INT64 locationPage = (INT64)location & 0xFFFFFFFFFFFFF000LL;
+ INT64 relPage = (INT64)(targetPage - locationPage);
INT32 imm21 = (INT32)(relPage >> 12) & 0x1FFFFF;
PutArm64Rel21((UINT32 *)location, imm21);
}