@@ -542,8 +542,8 @@ void Writer::populateTargetFeatures() {
542
542
done:
543
543
// Normally we don't include bss segments in the binary. In particular if
544
544
// memory is not being imported then we can assume its zero initialized.
545
- // In the case the memory is imported, we and we can use the memory.fill
546
- // instrction than we can also avoid inluding the segments.
545
+ // In the case the memory is imported, and we can use the memory.fill
546
+ // instruction, then we can also avoid including the segments.
547
547
if (config->importMemory && !allowed.count (" bulk-memory" ))
548
548
config->emitBssSegments = true ;
549
549
@@ -1169,7 +1169,7 @@ void Writer::createInitMemoryFunction() {
1169
1169
if (needsPassiveInitialization (s)) {
1170
1170
// For passive BSS segments we can simple issue a memory.fill(0).
1171
1171
// For non-BSS segments we do a memory.init. Both these
1172
- // instructions take as thier first argument the destination
1172
+ // instructions take as their first argument the destination
1173
1173
// address.
1174
1174
writePtrConst (os, s->startVA , is64, " destination address" );
1175
1175
if (config->isPic ) {
@@ -1255,7 +1255,7 @@ void Writer::createInitMemoryFunction() {
1255
1255
for (const OutputSegment *s : segments) {
1256
1256
if (needsPassiveInitialization (s) && !s->isBss ) {
1257
1257
// The TLS region should not be dropped since its is needed
1258
- // during the intiailizing of each thread (__wasm_init_tls).
1258
+ // during the initialization of each thread (__wasm_init_tls).
1259
1259
if (config->sharedMemory && s->isTLS ())
1260
1260
continue ;
1261
1261
// data.drop instruction
0 commit comments