Skip to content

Commit 2b76534

Browse files
committed
Fix various spelling errors.
Misspellings of: * a..z (the English alphabet sequence a..z with one pair of letters transposed) * actual * algorithm * amount * although * argument * array * as * assignment * auxiliary * availability * avoiding * because * beginning * built * canonicalization * canonical * catch * causes * collection * committed * compare * comparison * compilation * completed * concurrent * conditions * constructor * contain * context * contiguous * conversion * convert * corresponding * counterparts * coverage * covered * current * declaration * default * deferred * delimiters * dependencies * descriptions * descriptor * diagonal * dictionary * differently * different * disposed * dynamically * dynamic * earlier * emitting * empty * emulated * encodable * enough * entrypoint * enumerable * environment * evaluate * everything * exactly * exception * exercised * existing * expandos * explicitly * extension * floatarray * for-in * foreign * function * generate * generator * granularity * identical * implemented * implicit * inclusive * index * indicate * indicating * infinity * initializer * initial * injection * inlinable * inline * insertion * instance * instantiate * interior * interpreter * interpret * invalidation * invoke * iterable * iterator * javascript * label * lambda * lane * language * left * length * manager * maximum * member * memory * message * metadata * necessarily * occurrence * offset * offsets * of lit (two word sequence) * ofobj * ofreturn * optimization * original * outer * output * overridable * overridden * owning * parameter * participate * perlargest * physical * pollute * polyfill * polymorphic * popping * possibility * preceded * precise * precision * preferenced * primitive * processed * profiled * profile * program * progress * propagate * prop'd * properties * property * prototype * recycler * re-enable * referenceable * reference * registers * removed * required * result * semantics * semicolon * separately * separator * sequences * should * sibling * signature * similar * simultaneously * source * sources * spec'd * specialization * statement * store * straight * subtags * succeed * successful * sufficient * summation * supplied * supported * support * surrogate * telemetry * ternary * testing * then * the * though * threshold * timing * transferred * traversal * truncation * typespec'd * underflow * uninitialized * unknown * unless * unregister * unroll * unscopable * using * value * variable * verifies * verify * visitor * without * zero Proper noun: * ForceES5Array Grammar: * a/an * any one of the ... is * as an input/output * because * be replaced * different thresholds * have * is * is a * it is * lossless * not to report * operations * required by * the * true * a tortured sentence involving interleaving Tagging an ambiguous token with a guess * pronunciation Whitespace
1 parent 62b6deb commit 2b76534

File tree

298 files changed

+1022
-1021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+1022
-1021
lines changed

Build/Chakra.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
%(DisableSpecificWarnings);
3030
4456; <!-- declaration of '' hides previous local declaration -->
3131
4457; <!-- declaration of '' hides function parameter -->
32-
4458; <!-- declaration of '' hides class memeber -->
33-
4091; <!-- '': ignore on lef of 'type' when no variable is declared -->
32+
4458; <!-- declaration of '' hides class member -->
33+
4091; <!-- '': ignore on left of 'type' when no variable is declared -->
3434
4838; <!-- conversion from 'unsigned int' to 'int requires a narrowing conversion -->
3535
4499; <!-- explicit specialization cannot have a storage class (ignored) -->
3636
4463; <!-- overflow; assigning 1 to bit-field that can only hold values from -1 to 0 -->
@@ -45,12 +45,12 @@
4545
%(AdditionalIncludeDirectories)
4646
</AdditionalIncludeDirectories>
4747

48-
<!-- ======== For Code Covearge ======== -->
48+
<!-- ======== For Code Coverage ======== -->
4949
<Optimization Condition="'$(ENABLE_CODECOVERAGE)'=='true'">Disabled</Optimization>
5050
</ClCompile>
5151

5252
<Link>
53-
<!-- ======== For Code Covearge ======== -->
53+
<!-- ======== For Code Coverage ======== -->
5454
<AdditionalOptions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">%(AdditionalOptions) /DEBUGTYPE:CV,FIXUP</AdditionalOptions>
5555
</Link>
5656
</ItemDefinitionGroup>

