Skip to content

Commit f20fb03

Browse files
committed
[MERGE #5843 @github-john-doe] Typos
Merge pull request #5843 from github-john-doe:typos
2 parents 2dd8241 + c9700f8 commit f20fb03

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

lib/Backend/Inline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ IR::Instr * Inline::TryGetCallbackDefInstr(StackSym * callbackSym)
10861086

10871087
defInstr = nullptr;
10881088

1089-
// find the appropraite argOut from the call site.
1089+
// find the appropriate argOut from the call site.
10901090
callingInstr->IterateArgInstrs([&](IR::Instr* argInstr) {
10911091
StackSym *argSym = argInstr->GetDst()->AsSymOpnd()->m_sym->AsStackSym();
10921092
if (argSym->GetArgSlotNum() - 1 == argIndex)

lib/Backend/arm64/LowerMD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ class ARM64StackLayout
10321032
BitVector SavedRegisters() const { return m_savedRegisters; }
10331033
BitVector SavedDoubles() const { return m_savedDoubles; }
10341034

1035-
// Locals area sits right after space allocated for argments
1035+
// Locals area sits right after space allocated for arguments
10361036
ULONG LocalsOffset() const { return this->m_argSlotCount * MachRegInt; }
10371037
ULONG LocalsSize() const { return this->m_localsArea; }
10381038

lib/Common/Memory/HeapBucket.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ The sequence of things we do to allow allocations during concurrent sweep is des
14701470
1. At the beginning of concurrrent sweep we decide if we will benefit from allowing allocations during concurrent
14711471
sweep for any of the buckets. If there is at-least one bucket for which we think we will benefit we will turn on
14721472
allocations during concurrent sweep. Once turned on we will attempt to enable allocations during concurrent sweep
1473-
for all supported buckets (i.e. small/medium, normal/leaf, non-finalizable buckets.write barrrier bickets are supported
1473+
for all supported buckets (i.e. small/medium, normal/leaf, non-finalizable buckets.write barrier buckets are supported
14741474
as well.).
14751475
2. If allocations are turned on during concurrent sweep, we will see if there are any allocable blocks in the
14761476
heapBlockList after the nextAllocableBlockHead. If we find any such blocks, we move them to a SLIST that the

lib/Runtime/Base/FunctionBody.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5265,7 +5265,7 @@ namespace Js
52655265
OUTPUT_VERBOSE_TRACE(Js::DebuggerPhase, _u("Regenerate Due To Debug Mode: function %s (%s) from script context %p\n"),
52665266
this->GetDisplayName(), this->GetDebugNumberSet(debugStringBuffer), m_scriptContext);
52675267

5268-
this->UnlockCounters(); // asuming background jit is stopped and allow the counter setters access again
5268+
this->UnlockCounters(); // assuming background jit is stopped and allow the counter setters access again
52695269
#endif
52705270
}
52715271
#endif

lib/Runtime/Language/JavascriptOperators.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8872,7 +8872,7 @@ using namespace Js;
88728872
if (isSetAccessorsSuccess)
88738873
{
88748874
tempDescriptor.SetAttributes(preserveFromObject, PropertyConfigurable | PropertyEnumerable);
8875-
forceSetAttributes = true; // use SetAttrbiutes with 'force' as default attributes in type system are different from ES5.
8875+
forceSetAttributes = true; // use SetAttributes with 'force' as default attributes in type system are different from ES5.
88768876
mergeDescriptors = true;
88778877
}
88788878
}

lib/Runtime/Types/SimpleDictionaryTypeHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2501,7 +2501,7 @@ namespace Js
25012501
if (IsNotExtensibleSupported)
25022502
{
25032503
// When adding a new property && we are not extensible:
2504-
// - if (!objectArray) => do not even get into creating new objectArrray
2504+
// - if (!objectArray) => do not even get into creating new objectArray
25052505
// (anyhow, if we were to create one, we would need one supporting non-extensible, i.e. ES5Array).
25062506
// - else the array was created earlier and will handle the operation
25072507
// (it would be non-extensible ES5 array as array must match object's IsExtensible).

pal/src/debug/debug.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1257,23 +1257,23 @@ DBGAttachProcess(
12571257
DWORD processId
12581258
)
12591259
{
1260-
int attchmentCount;
1260+
int attachmentCount;
12611261
int savedErrno;
12621262
#if HAVE_PROCFS_CTL
12631263
int fd;
12641264
char ctlPath[1024];
12651265
#endif // HAVE_PROCFS_CTL
12661266

1267-
attchmentCount =
1267+
attachmentCount =
12681268
DBGSetProcessAttached(pThread, hProcess, DBG_ATTACH);
12691269

1270-
if (attchmentCount == -1)
1270+
if (attachmentCount == -1)
12711271
{
12721272
/* Failed to set the process as attached */
12731273
goto EXIT;
12741274
}
12751275

1276-
if (attchmentCount == 1)
1276+
if (attachmentCount == 1)
12771277
{
12781278
#if HAVE_PROCFS_CTL
12791279
struct timespec waitTime;

pal/src/file/pal_file.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ InternalCanonicalizeRealPath
242242
exist, this is a straight thunk through to realpath(). On other
243243
systems, we remove the last path component, then call realpath().
244244

245-
cch is the size of lpBuffer and has to be atleast PATH_MAX (since
246-
realpath() requires the buffer to be atleast PATH_MAX).
245+
cch is the size of lpBuffer and has to be at least PATH_MAX (since
246+
realpath() requires the buffer to be at least PATH_MAX).
247247
--*/
248248
PAL_ERROR
249249
CorUnix::InternalCanonicalizeRealPath(LPCSTR lpUnixPath, LPSTR lpBuffer, DWORD cch)
@@ -484,7 +484,7 @@ CorUnix::InternalCreateFile(
484484

485485
const char* szNonfilePrefix = "\\\\.\\";
486486
LPSTR lpFullUnixPath = NULL;
487-
DWORD cchFullUnixPath = PATH_MAX+1; // InternalCanonicalizeRealPath requires this to be atleast PATH_MAX
487+
DWORD cchFullUnixPath = PATH_MAX+1; // InternalCanonicalizeRealPath requires this to be at least PATH_MAX
488488

489489
/* for dwShareMode only three flags are accepted */
490490
if ( dwShareMode & ~(FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE) )
@@ -715,7 +715,7 @@ CorUnix::InternalCreateFile(
715715
// the PAL, other PALs will ignore these locks. In order to support a basic level of cross
716716
// process locking, we'll use advisory locks. FILE_SHARE_NONE implies a exclusive lock on the
717717
// file and all other modes use a shared lock. While this is not as granular as Windows,
718-
// you can atleast implement a lock file using this.
718+
// you can at least implement a lock file using this.
719719
lock_mode = (dwShareMode == 0 /* FILE_SHARE_NONE */) ? LOCK_EX : LOCK_SH;
720720

721721
if(flock(filed, lock_mode | LOCK_NB) != 0)
@@ -1177,7 +1177,7 @@ DeleteFileA(
11771177
int length;
11781178
PathCharString lpUnixFileNamePS;
11791179
LPSTR lpFullUnixFileName = NULL;
1180-
DWORD cchFullUnixFileName = MAX_LONGPATH+1;// InternalCanonicalizeRealPath requires this to be atleast PATH_MAX
1180+
DWORD cchFullUnixFileName = MAX_LONGPATH+1;// InternalCanonicalizeRealPath requires this to be at least PATH_MAX
11811181

11821182
PERF_ENTRY(DeleteFileA);
11831183
ENTRY("DeleteFileA(lpFileName=%p (%s))\n", lpFileName?lpFileName:"NULL", lpFileName?lpFileName:"NULL");

pal/src/map/map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ static INT MAPFileMapToMmapFlags( DWORD flags )
17191719
else if ( FILE_MAP_WRITE == flags )
17201720
{
17211721
TRACE( "FILE_MAP_WRITE\n" );
1722-
/* The limitation of x86 archetecture
1722+
/* The limitation of x86 architecture
17231723
means you cant have writable but not readable
17241724
page. In Windows maps of FILE_MAP_WRITE can still be
17251725
read from. */

pal/src/objmgr/shmobject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ CSharedMemoryObject::InitializeFromExistingSharedData(
195195
// When we're being called on the duplicate handle path the passed
196196
// in object attributes likely won't have an object name in it.
197197
// If there is an object name in the shared data place that in the
198-
// object attributs so that the constructed object has a local copy
198+
// object attributes so that the constructed object has a local copy
199199
// of the name
200200
//
201201

0 commit comments

Comments
 (0)