Skip to content

Commit 2048605

Browse files
authored
Fix typos in the codebase (#9063)
This fixes typos in the codebase using codespell.
1 parent 3d7eee7 commit 2048605

59 files changed

Lines changed: 80 additions & 80 deletions

Some content is hidden

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

scripts/fuzz_opt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ def __init__(self):
10081008
D8(),
10091009
D8Liftoff(),
10101010
D8Turboshaft(),
1011-
# FIXME: Temprorary disable. See issue #4741 for more details
1011+
# FIXME: Temporary disable. See issue #4741 for more details
10121012
# Wasm2C(),
10131013
# Wasm2C2Wasm()
10141014
]
@@ -1372,7 +1372,7 @@ def handle_pair(self, input, before_wasm, after_wasm, opts):
13721372
# "[fuzz-exec] export bar".
13731373
call_start = before.rfind(FUZZ_EXEC_EXPORT_PREFIX, 0, trap_index)
13741374
if call_start < 0:
1375-
# the trap happened before we called an export, so it occured
1375+
# the trap happened before we called an export, so it occurred
13761376
# during startup (the start function, or memory segment
13771377
# operations, etc.). in that case there is nothing for us to
13781378
# compare here; just leave.
@@ -2575,7 +2575,7 @@ def handle(self, wasm):
25752575
TrapsNeverHappen(),
25762576
CtorEval(),
25772577
Merge(),
2578-
# Split(), # Will reenable after stabilized
2578+
# Split(), # Will re-enable after stabilized
25792579
RoundtripText(),
25802580
ClusterFuzz(),
25812581
Two(),

scripts/test/fuzzing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
'string-lifting-section.wast',
9494
# TODO: fuzzer support for uninhabitable imported globals
9595
'exact-references.wast',
96-
# We do not have full suppor for these imports in all parts of the fuzzer.
96+
# We do not have full support for these imports in all parts of the fuzzer.
9797
'instrument-branch-hints.wast',
9898
# Contains a subtype chain that exceeds depth limits.
9999
'reorder-types-real.wast',

scripts/update_lit_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def find_annotations(module, start):
167167
else:
168168
# Found something that isn't an annotation.
169169
break
170-
# Look for the start of the line containin the first annoation.
170+
# Look for the start of the line containing the first annotation.
171171
for i in range(annotation - 1, -1, -1):
172172
if module[i] == '\n':
173173
return i + 1

src/binaryen-c.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3724,10 +3724,10 @@ BINARYEN_API void RelooperAddBranchForSwitch(RelooperBlockRef from,
37243724
BinaryenIndex numIndexes,
37253725
BinaryenExpressionRef code);
37263726

3727-
// Generate structed wasm control flow from the CFG of blocks and branches that
3728-
// were created on this relooper instance. This returns the rendered output, and
3729-
// also disposes of the relooper and its blocks and branches, as they are no
3730-
// longer needed.
3727+
// Generate structured wasm control flow from the CFG of blocks and branches
3728+
// that were created on this relooper instance. This returns the rendered
3729+
// output, and also disposes of the relooper and its blocks and branches, as
3730+
// they are no longer needed.
37313731
// @param labelHelper To render irreducible control flow, we may need a helper
37323732
// variable to guide us to the right target label. This value should be
37333733
// an index of an i32 local variable that is free for us to use.

src/dataflow/node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct Node {
5555
// in wasm)
5656
Expr, // a value represented by a Binaryen Expression
5757
Phi, // a phi from converging control flow
58-
Cond, // a blockpc, representing one of the branchs for a Block
58+
Cond, // a blockpc, representing one of the branches for a Block
5959
Block, // a source of phis
6060
Zext, // zero-extend an i1 (from an op where Souper returns i1 but wasm does
6161
// not, and so we need a special way to get back to an i32/i64 if we

src/interpreter/interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Result<> Interpreter::instantiate(Instance& instance) {
311311
return Ok{};
312312
}
313313

314-
// This is a temporary convenience while stil using gTests to validate this
314+
// This is a temporary convenience while still using gTests to validate this
315315
// interpreter. Once spec tests can run, this shall be deleted.
316316
std::vector<Literal> Interpreter::runTest(Expression* root) {
317317
static std::shared_ptr<wasm::Module> dummyModule = std::make_shared<Module>();

src/ir/child-typer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ template<typename Subtype> struct ChildTyper : OverriddenVisitor<Subtype> {
8383
}
8484
}
8585

86-
// Disambiguate betwween Type and VarType.
86+
// Disambiguate between Type and VarType.
8787
void note(Expression** childp, Type::BasicType type) {
8888
note(childp, VarType{Type(type)});
8989
}

src/ir/manipulation.h

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

2222
namespace wasm::ExpressionManipulator {
2323

24-
// Re-use a node's memory. This helps avoid allocation when optimizing.
24+
// Reuse a node's memory. This helps avoid allocation when optimizing.
2525
template<typename InputType, typename OutputType>
2626
inline OutputType* convert(InputType* input) {
2727
static_assert(sizeof(OutputType) <= sizeof(InputType),

src/ir/module-splitting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TableSlotManager::TableSlotManager(
156156
Module& module, const std::vector<std::unique_ptr<Module>>& secondaries)
157157
: module(module), secondaries(secondaries) {
158158
// If possible, just create a new table to manage all primary-to-secondary
159-
// calls lazily. Do not re-use slots for functions that will already be in
159+
// calls lazily. Do not reuse slots for functions that will already be in
160160
// existing tables, since that is not correct in the face of table mutations.
161161
// However, do not do this for emscripten; its loader code (and dynamic
162162
// loading in particular) do not support this yet.

src/ir/module-utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ struct TypeInfos {
358358

359359
// Multivalue control flow structures need a function type, but the identity
360360
// of the function type (i.e. what recursion group it is in or whether it is
361-
// final) doesn't matter. Save them for the end to see if we can re-use an
361+
// final) doesn't matter. Save them for the end to see if we can reuse an
362362
// existing function type with the necessary signature.
363363
InsertOrderedMap<Signature, size_t> controlFlowSignatures;
364364

0 commit comments

Comments
 (0)