Build/scripts/post_build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if ($arch -eq "*") {
4343
}
4444

4545
} else {
46-
$OutterScriptRoot = $PSScriptRoot;
46+
$OuterScriptRoot = $PSScriptRoot;
4747
. "$PSScriptRoot\pre_post_util.ps1"
4848

4949
if (($logFile -eq "") -and (Test-Path Env:\TF_BUILD_BINARIESDIRECTORY)) {

Build/scripts/pre_build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ param (
3434
[string]$oauth
3535
)
3636

37-
$OutterScriptRoot = $PSScriptRoot;
37+
$OuterScriptRoot = $PSScriptRoot;
3838
. "$PSScriptRoot\pre_post_util.ps1"
3939
if (($logFile -eq "") -and (Test-Path Env:\TF_BUILD_BINARIESDIRECTORY)) {
4040
if (-not(Test-Path -Path "$Env:TF_BUILD_BINARIESDIRECTORY\logs")) {

Build/scripts/pre_post_util.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function GetGitPath()
3333
return $gitExe;
3434
}
3535

36-
$srcpath = UseValueOrDefault $srcpath "$env:TF_BUILD_SOURCESDIRECTORY" (Resolve-Path "$OutterScriptRoot\..\..");
36+
$srcpath = UseValueOrDefault $srcpath "$env:TF_BUILD_SOURCESDIRECTORY" (Resolve-Path "$OuterScriptRoot\..\..");
3737
$binpath = UseValueOrDefault $binpath "$env:TF_BUILD_BINARIESDIRECTORY" "$srcpath\Build\VcBuild\bin\$arch_$flavor";
3838
$objpath = UseValueOrDefault $objpath "$env:TF_BUILD_BUILDDIRECTORY" "$srcpath\Build\VcBuild\obj\$arch_$flavor";
3939

bin/rl/rl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extern TARGET_OS TargetOS;
9999
#define CFG_ERROR_EX(file,line,fmt,args) fprintf(stderr, "Error: %s(%d) - " ##fmt "\n", file, line, args)
100100
#define CFG_WARNING_EX(file,line,fmt,args) do { if (!FQuiet) printf("Warning: %s(%d) - " ##fmt "\n", file, line, (args)); } while (0)
101101

102-
// Parsing delimeters
102+
// Parsing delimiters
103103

104104
#define OPT_DELIM " \t"
105105
#define XML_DELIM ","

bin/rl/rlregr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define TMP_PREFIX "di" // 2 characters
1414

15-
// Currently not overrideable
15+
// Currently not overridable
1616
#define REGR_PERL "perl"
1717

1818
#define DIR_START_CMD "startdir.cmd"

bin/rl/xmlreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ CreateStreamOnHandle
366366
// an IStream object that reads a file lazily. Rather than writing our own
367367
// IStream implementation that does this, we just read the whole file here
368368
// given that XML files don't get quite large and it should be okay to keep
369-
// everyting in memory.
369+
// everything in memory.
370370

371371
DWORD fileSize, fileSizeHigh, bytesRead;
372372
HGLOBAL buffer;

jenkins.check_copyright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
file_name = sys.argv[1]
2828
if not os.path.isfile(file_name):
29-
print "File does not exist:", file_name, "(not neccesarily an error)"
29+
print "File does not exist:", file_name, "(not necessarily an error)"
3030
exit(0)
3131

3232
with open(file_name, 'r') as sourcefile:

lib/Backend/BackwardPass.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ BackwardPass::BackwardPass(Func * func, GlobOpt * globOpt, Js::Phase tag)
2929
#if DBG_DUMP
3030
this->numDeadStore = 0;
3131
this->numMarkTempNumber = 0;
32-
this->numMarkTempNumberTransfered = 0;
32+
this->numMarkTempNumberTransferred = 0;
3333
this->numMarkTempObject = 0;
3434
#endif
3535
}
@@ -86,7 +86,7 @@ BackwardPass::DoMarkTempObjects() const
8686

8787
// Why MarkTempObject is disabled under debugger:
8888
// We add 'identified so far dead non-temp locals' to byteCodeUpwardExposedUsed in ProcessBailOutInfo,
89-
// this may cause MarkTempObject to convert some temps back to non-temp when it sees a 'transfered exposed use'
89+
// this may cause MarkTempObject to convert some temps back to non-temp when it sees a 'transferred exposed use'
9090
// from a temp to non-temp. That's in general not a supported conversion (while non-temp -> temp is fine).
9191
}
9292

@@ -323,16 +323,16 @@ BackwardPass::Optimize()
323323
Output::Print(this->tag == Js::BackwardPhase? L"Backward Phase Stats:\n" : L"Deadstore Phase Stats:\n");
324324
if (this->DoDeadStore())
325325
{
326-
Output::Print(L" Deadstore : %3d\n", this->numDeadStore);
326+
Output::Print(L" Deadstore : %3d\n", this->numDeadStore);
327327
}
328328
if (this->DoMarkTempNumbers())
329329
{
330-
Output::Print(L" Temp Number : %3d\n", this->numMarkTempNumber);
331-
Output::Print(L" Transfered Temp Number: %3d\n", this->numMarkTempNumberTransfered);
330+
Output::Print(L" Temp Number : %3d\n", this->numMarkTempNumber);
331+
Output::Print(L" Transferred Temp Number: %3d\n", this->numMarkTempNumberTransferred);
332332
}
333333
if (this->DoMarkTempObjects())
334334
{
335-
Output::Print(L" Temp Object : %3d\n", this->numMarkTempObject);
335+
Output::Print(L" Temp Object : %3d\n", this->numMarkTempObject);
336336
}
337337
}
338338
#endif
@@ -5696,7 +5696,7 @@ BackwardPass::TransferCompoundedAddSubUsesToSrcs(IR::Instr *const instr, const i
56965696

56975697
if(intOverflowDoesNotMatterInRangeBySymId->Test(srcSym->m_id))
56985698
{
5699-
// Since an src may be compounded through different chains of add/sub instructions, the greater number must be
5699+
// Since a src may be compounded through different chains of add/sub instructions, the greater number must be
57005700
// preserved
57015701
srcSym->scratch.globOpt.numCompoundedAddSubUses =
57025702
max(srcSym->scratch.globOpt.numCompoundedAddSubUses, addSubUses);

lib/Backend/BackwardPass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class BackwardPass
225225
#if DBG_DUMP
226226
uint32 numDeadStore;
227227
uint32 numMarkTempNumber;
228-
uint32 numMarkTempNumberTransfered;
228+
uint32 numMarkTempNumberTransferred;
229229
uint32 numMarkTempObject;
230230
#endif
231231

lib/Backend/BailOut.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ BailOutRecord::RestoreValue(IR::BailOutKind bailOutKind, Js::JavascriptCallStack
765765
// bar(a, b, c);
766766
// } catch(..) {..}
767767
// and we bailout during bar args evaluation, we recover from args from argoutRestoreAddress, not from caller function frame.
768-
// This is beceause try-catch is implemented as a C wrapper, so args will be a different offset from rbp in that case.
768+
// This is because try-catch is implemented as a C wrapper, so args will be a different offset from rbp in that case.
769769
Assert(!isFloat64 && !isInt32 && !isSimd128F4 && !isSimd128I4);
770770

771771
value = *((Js::Var *)(((char *)argoutRestoreAddress) + regSlot * MachPtr));
@@ -1579,7 +1579,7 @@ BailOutRecord::BailOutHelper(Js::JavascriptCallStackLayout * layout, Js::ScriptF
15791579
//
15801580
// To avoid always incurring the cost of collecting runtime stats (function calls count and valid bailOutKind),
15811581
// the initial codegen'd version of a function does not collect them. After a second bailout we rejit the function
1582-
// with runtime stats collection. On subsequent bailouts we can evaulate our heuristics and decide whether to rejit.
1582+
// with runtime stats collection. On subsequent bailouts we can evaluate our heuristics and decide whether to rejit.
15831583
//
15841584
// Function bodies always use the least optimized version of the code as default. At the same time, there can be
15851585
// function objects with some older, more optimized, version of the code active. When a bailout occurs out of such
@@ -2099,7 +2099,7 @@ void BailOutRecord::ScheduleFunctionCodeGen(Js::ScriptFunction * function, Js::S
20992099

21002100
// To avoid always incurring the cost of collecting runtime stats (valid bailOutKind),
21012101
// the initial codegen'd version of a loop body does not collect them. After a second bailout we rejit the body
2102-
// with runtime stats collection. On subsequent bailouts we can evaulate our heuristics.
2102+
// with runtime stats collection. On subsequent bailouts we can evaluate our heuristics.
21032103
void BailOutRecord::ScheduleLoopBodyCodeGen(Js::ScriptFunction * function, Js::ScriptFunction * innerMostInlinee, BailOutRecord const * bailOutRecord, IR::BailOutKind bailOutKind)
21042104
{
21052105
Assert(bailOutKind != IR::LazyBailOut);

lib/Backend/BailOut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class BailOutInfo
116116
// The actual bailout instr, this is normally the instr that has the bailout info.
117117
// 1) If we haven't generated bailout (which happens in lowerer) for this bailout info, this is either of:
118118
// - the instr that has bailout info.
119-
// - in case of shared bailout this will be the BailTarget instr (corresponds to the call to SaveReesgtersAndBailOut,
119+
// - in case of shared bailout this will be the BailTarget instr (corresponds to the call to SaveRegistersAndBailOut,
120120
// while other instrs sharing bailout info will just have checks and JMP to BailTarget).
121121
// 2) After we generated bailout, this becomes label instr. In case of shared bailout other instrs JMP to this label.
122122
IR::Instr * bailOutInstr;

lib/Backend/BailOutKind.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ BAIL_OUT_KIND(BailOutKindBitsStart, 0) // fake bail out kind to indicate start i
6363
// ======================
6464
// Result condition bits
6565
// ======================
66-
#define BAIL_OUT_KIND_RESULT_CONDITONS_BIT_START BAIL_OUT_KIND_BIT_START
67-
BAIL_OUT_KIND_VALUE(BailOutOnOverflow, 1 << (BAIL_OUT_KIND_RESULT_CONDITONS_BIT_START + 0))
68-
BAIL_OUT_KIND_VALUE(BailOutOnMulOverflow, 1 << (BAIL_OUT_KIND_RESULT_CONDITONS_BIT_START + 1))
69-
BAIL_OUT_KIND_VALUE(BailOutOnNegativeZero, 1 << (BAIL_OUT_KIND_RESULT_CONDITONS_BIT_START + 2))
66+
#define BAIL_OUT_KIND_RESULT_CONDITIONS_BIT_START BAIL_OUT_KIND_BIT_START
67+
BAIL_OUT_KIND_VALUE(BailOutOnOverflow, 1 << (BAIL_OUT_KIND_RESULT_CONDITIONS_BIT_START + 0))
68+
BAIL_OUT_KIND_VALUE(BailOutOnMulOverflow, 1 << (BAIL_OUT_KIND_RESULT_CONDITIONS_BIT_START + 1))
69+
BAIL_OUT_KIND_VALUE(BailOutOnNegativeZero, 1 << (BAIL_OUT_KIND_RESULT_CONDITIONS_BIT_START + 2))
7070
BAIL_OUT_KIND_VALUE(BailOutOnResultConditions, BailOutOnOverflow | BailOutOnMulOverflow | BailOutOnNegativeZero)
7171
// ================
7272
// Array bits
7373
// ================
74-
#define BAIL_OUT_KIND_ARRAY_BIT_START BAIL_OUT_KIND_RESULT_CONDITONS_BIT_START + 3
74+
#define BAIL_OUT_KIND_ARRAY_BIT_START BAIL_OUT_KIND_RESULT_CONDITIONS_BIT_START + 3
7575
BAIL_OUT_KIND_VALUE(BailOutOnMissingValue, 1 << (BAIL_OUT_KIND_ARRAY_BIT_START + 0))
7676
BAIL_OUT_KIND_VALUE(BailOutConventionalNativeArrayAccessOnly, 1 << (BAIL_OUT_KIND_ARRAY_BIT_START + 1))
7777
BAIL_OUT_KIND_VALUE(BailOutConvertedNativeArray, 1 << (BAIL_OUT_KIND_ARRAY_BIT_START + 2))

lib/Backend/CodeGenWorkItem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ bool CodeGenWorkItem::ShouldSpeculativelyJitBasedOnProfile() const
7676
Js::FunctionBody* functionBody = this->GetFunctionBody();
7777

7878
uint loopPercentage = (functionBody->GetByteCodeInLoopCount()*100) / (functionBody->GetByteCodeCount() + 1);
79-
uint straighLineSize = functionBody->GetByteCodeCount() - functionBody->GetByteCodeInLoopCount();
79+
uint straightLineSize = functionBody->GetByteCodeCount() - functionBody->GetByteCodeInLoopCount();
8080

8181
// This ensures only small and loopy functions are prejitted.
82-
if(loopPercentage >= 50 || straighLineSize < 300)
82+
if(loopPercentage >= 50 || straightLineSize < 300)
8383
{
8484
Js::SourceDynamicProfileManager* profileManager = functionBody->GetSourceContextInfo()->sourceDynamicProfileManager;
8585
if(profileManager != nullptr)

lib/Backend/FlowGraph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ FlowGraph::CanonicalizeLoops()
650650
}
651651

652652
#if DBG_DUMP
653-
this->Dump(true, L"\n Before cannonicalizeLoops \n");
653+
this->Dump(true, L"\n Before canonicalizeLoops \n");
654654
#endif
655655

656656
bool breakBlockRelocated = false;
@@ -669,7 +669,7 @@ FlowGraph::CanonicalizeLoops()
669669
}
670670

671671
#if DBG_DUMP
672-
this->Dump(true, L"\n After cannonicalizeLoops \n");
672+
this->Dump(true, L"\n After canonicalizeLoops \n");
673673
#endif
674674

675675
return breakBlockRelocated;

lib/Backend/FlowGraph.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@ class Loop
665665
BVSparse<JitArenaAllocator> *inductionVariablesUsedAfterLoop;
666666
InductionVariableChangeInfoMap *inductionVariableChangeInfoMap;
667667
InductionVariableOpndPerUnrollMap *inductionVariableOpndPerUnrollMap;
668-
// This assumes that all memop operation use the same index and has the same length
669-
// Temporary map to reuse existing startIndexOpnd while emiting
668+
// This assumes that all memop operations use the same index and have the same length
669+
// Temporary map to reuse existing startIndexOpnd while emitting
670670
// 0 = !increment & !alreadyChanged, 1 = !increment & alreadyChanged, 2 = increment & !alreadyChanged, 3 = increment & alreadyChanged
671671
IR::RegOpnd* startIndexOpndCache[4];
672672
} MemOpInfo;

lib/Backend/Func.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static const unsigned __int64 c_debugFillPattern8 = 0xcececececececece;
195195
#elif defined(_M_X64) || defined(_M_ARM64)
196196
static const unsigned __int64 c_debugFillPattern = c_debugFillPattern8;
197197
#else
198-
#error unsuported platform
198+
#error unsupported platform
199199
#endif
200200

201201
#endif

0 commit comments

Comments
 (0)