Skip to content

Commit 6c70e2c

Browse files
tlivelykripken
andauthored
Fix typos (#8570)
Co-authored-by: Alon Zakai <azakai@google.com>
1 parent 0bb686f commit 6c70e2c

Some content is hidden

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

71 files changed

+106
-105
lines changed

scripts/clusterfuzz/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
# Enable all features but disable ones not yet ready for fuzzing. This may
8888
# be a smaller set than fuzz_opt.py, as that enables a few experimental
8989
# flags, while here we just fuzz with d8's --wasm-staging. This should be
90-
# synchonized with bundle_clusterfuzz.
90+
# synchronized with bundle_clusterfuzz.
9191
'-all',
9292
'--disable-shared-everything',
9393
'--disable-fp16',

scripts/test/generate_atomic_spec_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def func():
147147
)
148148
"""
149149
return f''';; Memory index must come before memory ordering if present.
150-
;; Both immediates are optional; an ommitted memory ordering will be treated as seqcst.
150+
;; Both immediates are optional; an omitted memory ordering will be treated as seqcst.
151151
(func $test-all-ops
152152
{indent(newline.join(statement(template, mem_idx, mem_ptr_type, ordering) for template, (mem_idx, mem_ptr_type), ordering in all_combinations()))}
153153
)'''

src/analysis/lattice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ concept Lattice = requires(const L& lattice,
6161

6262
// The analysis framework only uses bottom elements and least upper bounds (i.e.
6363
// joins) directly, so lattices do not necessarily need to implement top
64-
// elements and greatest lower bounds (i.e. meets) to be useable, even though
64+
// elements and greatest lower bounds (i.e. meets) to be usable, even though
6565
// they are required for mathematical lattices. Implementing top elements and
6666
// meets does have the benefit of making a lattice generically invertable,
6767
// though. See lattices/inverted.h.

src/analysis/monotone-analyzer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ template<Lattice L, TransferFunction TxFn> class MonotoneCFGAnalyzer {
2222
std::vector<Element> states;
2323

2424
public:
25-
// Will constuct BlockState objects corresponding to BasicBlocks from the
25+
// Will construct BlockState objects corresponding to BasicBlocks from the
2626
// given CFG.
2727
MonotoneCFGAnalyzer(L& lattice, TxFn& txfn, CFG& cfg);
2828

src/analysis/reaching-definitions-transfer-function.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace wasm::analysis {
2626

2727
// When collecting results, the transfer function takes the states and converts
2828
// it into a map of LocalGets to LocalSets which affect it. The fictitious
29-
// inital value LocalSetes will be converted to nullptrs.
29+
// initial value LocalSetes will be converted to nullptrs.
3030

3131
class ReachingDefinitionsTransferFunction
3232
: public VisitorTransferFunc<ReachingDefinitionsTransferFunction,
@@ -44,7 +44,7 @@ class ReachingDefinitionsTransferFunction
4444
// LocalGraph members we need to update.
4545
LocalGraph::GetSetsMap& getSetsMap;
4646

47-
// Fictitious LocalSet objects to reprsent a local index obtaining its value
47+
// Fictitious LocalSet objects to represent a local index obtaining its value
4848
// from its default initial value or parameter value.
4949
std::vector<LocalSet> fakeInitialValueSets;
5050

@@ -54,7 +54,7 @@ class ReachingDefinitionsTransferFunction
5454
// Helper function which creates fictitious LocalSets for a function,
5555
// inserts them into fakeInitialValueSets and fakeSetPtrs. It returns a
5656
// vector of actual LocalSets in the function and fictitious LocalSets for
57-
// use when instatitating the lattice.
57+
// use when instantiating the lattice.
5858
static std::vector<LocalSet*>
5959
listLocalSets(Function* func,
6060
std::vector<LocalSet>& fakeInitialValueSets,

src/binaryen-c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ BINARYEN_API void BinaryenModulePrintStackIR(BinaryenModuleRef module);
30623062
BINARYEN_API void BinaryenModulePrintAsmjs(BinaryenModuleRef module);
30633063

30643064
// Validate a module, showing errors on problems.
3065-
// @return 0 if an error occurred, 1 if validated succesfully
3065+
// @return 0 if an error occurred, 1 if validated successfully
30663066
BINARYEN_API bool BinaryenModuleValidate(BinaryenModuleRef module);
30673067

30683068
// Runs the standard optimization passes on the module. Uses the currently set
@@ -3283,7 +3283,7 @@ BINARYEN_API BinaryenModuleAllocateAndWriteResult
32833283
BinaryenModuleAllocateAndWrite(BinaryenModuleRef module,
32843284
const char* sourceMapUrl);
32853285

3286-
// Serialize a module in s-expression form. Implicity allocates the returned
3286+
// Serialize a module in s-expression form. Implicitly allocates the returned
32873287
// char* with malloc(), and expects the user to free() them manually
32883288
// once not needed anymore.
32893289
BINARYEN_API char* BinaryenModuleAllocateAndWriteText(BinaryenModuleRef module);

src/cfg/Relooper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/*
18-
This is an optimized C++ implemention of the Relooper algorithm originally
18+
This is an optimized C++ implementation of the Relooper algorithm originally
1919
developed as part of Emscripten. This implementation includes optimizations
2020
added since the original academic paper [1] was published about it.
2121

src/cfg/cfg-traversal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ struct CFGWalker : public PostWalker<SubType, VisitorType> {
304304
}
305305
}
306306

307-
// Exception thrown. Note outselves so that we will create a link to each
307+
// Exception thrown. Note ourselves so that we will create a link to each
308308
// catch within the try / each destination block within the try_table when
309309
// we get there.
310310
self->throwingInstsStack[i].push_back(self->currBasicBlock);

src/ir/ExpressionManipulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace wasm::ExpressionManipulator {
2121

2222
Expression*
2323
flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
24-
// Perform the copy using a stack of tasks (avoiding recusion).
24+
// Perform the copy using a stack of tasks (avoiding recursion).
2525
struct CopyTask {
2626
// The thing to copy.
2727
Expression* original;

src/ir/child-typer.h

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

2323
namespace wasm {
2424

25-
// CRTP visitor for determining constaints on the types of expression children.
25+
// CRTP visitor for determining constraints on the types of expression children.
2626
// For each child of the visited expression, calls a callback with the VarTypes
2727
// giving the constraint on the child:
2828
//

0 commit comments

Comments
 (0)