Skip to content

Commit 2f70be8

Browse files
committedOct 8, 2018
[MERGE #5754 @github-john-doe] Typos
Merge pull request #5754 from github-john-doe:typos
2 parents 541e184 + ac64899 commit 2f70be8

10 files changed

+13
-13
lines changed
 

‎lib/Backend/GlobOpt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17658,7 +17658,7 @@ void GlobOpt::PRE::RemoveOverlyOptimisticInitialValues(Loop * loop)
1765817658
{
1765917659
BasicBlock * landingPad = loop->landingPad;
1766017660

17661-
// For a property sym whose obj ptr sym wasn't live in the landing pad, we can optmistically (if the obj ptr sym was
17661+
// For a property sym whose obj ptr sym wasn't live in the landing pad, we can optimistically (if the obj ptr sym was
1766217662
// single def) insert an initial value in the landing pad, with the hope that PRE could make the obj ptr sym live.
1766317663
// But, if PRE couldn't make the obj ptr sym live, we need to clear the value for the property sym from the landing pad
1766417664

‎lib/Common/Memory/LargeHeapBlock.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ LargeHeapBlock::ScanInitialImplicitRoots(Recycler * recycler)
11131113
size_t objectSize = header->objectSize;
11141114
// trim off the trailing part which is not a pointer
11151115
objectSize = HeapInfo::RoundObjectSize(objectSize);
1116-
if (objectSize > 0) // otherwize the object total size is less than a pointer size
1116+
if (objectSize > 0) // otherwise the object total size is less than a pointer size
11171117
{
11181118
recycler->ScanObjectInlineInterior((void **)objectAddress, objectSize);
11191119
}
@@ -1170,7 +1170,7 @@ LargeHeapBlock::ScanNewImplicitRoots(Recycler * recycler)
11701170
size_t objectSize = header->objectSize;
11711171
// trim off the trailing part which is not a pointer
11721172
objectSize = HeapInfo::RoundObjectSize(objectSize);
1173-
if (objectSize > 0) // otherwize the object total size is less than a pointer size
1173+
if (objectSize > 0) // otherwise the object total size is less than a pointer size
11741174
{
11751175
recycler->ScanObjectInlineInterior((void **)objectAddress, objectSize);
11761176
}
@@ -1321,7 +1321,7 @@ LargeHeapBlock::RescanOnePage(Recycler * recycler)
13211321
objectSize = HeapInfo::RoundObjectSize(objectSize);
13221322
}
13231323
#endif
1324-
if (objectSize > 0) // otherwize the object total size is less than a pointer size
1324+
if (objectSize > 0) // otherwise the object total size is less than a pointer size
13251325
{
13261326
bool noOOMDuringMark = true;
13271327
#ifdef RECYCLER_VISITED_HOST

‎lib/Runtime/Base/ThreadContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ ThreadContext::UncheckedAddPropertyId(JsUtil::CharacterBuffer<WCHAR> const& prop
10051005
{
10061006
if(this->TTDContext->GetActiveScriptContext() != nullptr && this->TTDContext->GetActiveScriptContext()->ShouldPerformReplayAction())
10071007
{
1008-
//We reload all properties that occour in the trace so they only way we get here in TTD mode is:
1008+
//We reload all properties that occur in the trace so they only way we get here in TTD mode is:
10091009
//(1) if the program is creating a new symbol (which always gets a fresh id) and we should recreate it or
10101010
//(2) if it is forcing arguments in debug parse mode (instead of regular which we recorded in)
10111011
Js::PropertyId propertyId = Js::Constants::NoProperty;

‎lib/Runtime/Library/BoundFunction.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ namespace Js
120120
{
121121
if (args.HasNewTarget())
122122
{
123-
// target has an overriden new target make a new object from the newTarget
123+
// target has an overridden new target make a new object from the newTarget
124124
Var newTargetVar = args.GetNewTarget();
125125
AssertOrFailFastMsg(JavascriptOperators::IsConstructor(newTargetVar), "newTarget must be a constructor");
126126
RecyclableObject* newTarget = UnsafeVarTo<RecyclableObject>(newTargetVar);
@@ -150,7 +150,7 @@ namespace Js
150150
}
151151
else
152152
{
153-
// target is a proxy without an overriden new target
153+
// target is a proxy without an overridden new target
154154
// give nullptr - FunctionCallTrap will make a new object
155155
args.Values[0] = newVarInstance;
156156
}

‎lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ DEFINE_ISXLOCALEAVAILABLE(PR, uloc)
11731173
hr == S_OK && unicodeCollation16Len == unicodeCollationLen && unicodeCollation16Len < MaxCharCount,
11741174
"Unicode collation char16 conversion was unsuccessful"
11751175
);
1176-
// i + 1 to not ovewrite leading null element
1176+
// i + 1 to not overwrite leading null element
11771177
ret->SetItem(i + 1, JavascriptString::NewWithBuffer(
11781178
unicodeCollation16,
11791179
unicodeCollation16Len,

‎lib/Runtime/Types/DynamicObjectPropertyEnumerator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ namespace Js
9999
return false;
100100
}
101101

102-
// Reload the type after EnsureObjecteReady
102+
// Reload the type after EnsureObjectReady
103103
type = object->GetDynamicType();
104104
if (!type->PrepareForTypeSnapshotEnumeration())
105105
{

‎pal/src/cruntime/filecrt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ CorUnix::InternalFwrite(
547547

548548
nWrittenBytes = fwrite(pvBuffer, nSize, nCount, f);
549549

550-
// Make sure no error ocurred.
550+
// Make sure no error occurred.
551551
if ( nWrittenBytes < nCount )
552552
{
553553
// Set the FILE* error code

‎pal/src/cruntime/misc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ void MiscUnsetenv(const char *name)
555555
if (memcmp(name, palEnvironment[i], length) == 0)
556556
{
557557
// Remove this one. Don't free it, though, since
558-
// there might be oustanding references to it that
558+
// there might be outstanding references to it that
559559
// were acquired via getenv. This is an
560560
// unavoidable memory leak.
561561
for(j = i + 1; palEnvironment[j] != NULL; j++) { }

‎pal/src/misc/dbgmsg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static BOOL DBG_get_indent(DBG_LEVEL_ID level, const char *format,
758758
Function :
759759
DBG_change_entrylevel
760760
761-
retrieve current ENTRY nesting level and [optionnally] modify it
761+
retrieve current ENTRY nesting level and [optionally] modify it
762762
763763
Parameters :
764764
int new_level : value to which the nesting level must be set, or -1

‎pal/src/synchmgr/synchmanager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2997,7 +2997,7 @@ namespace CorUnix
29972997

29982998
Unregisters a process object currently monitored by the worker thread
29992999
(typically called if the wait timed out before the process exited, or
3000-
if the wait was a normal (i.e. non wait-all) wait that involved othter
3000+
if the wait was a normal (i.e. non wait-all) wait that involved other
30013001
objects, and another object has been signaled).
30023002
--*/
30033003
PAL_ERROR CPalSynchronizationManager::UnRegisterProcessForMonitoring(

0 commit comments

Comments
 (0)
Please sign in to comment.